汇编程序ELF程序头重叠

时间:2016-05-24 07:03:50

标签: assembly elf

我正在查看我制作的演示软件,在使用readelf检查程序标题后,我看到NOTE标题与LOAD标题重叠。

readelf -l test

Elf file type is EXEC (Executable file)
Entry point 0x400144
There are 4 program headers, starting at offset 64

Program Headers:
  Type           Offset             VirtAddr           PhysAddr
                 FileSiz            MemSiz              Flags  Align
  LOAD           0x0000000000000000 0x0000000000400000 0x0000000000400000
                 0x00000000000001c8 0x00000000000001c8  R E    200000
  NOTE           0x0000000000000120 0x0000000000400120 0x0000000000400120
                 0x0000000000000024 0x0000000000000024  R      4
  GNU_EH_FRAME   0x0000000000000178 0x0000000000400178 0x0000000000400178
                 0x0000000000000014 0x0000000000000014  R      4
  GNU_STACK      0x0000000000000000 0x0000000000000000 0x0000000000000000
                 0x0000000000000000 0x0000000000000000  RWE    8

这怎么可能?

LOAD偏移量从0x00000..00开始,大小为0x00 ... 1c8,NOTE从偏移量0x000..120开始。它可以从偏移量0x000..1c9

开始

由于

0 个答案:

没有答案