linux查看动态库.so导出函数列表
方法一 objdump命令
例如:objdump -tT xxx.so
root@localhost:/usr/local/wang/AAC/zlstream/bin# objdump -tT libprotobuf.so.13.0.0|grep SerializeToString
00000000000d7830 g F .text 0000000000000030 _ZNK6google8protobuf11MessageLite17SerializeToStringEPSs
00000000000d7830 g DF .text 0000000000000030 Base _ZNK6google8protobuf11MessageLite17SerializeToStringEPSs
1、objdump -x libprotobuf.so.13.0.0|grep SerializeToString
2、objdump -x libprotobuf.so.13.0.0|grep fixed_address_empty_string
方法二:
使用nm命令
root@localhost:/usr/local/wang/AAC/zlstream/bin# nm -D libprotobuf.so.13.0.0|grep SerializeToString
00000000000d7830 T _ZNK6google8protobuf11MessageLite17SerializeToStringEPSs