Recent versions of binutils added support for lcomm alignment, this needs a patch in gcc that is not integrated, perhaps I've discovered that global symbols alignment is not covered at all (comm has only size on win32) 16-byte alignment is mandatory for sse ops I've looked in binutils code but it's not easy to understand what to change If I've understood on elf, a "comment" is added that says size and alignment this can be easily added also for win32 but who and when use this info?
Hi Gianluigi, This problem has already been reported as a gcc bug (PR 37216). See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37216 I posted a patch there which does not need any modifications to binutils, but apparently it is causing a bootstrap failure, so I will have to investigate further. Cheers Nick
A GCC bug is fixed.