1). 查看依赖项:objdump -x xxx.so | grep "NEEDED" 。 

 2). 查看动态符号表: objdump -T xxx.so 。假如想知道 xxx.so 中是否导出了符号 yyy ,那么命令为 objdump -T xxx.so | grep "yyy"  

3). 查看符号表: objdump -t xxx.so 。-T 和 -t 选项在于 -T 只能查看动态符号,如库导出的函数和引用其他库的函数,而 -t 可以查看所有的符号,包括数据段的符号。

objdump文档:

https://sourceware.org/binutils/docs/binutils/objdump.html

linux入门文档:

https://linux265.com/course/introductory%20linux%20tutorials.html

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-24
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
猜你喜欢
  • 2022-12-23
  • 2021-08-14
  • 2021-10-14
  • 2022-12-23
  • 2022-01-08
  • 2021-12-13
相关资源
相似解决方案