#define ELF64_GET_PHDR(elf, index)
Get the program header at the given index from an ELF file.
void elf64_get_loadable_bounds(const Elf64_File *elf, Elf64_Addr *minAddr, Elf64_Addr *maxAddr)
Get the loadable virtual memory bounds of an ELF file.
uint64_t Elf64_Addr
ELF64 Unsigned program address.
@ PT_LOAD
Loadable segment.
#define NULL
Pointer error value.
Elf64_Half e_phnum
Number of entries in the program header table.
ELF File Helper structure.
Elf64_Ehdr * header
The data in the file, pointed to the start of the ELF header.
Elf64_Xword p_memsz
Size of segment in memory in bytes.
Elf64_Addr p_vaddr
Target virtual address in memory.
Elf64_Word p_type
Segment type.