bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: mity at morous dot org
Subject: [Bug binutils/16065] New: windres aligns resources to 32 bits, even for 64 bit target
Date: Sat, 19 Oct 2013 17:31:36 +0000

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]