https://sourceware.org/bugzilla/show_bug.cgi?id=34550
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|incorrect sh_info for |linker generates 2 default
|.dynsym on m68k ?? |versions for the same
| |symbol
--- Comment #18 from H.J. Lu <hjl.tools at gmail dot com> ---
[hjl@gnu-tgl-3 pr34550]$ cat fmod.s
.text
.type fmod,%function
.globl fmod
fmod:
.dc.a 0
.type fmod_new,%function
.globl fmod_new
fmod_new:
.dc.a 0
.symver fmod_new, fmod@@GLIBC_2.43
[hjl@gnu-tgl-3 pr34550]$ cat fmod.t
GLIBC_2.0 {
global:
fmod;
local:
*;
};
GLIBC_2.43 {
global:
fmod;
local:
*;
} GLIBC_2.0;
[hjl@gnu-tgl-3 pr34550]$ make
as -o fmod.o fmod.s
./ld -shared -o fmod.so fmod.o --version-script fmod.t
readelf --dyn-syms -W fmod.so
Symbol table '.dynsym' contains 5 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 0000000000001000 0 FUNC GLOBAL DEFAULT 8 fmod@@GLIBC_2.0
2: 0000000000001008 0 FUNC GLOBAL DEFAULT 8 fmod@@GLIBC_2.43
3: 0000000000000000 0 OBJECT GLOBAL DEFAULT ABS GLIBC_2.0
4: 0000000000000000 0 OBJECT GLOBAL DEFAULT ABS GLIBC_2.43
[hjl@gnu-tgl-3 pr34550]$
--
You are receiving this mail because:
You are on the CC list for the bug.