readelf, nm

elf: Executable and Linkable Formatz, 可执行,可链接的文件格式

readelf, 读取可执行文件或者库文件中elf部分的信息,并显示出来。

1)对于release的动态库,没有 符号表,但是有动态符号使用-d读取

2)如果有符号表中版本信息,那么对应函数后面@version1;如果没有版本信息使用默认的版本信息,那么会添加两个@, @@version1

3)readelf, 和 nm 基本可以平替

readelf [-a|--all]
               [-h|--file-header]
               [-l|--program-headers|--segments]
               [-S|--section-headers|--sections]
               [-g|--section-groups]
               [-t|--section-details]
               [-e|--headers]
               [-s|--syms|--symbols]
               [--dyn-syms|--lto-syms]
               [--sym-base=[0|8|10|16]]
               [--demangle=style|--no-demangle]
               [--quiet]
               [--recurse-limit|--no-recurse-limit]
               [-U method|--unicode=method]
               [-n|--notes]
               [-r|--relocs]
               [-u|--unwind]
               [-d|--dynamic]
               [-V|--version-info]
               [-A|--arch-specific]
               [-D|--use-dynamic]
               [-L|--lint|--enable-checks]
               [-x <number or name>|--hex-dump=<number or name>]
               [-p <number or name>|--string-dump=<number or name>]
               [-R <number or name>|--relocated-dump=<number or name>]
               [-z|--decompress]
               [-c|--archive-index]
               [-w[lLiaprmfFsoORtUuTgAck]|
                --debug-dump[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=str-offsets,=loc,=Ranges,=pubtypes,=trace_info,=trace_abbrev,=trace_aranges,=gdb_index,=addr,=cu_index,=links]]
               [-wK|--debug-dump=follow-links]
               [-wN|--debug-dump=no-follow-links]
               [-wD|--debug-dump=use-debuginfod]
               [-wE|--debug-dump=do-not-use-debuginfod]
               [-P|--process-links]
               [--dwarf-depth=n]
               [--dwarf-start=n]
               [--ctf=section]
               [--ctf-parent=section]
               [--ctf-symbols=section]
               [--ctf-strings=section]
               [-I|--histogram]
               [-v|--version]
               [-W|--wide]
               [-T|--silent-truncation]
               [-H|--help]
               elffile...

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值