how to define a Program Headers start address
using the readelf tool I always get below result
$ readelf.exe -l hello_world.elf
Elf file type is EXEC (Executable file)
Entry point 0xa4d1
There are 3 program headers, starting at offset 52
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
LOAD 0x000000 0x00000000 0x00000000 0x0a400 0x0a400 R 0x10000
LOAD 0x00a400 0x0000a400 0x0000a400 0x02544 0x02544 RWE 0x10000
LOAD 0x010000 0x20000000 0x0000c944 0x00068 0x008b0 RW 0x10000
Section to Segment mapping:
Segment Sections...
00 .interrupts
01 .text .ARM .init_array .fini_array
02 .data .bss .heap .stack
Means the first Program HEADers are always start from 0x00000000, how can I modify it? as in my application, the 0x00000000 - 0x00009ffff is reserved.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Thomas Preud'homme
- Solved:
- Last query:
- Last reply: