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.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils