zoukankan      html  css  js  c++  java
  • Linux 工具套件 —— binutils、readelf

    • 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
  • 相关阅读:
    基本输入输出函数
    变长参数表函数的编写
    一文精通Linux 命令行
    Linux 下的种种打包、压缩、解压命令
    GIT补丁怎么打?
    GIT 合并的冲突解决途径
    GIT 库整理方法
    GIT中常用命令详解1.reset
    霍夫曼编码及译码
    C语言链表实现队列
  • 原文地址:https://www.cnblogs.com/mtcnn/p/9421049.html
Copyright © 2011-2022 走看看