How do I find out which functions of a shared object are used by a program or an other library?

后端 未结 5 1739
清歌不尽
清歌不尽 2021-01-30 11:37

How do I find out which functions of a shared object are used by a program or an other library? In this specific case, I would like to see which functions in /lib/libgcc1_s.so.1

5条回答
  •  再見小時候
    2021-01-30 12:14

    Have you looked at ltrace? It intercepts calls to shared library functions at runtime and prints information about them as they occur.

    Since this is a dynamic solution, it wouldn't print any information for a library call made in part of your program that never gets executed. But it might still be helpful depending on your needs.

提交回复
热议问题