Access ELF string table section header

Posted by idealistikz on Stack Overflow See other posts from Stack Overflow or by idealistikz
Published on 2010-05-28T02:30:09Z Indexed on 2010/05/28 2:31 UTC
Read the original article Hit count: 282

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about c

    Related posts about elf