------- Additional Comments From pluto at agmk dot net 2007-06-01 07:10 -------
(In reply to comment #2)
> .text._ZN1X1fEv exports a global symbol, _ZN1X1fEv. When building a shared
> library we assume that all global visible symbols are referenced.
ok, one more question. if i use -fvisibility=hidden and mark _Z1fv
with default visbility, the linker removes unused section .text._ZN1X1fEv
as expected but in lib2.so i still see a undefined symbol _Z1hv
$ readelf -sW lib2.so |c++filt
(...)
6: 00000000000005a4 14 FUNC GLOBAL DEFAULT 10 f()
(...)
9: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND h()
(...)
_Z1hv is unreferenced and undefined in lib2.so,
so this looks like an missed optimization bug.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4563
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
_______________________________________________
bug-binutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils