mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-1936 Support extended sizes for ELF program and section header counts
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user