Last active
July 22, 2018 14:44
-
-
Save fcamel/2b6e5996b370bb9d9759d18bbd55193e to your computer and use it in GitHub Desktop.
Example of LD_DEBUG=symbols
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ LD_LIBRARY_PATH=. ./prog | |
foo | |
foo-xyz | |
bar | |
foo-xyz | |
$ LD_DEBUG=symbols LD_LIBRARY_PATH=. ./prog | |
... | |
foo | |
21169: symbol=xyz; lookup in file=./prog [0] | |
21169: symbol=xyz; lookup in file=./libfoo.so [0] | |
foo-xyz | |
21169: symbol=bar; lookup in file=./prog [0] | |
21169: symbol=bar; lookup in file=./libfoo.so [0] | |
21169: symbol=bar; lookup in file=./libbar.so [0] | |
21169: symbol=puts; lookup in file=./prog [0] | |
21169: symbol=puts; lookup in file=./libfoo.so [0] | |
21169: symbol=puts; lookup in file=./libbar.so [0] | |
21169: symbol=puts; lookup in file=/lib/x86_64-linux-gnu/libc.so.6 [0] | |
bar | |
21169: symbol=xyz; lookup in file=./prog [0] | |
21169: symbol=xyz; lookup in file=./libfoo.so [0] | |
foo-xyz | |
21169: | |
21169: calling fini: ./prog [0] | |
21169: | |
21169: | |
21169: calling fini: ./libfoo.so [0] | |
21169: | |
21169: | |
21169: calling fini: ./libbar.so [0] | |
21169: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment