在linux下可用readelf -c 命令
如静态库为libtest.a,可执行readelf -c libtest.a。
具体命令:
readelf -c xxx.a 查看静态库定义的函数
readelf -A xxx.so 查看动态库定义的函数
readelf -a test 查看test全部信息
readelf -h test 查看test的ELF Header头信息
readelf -l test 查看test的Program Header Table信息
readelf -S test 查看test的Section Header Table信息