bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/24836] --as-needed leaves unused direct dependencies


From: crusader.mike at gmail dot com
Subject: [Bug ld/24836] --as-needed leaves unused direct dependencies
Date: Mon, 29 Jul 2019 21:31:20 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=24836

--- Comment #9 from crusader.mike at gmail dot com ---
... about #6, running my binary with LD_DEBUG:

LD_DEBUG=bindings LD_BIND_NOW=1 ./procmon.e

produces curious output:

...
     27438:     binding file /usr/local/lib64/libxalan-c.so.111 [0] to
/<blah>/procmon.e [0]: normal symbol
`_ZN11xalanc_1_1111XalanVectorItNS_31MemoryManagedConstructionTraitsItEEED1Ev'
...

i.e. libxalan-c ends up using EEED1Ev symbol from my executable! EEED2Ev isn't
mentioned in this output at all.

Another thing -- libxalan-c.so has both of these symbols in .dynsym and .symtab
tables, both weak, both have same address. With only one difference: only
EEED1Ev is mentioned in .rela.dyn (table of relocations?)

I am still not sure what is going on here, though...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

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