linux看安装了哪些函数,如何查看linux动态库中包含哪些函数

1、方法1

nm *.so

2、方法2

readelf -a *.so

PS:readelf

Options are:   -a --all               Equivalent to: -h -l -S -s -r -d -V -A -I   -h --file-header       Display the ELF file header   -l --program-headers   Display the program headers      --segments          An alias for --program-headers   -S --section-headers   Display the sections' header      --sections          An alias for --section-headers   -g --section-groups    Display the section groups   -t --section-details   Display the section details   -e --headers           Equivalent to: -h -l -S   -s --syms              Display the symbol table       --symbols          An alias for --syms   -n --notes             Display the core notes (if present)   -r --relocs            Display the relocations (if present)   -u --unwind            Display the unwind info (if present)   -d --dynamic           Display the dynamic section (if present)   -V --version-info      Display the version sections (if present)   -A --arch-specific     Display architecture specific information (if any).   -c --archive-index     Display the symbol/file index in an archive   -D --use-dynamic       Use the dynamic section info when displaying symbols   -x --hex-dump=                          Dump the contents of section as bytes   -p --string-dump=                          Dump the contents of section as strings   -R --relocated-dump=                          Dump the contents of section as relocated bytes   -w[lLiaprmfFsoR] or   --debug-dump[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=str,=loc,=Ranges]                          Display the contents of DWARF2 debug sections   -I --histogram         Display histogram of bucket list lengths   -W --wide              Allow output width to exceed 80 characters   @                Read options from   -H --help              Display this information

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值