Hi all,

I've been resolving some strange issues with resources ([1]). Although I 
did not succeed so far, I've spent some time in hex editor and reading 
objdump -s output (not much fun). My analyzes has exhibited some 
differences in how windres and Microsoft's rc.exe layout the .rsrc section.

In particular I noticed the rc.exe places data of the resources to 
64-bit aligned offsets, even in 32-bit builds. That guarantees the 
FindResource() + LoadResource() + LockResource() gets a pointer to data 
with such alignment.

In contrast, windres aligns the resources only to 32-bits, even if 
target is x86_64. It does work but still it is IMHO suboptimal. I've 
tried to cook a patch to binutils ([2], [3]) but I've got no feedback.

I do realize Windows is probably lower priority for most binutils 
developers, and it is my 1st patch for binutils so perhaps I've did 
something wrong but still...

I hope some people on this ML probably may have more experience how to 
to push patches for binutils, or get some feedback if the patch is not 
satisfactory for binutils standards??


[1] https://github.com/mity/mctrl/issues/13
[2] https://sourceware.org/ml/binutils/2013-10/msg00305.html
[3] https://sourceware.org/bugzilla/show_bug.cgi?id=16065

Thx,
Martin

------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to