GP-1936 Support extended sizes for ELF program and section header counts

This commit is contained in:
ghidra1
2022-04-18 20:57:33 -04:00
parent 20706efea3
commit b16404d87b
7 changed files with 143 additions and 41 deletions

View File

@@ -273,7 +273,7 @@ public class PowerPC_ElfExtension extends ElfExtension {
RegisterValue enableVLE = new RegisterValue(vleContextReg, BigInteger.ONE);
ElfHeader elf = elfLoadHelper.getElfHeader();
if (elf.e_shnum() != 0) {
if (elf.getSectionHeaderCount() != 0) {
// Rely on section headers if present
for (ElfSectionHeader section : elf.getSections(
ElfSectionHeaderConstants.SHT_PROGBITS)) {