http://sourceware.org/bugzilla/show_bug.cgi?id=12578
Summary: Alignment of a common symbol overridden by a
definition
Product: binutils
Version: 2.22 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: [email protected]
ReportedBy: [email protected]
(I don't know is it related to / a duplicate of PR12564.)
ld.bfd gives a warning: "/usr/bin/ld: Warning: alignment 4 of symbol `baz' in
/tmp/ccEJaaP0.o is smaller than 16 in /tmp/ccs1dDrt.o"; ld.gold doesn't even
warn.
I think the linker should choose the largest alignment, as it already does when
merging multiple common symbols.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils