On 12/10/20 9:03 PM, Michael Hennebry wrote:
On Thu, 10 Dec 2020, Samuel Sieb wrote:
On 12/10/20 7:47 PM, Michael Hennebry wrote:
Using gcc 10.2.1 -g -O, I compiled and linkeds
a program using multiple libraries.
Some symbols are defined by more than one library.
That sounds like a really bad situation.
One library is supposed to be a new improved
version of parts of the other library.
My understanding is that when shared libraries are involved,
the rules can get complicated.
That I'm a newbie with these libraries does not help either.
Yes, the loader will decide which library provides the symbol and I
don't know what the rules are.
I would like to discover which symbols came from which library.
What, if anything, is the incantation to do that?
Your question is not very clear. If you want to see the symbols in a
particular library, I think "nm" is the tool for that.
If symbol fred is defined in library G as well as library in B,
I'd like to know which symbol my executable picked up.
nm does not do that.
Check "man ld.so". The environment variables LD_DEBUG and
LD_DEBUG_OUTPUT might provide the info you're looking for. Particularly
LD_DEBUG=bindings.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx