11 if (strTabIndex >= header->
e_shnum)
22 if (offset >= strtabHdr->
sh_size)
28 return &strTable[offset];
const char * elf64_get_string(const Elf64_File *elf, Elf64_Xword strTabIndex, Elf64_Off offset)
Get a string from the string table section at the given offset.
#define ELF64_AT_OFFSET(elf, offset)
Get a pointer to a location in the ELF file at the given offset.
uint64_t Elf64_Xword
ELF64 Unsigned long integer.
uint64_t Elf64_Off
ELF64 Unsigned file offset.
#define ELF64_GET_SHDR(elf, index)
Get the section header at the given index from an ELF file.
@ SHT_STRTAB
Contains a string table.
#define NULL
Pointer error value.
ELF File Helper structure.
Elf64_Ehdr * header
The data in the file, pointed to the start of the ELF header.
Elf64_Word sh_type
Section type.
Elf64_Xword sh_size
Section size in bytes.
Elf64_Off sh_offset
Section's file offset in bytes.