This member holds the section header table
index of the entry associated with the section
name string table. If the file has no section name string table, this member holds
the value SHN_UNDEF. See ‘‘Sections’’ and ‘‘String Table’’ below for more information.
Это поле содержит
индех в таблице заголовков разделов (секций) и указывает на элемент таблицы (секцию) содержащую таблицу строк.
Если файл не содержит раздел с таблицей строк, это поле равно SHN_UNDEF == 0.
CODE
// Find section headers
SectionHeaderSize = FileHeader.e_shentsize;
if (SectionHeaderSize <= 0) err.submit(2033);
uint32 SectionOffset = uint32(FileHeader.e_shoff);
for (i = 0; i < NSections; i++) {
SectionHeaders[i] = Get<TELF_SectionHeader>(SectionOffset);
SectionOffset += SectionHeaderSize;
if (SectionHeaders[i].sh_type == SHT_SYMTAB) {
// Symbol table found
Symtabi = i;
}
}
SecStringTable = uint32(SectionHeaders[FileHeader.e_shstrndx].sh_offset);
SecStringTableLen = uint32(SectionHeaders[FileHeader.e_shstrndx].sh_size);
Собственно имена разделов содержатся в таблице строк.