[Bug binutils/16065] New: windres aligns resources to 32 bits, even for 64 bit target

2013-10-19 Thread mity at morous dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=16065

Bug ID: 16065
   Summary: windres aligns resources to 32 bits, even for 64 bit
target
   Product: binutils
   Version: 2.25 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mity at morous dot org

Currently windres aligns resources data to 32 bits. Although it does work, it
is IMO suboptimal and 64-bit alignment is in this case superior for the
following reasons:

 * The alignment determines lower bits of the resource when mapped into process
memory. Especially for 64-bit processes, it is better if the resource starts on
64-bit boundary. 

 * Note that resources in 32-bit DLLs can still be accessed from 64-bit
processes, even this case is much less common, of course. Consider
LoadLibraryEx() with flag LOAD_LIBRARY_AS_IMAGE. Or the res:// protocol in
Internet Explorer for accessing the resources.

 * Resource compiler from MS Visual Studio aligns the resources to 64 bits
(tested with MSVC Express, version 10).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/16065] windres aligns resources to 32 bits, even for 64 bit target

2013-10-19 Thread mity at morous dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=16065

--- Comment #1 from mity at morous dot org ---
Created attachment 7245
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7245&action=edit
patch for 64-bit alignement of the resources

Attached patch.

(My 1st one for binutils, so sorry if you expect different diff options or
whatever).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils