https://sourceware.org/bugzilla/show_bug.cgi?id=23409
Bug ID: 23409
Summary: Shared libraries created with duplicate _end, _edata
and __bss_start symbols
Product: binutils
Version: 2.30
Status: NEW
Severity: normal
Priority: P2
Component: gold
Assignee: ccoutant at gmail dot com
Reporter: amodra at gmail dot com
CC: ian at airs dot com
Target Milestone: ---
cat > end1.ver << EOF
VER1 {
global: *;
};
EOF
cat > end2.ver << EOF
VER2 {
global: *;
};
EOF
as -o dummy.o < /dev/null
ld.gold -shared -o lib2.so dummy.o --version-script end2.ver
ld.gold -shared -o lib1.so dummy.o lib2.so --version-script end1.ver
readelf --dyn-syms lib2.so
Symbol table '.dynsym' contains 5 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 0000000000002000 0 NOTYPE GLOBAL DEFAULT 8 _end@@VER2
2: 0000000000002000 0 NOTYPE GLOBAL DEFAULT 8 _edata@@VER2
3: 0000000000002000 0 NOTYPE GLOBAL DEFAULT 8 __bss_start@@VER2
4: 0000000000000000 0 OBJECT GLOBAL DEFAULT ABS VER2
readelf --dyn-syms lib1.so
Symbol table '.dynsym' contains 8 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 0000000000002000 0 NOTYPE GLOBAL DEFAULT 8 _end@VER1
2: 0000000000002000 0 NOTYPE GLOBAL DEFAULT 8 _edata@VER1
3: 0000000000002000 0 NOTYPE GLOBAL DEFAULT 8 _edata@@VER1
4: 0000000000002000 0 NOTYPE GLOBAL DEFAULT 8 _end@@VER1
5: 0000000000000000 0 OBJECT GLOBAL DEFAULT ABS VER1
6: 0000000000002000 0 NOTYPE GLOBAL DEFAULT 8 __bss_start@VER1
7: 0000000000002000 0 NOTYPE GLOBAL DEFAULT 8 __bss_start@@VER1
Why are both _end@VER1 and _end@@VER1 present in lib1.so?
See https://bugzilla.redhat.com/show_bug.cgi?id=1600035
--
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