【问题标题】:readelf displays two version numbersreadelf 显示两个版本号
【发布时间】:2017-05-19 03:06:31
【问题描述】:

我尝试使用 -h 选项运行 readelf,它会显示两个名为 Version 的字段,其中都包含数字 1。

其中一个字段显示版本 1(当前),另一个字段显示版本 0x1。

这两个领域的意义是什么?

ELF Header:
  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 
  Class:                             ELF32
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           <unknown>: 0xFFFF
  Version:                           0x1
  Entry point address:               0x0
  Start of program headers:          52 (bytes into file)
  Start of section headers:          2384 (bytes into file)
  Flags:                             0x0
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         5
  Size of section headers:           40 (bytes)
  Number of section headers:         11
  Section header string table index: 10

【问题讨论】:

    标签: elf readelf


    【解决方案1】:

    它显示两个称为版本的字段

    两个版本:一个是e_ident 的一部分并标识ELF 格式 本身。另一个是e_version,标识“目标文件版本”。

    我不知道这些字段中的任何一个有任何变化,因此实际上它们都始终为 1。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-07-31
      • 2013-09-06
      • 2017-09-01
      • 1970-01-01
      • 2011-03-05
      • 1970-01-01
      • 1970-01-01
      • 2020-09-26
      相关资源
      最近更新 更多