Package ghidra.app.util.bin.format.elf
Class ElfProgramHeaderType
- java.lang.Object
-
- ghidra.app.util.bin.format.elf.ElfProgramHeaderType
-
public class ElfProgramHeaderType extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
description
java.lang.String
name
static ElfProgramHeaderType
PT_DYNAMIC
static ElfProgramHeaderType
PT_GNU_EH_FRAME
static ElfProgramHeaderType
PT_GNU_RELRO
static ElfProgramHeaderType
PT_GNU_STACK
static ElfProgramHeaderType
PT_INTERP
static ElfProgramHeaderType
PT_LOAD
static ElfProgramHeaderType
PT_NOTE
static ElfProgramHeaderType
PT_NULL
static ElfProgramHeaderType
PT_PHDR
static ElfProgramHeaderType
PT_SHLIB
static ElfProgramHeaderType
PT_TLS
int
value
-
Constructor Summary
Constructors Constructor Description ElfProgramHeaderType(int value, java.lang.String name, java.lang.String description)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
addDefaultTypes(java.util.Map<java.lang.Integer,ElfProgramHeaderType> programHeaderTypeMap)
static void
addProgramHeaderType(ElfProgramHeaderType type, java.util.Map<java.lang.Integer,ElfProgramHeaderType> programHeaderTypeMap)
Add the specified program header type to the specified map.static EnumDataType
getEnumDataType(boolean is32bit, java.lang.String typeSuffix, java.util.Map<java.lang.Integer,ElfProgramHeaderType> dynamicTypeMap)
java.lang.String
toString()
-
-
-
Field Detail
-
PT_NULL
public static ElfProgramHeaderType PT_NULL
-
PT_LOAD
public static ElfProgramHeaderType PT_LOAD
-
PT_DYNAMIC
public static ElfProgramHeaderType PT_DYNAMIC
-
PT_INTERP
public static ElfProgramHeaderType PT_INTERP
-
PT_NOTE
public static ElfProgramHeaderType PT_NOTE
-
PT_SHLIB
public static ElfProgramHeaderType PT_SHLIB
-
PT_PHDR
public static ElfProgramHeaderType PT_PHDR
-
PT_TLS
public static ElfProgramHeaderType PT_TLS
-
PT_GNU_EH_FRAME
public static ElfProgramHeaderType PT_GNU_EH_FRAME
-
PT_GNU_STACK
public static ElfProgramHeaderType PT_GNU_STACK
-
PT_GNU_RELRO
public static ElfProgramHeaderType PT_GNU_RELRO
-
value
public final int value
-
name
public final java.lang.String name
-
description
public final java.lang.String description
-
-
Method Detail
-
addProgramHeaderType
public static void addProgramHeaderType(ElfProgramHeaderType type, java.util.Map<java.lang.Integer,ElfProgramHeaderType> programHeaderTypeMap) throws DuplicateNameException
Add the specified program header type to the specified map.- Parameters:
type
- program header typeprogramHeaderTypeMap
-- Throws:
DuplicateNameException
- if new type name already defined within the specified map
-
addDefaultTypes
public static void addDefaultTypes(java.util.Map<java.lang.Integer,ElfProgramHeaderType> programHeaderTypeMap)
-
getEnumDataType
public static EnumDataType getEnumDataType(boolean is32bit, java.lang.String typeSuffix, java.util.Map<java.lang.Integer,ElfProgramHeaderType> dynamicTypeMap)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-