我正在查看我制作的演示软件,在使用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
由于