zoukankan      html  css  js  c++  java
  • arm-linux-readelf 的使用

    1. 读 elf 文件开始的文件头部

    [arm@localhost gcc]$ arm­linux­readelf ­h hello ELF Header:

    Magic:   7f 45 4c 46 01 01 01 61 00 00 00 00 00 00 00 00

    Class:                                         ELF32

    Data:                                         2's complement, little endian

    Version:                                    1 (current)

    OS/ABI:                                    ARM

    ABI Version:                            0

    Type:                                         EXEC (Executable file)

    Machine:                                   ARM

    Version:                                     0x1

    Entry point address:                0x82b4

    Start of program headers:     52 (bytes into file) Start of section headers:                                                    10240 (bytes into file) Flags:  0x2, has entry point

    Size of this header:                  52 (bytes) Size of program headers: 32 (bytes) Number of program headers: 6

    Size of section headers:           40 (bytes) Number of section headers:                                      28

    Section header string table index: 25

    2. 读 elf 文件中所有 ELF 的头部: [arm@localhost gcc]#arm­linux­readelf ­e hello

    ......

    3. 显示整个文件的符号表

    [arm@localhost gcc]#arm­linux­readelf ­s hello

    ......

    4. 显示使用的动态库

    [arm@localhost gcc]#arm­linux­readelf ­d hello

    ......

  • 相关阅读:
    今天的学习
    sql 修改字段
    原来这个分类是powerdesigner
    sql sum    空或0
    mac 配置maven报zsh: command not found各种坑点走位
    java-Map集合中存入的数组值转存到ArryList集合中的实现
    Java-集合总结之Collection和Map--Map(3)
    Java-集合总结之Collection和Map--Set(2)
    Java-集合总结之Collection和Map--List(1)
    测试-bug跟踪过程中的相关状态英文释义
  • 原文地址:https://www.cnblogs.com/fanweisheng/p/11105606.html
Copyright © 2011-2022 走看看