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