bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/20976] New: broken allocation of common symbols at partial lin


From: pavel.shishpor at gmail dot com
Subject: [Bug gold/20976] New: broken allocation of common symbols at partial linking
Date: Fri, 16 Dec 2016 10:47:54 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=20976

            Bug ID: 20976
           Summary: broken allocation of common symbols at partial linking
           Product: binutils
           Version: 2.27
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: pavel.shishpor at gmail dot com
                CC: ian at airs dot com
  Target Milestone: ---

The following example demonstrates the issue:

> cat alpha.c 
int a = 0;
int b;
> gcc -c alpha.c 
> ld.gold -r -d -o alpha_partial.o alpha.o
> nm alpha_partial.o 
0000000000000000 B a
0000000000000000 B b

We see that a and b got the same address. GNU linker does the job correctly:

> ld.bfd -r -d -o alpha_partial_bfd.o alpha.o
> nm alpha_partial_bfd.o 
0000000000000000 B a
0000000000000004 B b

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]