[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/21661] Ld failed to hide versioned common symbol
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug gas/21661] Ld failed to hide versioned common symbol |
Date: |
Fri, 23 Jun 2017 12:44:26 +0000 |
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:
address@hidden pr21661]$ cat bad.S
.comm foo,8,8
.symver foo,address@hidden
address@hidden pr21661]$ gcc -c bad.S
address@hidden 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 address@hidden
address@hidden pr21661]$
foo and address@hidden are 2 different common symbols.
--
You are receiving this mail because:
You are on the CC list for the bug.