Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-598 removed ELF restriction on definition of 32-bit section header values

ghidra192b2405c53ed
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/elf/ElfSectionHeaderType.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/elf/ElfSectionHeaderType.java
index 8cfbd8b83e..a72d46bf06 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/elf/ElfSectionHeaderType.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/elf/ElfSectionHeaderType.java
@@ -139,10 +139,6 @@ public class ElfSectionHeaderType {
public final String description;
public ElfSectionHeaderType(int value, String name, String description) {
- if (value < 0) {
- throw new IllegalArgumentException(
- "ElfProgramHeaderType value out of range: 0x" + Long.toHexString(value));
- }
this.value = value;
this.name = name;
this.description = description;