https://sourceware.org/bugzilla/show_bug.cgi?id=21661
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|ld |gas
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
.symver on common symbols shouldn't be allowed:
hjl@gnu-tools-1 pr21661]$ cat bad.S
.comm foo,8,8
.symver foo,[email protected]
[hjl@gnu-tools-1 pr21661]$ gcc -c bad.S
[hjl@gnu-tools-1 pr21661]$ readelf -s bad.o
Symbol table '.symtab' contains 6 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 0000000000000000 0 SECTION LOCAL DEFAULT 1
2: 0000000000000000 0 SECTION LOCAL DEFAULT 2
3: 0000000000000000 0 SECTION LOCAL DEFAULT 3
4: 0000000000000008 8 OBJECT GLOBAL DEFAULT COM foo
5: 0000000000000008 8 OBJECT GLOBAL DEFAULT COM [email protected]
[hjl@gnu-tools-1 pr21661]$
foo and [email protected] are 2 different common symbols.
--
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