Access ELF string table section header
- by idealistikz
Assume:
Elf_Section_Header *sectionHeaderTable //points to the start of a ELF section header table
Elf_Section_Header *symtabHeader //points to the start of the symtab section header
Why doesn't the following point me to the associated string table section header?
Elf_Section_Header *strTabSectionHeader = (Elf_Section_Header *)((char *)sectionHeaderTable + (symtabHeader-strtab_index));
'strTabSectionHeader-type == SHT_STRTAB' is equal to false
How should I point ot the strTabSectionHeader?