2

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

1
  • 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? Commented Oct 14, 2016 at 14:38

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.