getSectionStringTable

fnElfStringTable getSectionStringTable(ElfFile file)

Get the section header string table from an ELF file.

The table is located through the e_shstrndx header field (including its SHN_XINDEX escape), not by section name: a valid section name table may be called anything. When no name table exists (SHN_UNDEF), an empty table is returned so sections still enumerate by index with empty names.

Parameters

fileThe ELF file.

Returns

An ElfStringTable for the section name string table.

Throws

Exception if the resolved index is out of bounds, the section is

not a string table, or the SHN_XINDEX escape cannot be resolved.