Bug 6914 - global symbol alignment is not covered at all
Summary: global symbol alignment is not covered at all
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.20
: P2 critical
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-24 06:06 UTC by Gianluigi Tiesi
Modified: 2011-12-14 16:09 UTC (History)
1 user (show)

See Also:
Host: i686-pc-mingw32
Target: i686-pc-mingw32
Build: i686-pc-mingw32
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gianluigi Tiesi 2008-09-24 06:06:17 UTC
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?
Comment 1 Nick Clifton 2008-09-29 13:50:08 UTC
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

Comment 2 Dmitry Gorbachev 2011-12-14 16:09:51 UTC
A GCC bug is fixed.