I want to be able to know what are the symbols that are used from a certain shared library at runtime.
I use gdb and I set the solib-search-path to the user defined shared library. I am not sure if there is another way with ltrace
Asked
Active
Viewed 942 times
2
Bionix1441
- 297
- 6
- 14
-
1`ltrace -c -l 'yoursharedlib.so*' yourprogram args...` will list all the functions called by yourprogram in that shared library. It gives other info, too, so you may need to filter the output with `awk`. It won't list non-function symbols such as variables. Is that what you need? – Mark Plotnick Oct 14 '16 at 14:38