Is there a way to check which order symbols are loaded into the application on Linux?

I know that there is a file / proc / pro # / maps that shows the loaded libraries, but is there any way to find out in what order the symbols are loaded?

+3
source share
2 answers

You can get all the debugging information using an environment variable LD_DEBUG. For instance:

$ LD_DEBUG=files ls

This will run lsand show you the shared libraries as they load. Use LD_DEBUG=helpto list other options.

+4
source

You can run the application under straceand look at the dynamic linker of mmaplibraries in the process memory.

+2
source

Source: https://habr.com/ru/post/1732607/


All Articles