博客
关于我
查找elf文件中的符号表
阅读量:604 次
发布时间:2019-03-12

本文共 327 字,大约阅读时间需要 1 分钟。

如何查看ELF文件的内容

查看ELF文件的内容需要使用特定的工具来分析二进制文件。以下是两种常用方法:

方法一:使用readelf

  • 找到该ELF文件所在目录中,执行以下命令:
  • readelf -a 文件名
    1. 该命令会输出ELF文件的详细信息,包括符号表等内容。-a选项表示打开所有段,包括文本、定义数据和。 Baptism 直接查看文件的位置和内容。
    2. 方法二:使用objdump

    3. 如果你手上有 gcc 或者类似工具编译过的ELF文件,可以使用 objdump 来查看更多信息。
    4. objdump -x 文件名
      1. 这条命令会展示文件的基本信息,例如目标机器类型、文件格式和程序的其它细节。
      2. 这两种方法都可以用来查看ELF文件的内容,根据需要选择合适的工具来处理。

    转载地址:http://hplxz.baihongyu.com/

    你可能感兴趣的文章
    npm ERR! fatal: unable to connect to github.com:
    查看>>
    npm ERR! Unexpected end of JSON input while parsing near '...on":"0.10.3","direc to'
    查看>>
    npm ERR! Unexpected end of JSON input while parsing near ‘...“:“^1.2.0“,“vue-html-‘ npm ERR! A comp
    查看>>
    npm error Missing script: “server“npm errornpm error Did you mean this?npm error npm run serve
    查看>>
    npm error MSB3428: 未能加载 Visual C++ 组件“VCBuild.exe”。要解决此问题,1) 安装
    查看>>
    npm install CERT_HAS_EXPIRED解决方法
    查看>>
    npm install digital envelope routines::unsupported解决方法
    查看>>
    npm install 卡着不动的解决方法
    查看>>
    npm install 报错 EEXIST File exists 的解决方法
    查看>>
    npm install 报错 ERR_SOCKET_TIMEOUT 的解决方法
    查看>>
    npm install 报错 Failed to connect to github.com port 443 的解决方法
    查看>>
    npm install 报错 fatal: unable to connect to github.com 的解决方法
    查看>>
    npm install 报错 no such file or directory 的解决方法
    查看>>
    npm install 权限问题
    查看>>
    npm install报错,证书验证失败unable to get local issuer certificate
    查看>>
    npm install无法生成node_modules的解决方法
    查看>>
    npm install的--save和--save-dev使用说明
    查看>>
    npm node pm2相关问题
    查看>>
    npm run build 失败Compiler server unexpectedly exited with code: null and signal: SIGBUS
    查看>>
    npm run build报Cannot find module错误的解决方法
    查看>>