ELF Loader question
Posted: Mon Sep 11, 2017 7:46 am
Hi, I'm implementing ELF loader using program headers. I find something quiet strange. I have two program headers that are marked to be 0x1000 aligned.
However, the second program header is marked to be loaded to not 0x1000 aligned address.
Does it make sense ?
Here's the dump of the sections:
DEBUG: Header: 0 Type: 1 Offset: 0x0 V-addr: 0x8048000 P-addr: 0x8048000 FSize: 0x270c MSize: 0x270c Flags: 5 Align: 1000
DEBUG: Header: 1 Type: 1 Offset: 0x270c V-addr: 0x804b70c P-addr: 0x804b70c FSize: 0x2184 MSize: 0x21fc Flags: 6 Align: 1000
However, the second program header is marked to be loaded to not 0x1000 aligned address.
Does it make sense ?
Here's the dump of the sections:
DEBUG: Header: 0 Type: 1 Offset: 0x0 V-addr: 0x8048000 P-addr: 0x8048000 FSize: 0x270c MSize: 0x270c Flags: 5 Align: 1000
DEBUG: Header: 1 Type: 1 Offset: 0x270c V-addr: 0x804b70c P-addr: 0x804b70c FSize: 0x2184 MSize: 0x21fc Flags: 6 Align: 1000