https://sourceware.org/bugzilla/show_bug.cgi?id=18573
Bug ID: 18573 Summary: windres: resources alignment does not work. Product: binutils Version: 2.25 Status: NEW Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: sashipa.ben at gmail dot com Target Milestone: --- Created attachment 8382 --> https://sourceware.org/bugzilla/attachment.cgi?id=8382&action=edit Sample code to illustrate windres resource alignment problem Hello, I've just noticed this problem with windres (gave me a bit of a hardtime to understand the problem). The resource compiled with windres are not aligned. Despite this https://sourceware.org/bugzilla/show_bug.cgi?id=16065 I'm not sure what this code does. But it does not seem to align the resources. This would not be a big problem if it did not break some resources. For instance dialogs with combo box control that are not 32-bit aligned won't open properly (possibly some other controls). It's tricky enough as it does not generate any kind of error. Windows will just send a premature WM_DESTROY before the WM_INITDIALOG. I had a quick look at the source code. The easiest way to fix the problem seems to force the alignment in the binutils/resbin.c:res_to_bin() function. I've tried that and it worked but I did not watch the whole code in depth so I'm not sure it has any unexpected side effect. I've attached a little program to demonstrate the problem. Best regards, G.B -- 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