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: unassig...@sources.redhat.com
        ReportedBy: d.g.gorbac...@gmail.com


(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
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to