rename strtab to strtab_section

Co-authored-by: Willi Ballenthin <willi.ballenthin@gmail.com>
This commit is contained in:
Yacine Elhamer
2023-06-01 10:26:40 +01:00
committed by GitHub
parent 57386812f9
commit ffb1cb3128

View File

@@ -133,7 +133,7 @@ def extract_insn_api_features(fh: FunctionHandle, bb, ih: InsnHandle) -> Iterato
SHT_SYMTAB = 0x2
for section in elf.sections:
if section.sh_info & SHT_SYMTAB:
strtab = elf.sections[section.vsGetField("sh_link")]
strtab_section = elf.sections[section.vsGetField("sh_link")]
sh_symtab = Shdr.from_viv(section, elf.getSectionBytes(section.name))
sh_strtab = Shdr.from_viv(strtab, elf.getSectionBytes(strtab.name))