二进制文件读取

今天看到一个命令,readelf,用来读取二进制文件的。虽然暂时还没有用到,但是他的功能貌似很有用,所以记录下防止以后需要用忘了

以下是直接复制的,侵删

readelf -v

显示版本


readelf -h

显示帮助


readelf -a test

显示test的全部信息


readelf -h test

显示test的ELF Header的文件头信息(就是ELF文件开始的前52个字节)


readelf -l test

显示test的Program Header Table中的每个Prgram Header Entry的信息(如果有)


readelf -S test

显示test的Section Header Table中的每个Section Header Entry的信息(如果有)



readelf -g test

显示test的Section Group的信息(如果有)


readelf -s test

显示test的Symbol Table中的每个Symbol  Table Entry的信息(如果有)


readelf -e test

显示test的全部头信息(包括ELF Header,Section Header和Program Header,等同与 readelf -h -l -S test)



readelf -n test

显示test的note段的信息(如果有)



readelf -r test

显示test中的可重定位段的信息(如果有)



readelf -d test

显示test中的Dynamic Section的信息(如果有)



readelf -V test

显示test中的GNU Version段信息(如果有)

引用

http://blog.163.com/shi_shun/blog/static/23707849201241110399835/


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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值