https://refspecs.linuxbase.org/elf/
ELF Header
https://refspecs.linuxbase.org/elf/gabi4+/ch4.eheader.html
typedef struct elf64_phdr {
Elf64_Word p_type;
Elf64_Word p_flags;
Elf64_Off p_offset;
Elf64_Addr p_vaddr;
Elf64_Addr p_paddr;
Elf64_Xword p_filesz;
Elf64_Xword p_memsz;
Elf64_Xword p_align;
} Elf64_Phdr;
Program Header
https://refspecs.linuxbase.org/elf/gabi4+/ch5.pheader.html
typedef struct {
Elf64_Word p_type;
Elf64_Word p_flags;
Elf64_Off p_offset;
Elf64_Addr p_vaddr;
Elf64_Addr p_paddr;
Elf64_Xword p_filesz;
Elf64_Xword p_memsz;
Elf64_Xword p_align;
} Elf64_Phdr;
name | meaning |
---|---|
p_type | |
p_flags | |
p_offset | |
p_vaddr | |
p_paddr | |
p_filesz | |
p_memsz | |
p_algin |