Linux 工具套件 —— binutils、readelf

原文地址::https://www.cnblogs.com/mtcnn/p/9421049.html

相关文章

1、熟悉binutils工具集(完整版)----https://wenku.baidu.com/view/fc8e70a1284ac850ad02424c.html

2、linux系统 binutils 的 安装,解决These critical programs are missing or too old: as GNU ld 的问题----https://www.136.la/nginx/show-75594.html

3、Linux 下Valgrind 使用----https://www.cnblogs.com/luosongchao/p/3664628.html

  • readelf:Linux 下专门针对 ELF 文件格式的解析器;

0. binutils

GNU Binutils

  • gnu binutils 一套二进制工具的集合,主要包含:ld(gnu linker)、as(gnu assembler),此外还包括:
    • addr2line:Converts addresses into filenames and line numbers.
    • ar:A utility for creating, modifying and extracting from archives.
    • c++filt:Filter to demangle encoded C++ symbols.
    • dlltool:A new, faster, ELF only linker, still in beta test.
    • gold:A new, faster, ELF only linker, still in beta test.
    • gprof:Displays profiling information.
    • nlmconv:Converts object code into an NLM.
    • nm:Lists symbols from object files.
    • objcopy:Copies and translates object files.
    • objdump:Displays information from object files.
    • ranlib:Generates an index to the contents of an archive.
    • readelf:Displays information from any ELF format object file.
    • size:Lists printable strings from files.
    • strip:Discards symbols.
    • windmc:A Windows compatible(兼容的) message compiler.
    • windres:A compiler for Windows resource files.

1. objdump

  • objdump:顾名思义,查看显示 obj(目标文件)的内部结构;

    $ gcc -c hello.c
        # -c 表示只编译不链接;
    $ objdump -h hello.o
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值