bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/4563] --gc-sections doesn't work as expected.


From: pluto at agmk dot net
Subject: [Bug ld/4563] --gc-sections doesn't work as expected.
Date: 1 Jun 2007 07:10:21 -0000

------- 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]