How I can find function in shared object files using objdump and bash functions in linux?

后端 未结 2 1027
青春惊慌失措
青春惊慌失措 2021-02-07 03:24

I\'ve got a folder in linux, which is contained several shared object files (*.so). How I can find function in shared object files using objdump and bash functions in linux?

相关标签:
2条回答
  • 2021-02-07 04:06

    nm is simpler than objdump, for this task.
    nm -A *.so | grep func should work. The -A flag tells nm to print the file name.

    0 讨论(0)
  • 2021-02-07 04:08

    You can use also use,

    find <path> -name "*.so" -exec nm {} \; | grep func1
    
    0 讨论(0)
提交回复
热议问题