Package ghidra.app.util.bin.format.elf
Class ElfSectionHeaderConstants
- java.lang.Object
-
- ghidra.app.util.bin.format.elf.ElfSectionHeaderConstants
-
public class ElfSectionHeaderConstants extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
dot_bss
RESERVED SECTION NAMEstatic java.lang.String
dot_comment
RESERVED SECTION NAMEstatic java.lang.String
dot_data
RESERVED SECTION NAMEstatic java.lang.String
dot_data1
RESERVED SECTION NAMEstatic java.lang.String
dot_debug
RESERVED SECTION NAMEstatic java.lang.String
dot_dynamic
RESERVED SECTION NAMEstatic java.lang.String
dot_dynstr
RESERVED SECTION NAMEstatic java.lang.String
dot_dynsym
RESERVED SECTION NAMEstatic java.lang.String
dot_fini
RESERVED SECTION NAMEstatic java.lang.String
dot_got
RESERVED SECTION NAMEstatic java.lang.String
dot_hash
RESERVED SECTION NAMEstatic java.lang.String
dot_init
RESERVED SECTION NAMEstatic java.lang.String
dot_interp
RESERVED SECTION NAMEstatic java.lang.String
dot_line
RESERVED SECTION NAMEstatic java.lang.String
dot_note
RESERVED SECTION NAMEstatic java.lang.String
dot_plt
RESERVED SECTION NAMEstatic java.lang.String
dot_rodata
RESERVED SECTION NAMEstatic java.lang.String
dot_rodata1
RESERVED SECTION NAMEstatic java.lang.String
dot_shstrtab
RESERVED SECTION NAMEstatic java.lang.String
dot_strtab
RESERVED SECTION NAMEstatic java.lang.String
dot_symtab
RESERVED SECTION NAMEstatic java.lang.String
dot_tbss
RESERVED SECTION NAMEstatic java.lang.String
dot_tdata
RESERVED SECTION NAMEstatic java.lang.String
dot_tdata1
RESERVED SECTION NAMEstatic java.lang.String
dot_text
RESERVED SECTION NAMEstatic int
SHF_ALLOC
The section occupies memory during executionstatic int
SHF_EXCLUDE
This section is excluded from the final executable or shared library.static int
SHF_EXECINSTR
The section contains executable machine instructions.static int
SHF_GROUP
The section is member of a group.static int
SHF_INFO_LINK
sh_info contains SHT indexstatic int
SHF_LINK_ORDER
Preserve order after combiningstatic int
SHF_MASKOS
The section contains OS-specific data.static int
SHF_MASKPROC
Processor-specificstatic int
SHF_MERGE
The section might be mergedstatic int
SHF_OS_NONCONFORMING
Non-standard OS specific handling requiredstatic int
SHF_STRINGS
The section contains null-terminated stringsstatic int
SHF_TLS
The section that holds thread-local data.static int
SHF_WRITE
The section contains data that should be writable during process execution.static short
SHN_ABS
symbol defined relative to this are absolute, not affected by relocationstatic short
SHN_COMMON
common symbols, such as Fortran COMMON or unallocated C external varsstatic short
SHN_HIOS
Highest operating system-specific indexstatic short
SHN_HIPROC
upper bound for processor-specific semanticsstatic short
SHN_HIRESERVE
upper bound on range of reserved indexesstatic short
SHN_LOOS
Lowest operating system-specific indexstatic short
SHN_LOPROC
lower bound for processor-specific semanticsstatic short
SHN_LORESERVE
lower bound on range of reserved indexesstatic short
SHN_UNDEF
undefined, missing, irrelevant sectionstatic short
SHN_XINDEX
Mark that the index is >= SHN_LORESERVEstatic int
SHT_ANDROID_REL
Android relocation entries w/o explicit addendsstatic int
SHT_ANDROID_RELA
Android relocation entries with explicit addendsstatic int
SHT_ANDROID_RELR
Android's experimental support for SHT_RELR sections (see above)static int
SHT_CHECKSUM
Checksum for DSO content.static int
SHT_DYNAMIC
Dynamic linking informationstatic int
SHT_DYNSYM
Symbol table for dynamic linkingstatic int
SHT_FINI_ARRAY
Array of destructorsstatic int
SHT_GNU_ATTRIBUTES
Object attributesstatic int
SHT_GNU_HASH
GNU-style hash tablestatic int
SHT_GNU_LIBLIST
Prelink library liststatic int
SHT_GNU_verdef
Version definition section.static int
SHT_GNU_verneed
Version needs section.static int
SHT_GNU_versym
Version symbol table.static int
SHT_GROUP
Section groupstatic int
SHT_HASH
Symbol hash table for dynamic linkingstatic int
SHT_INIT_ARRAY
Array of constructorsstatic int
SHT_NOBITS
Section contains no bytesstatic int
SHT_NOTE
Section holds information that marks the filestatic int
SHT_NULL
Inactive section headerstatic int
SHT_PREINIT_ARRAY
Array of pre-constructorsstatic int
SHT_PROGBITS
Program definedstatic int
SHT_REL
Relocation entries w/o explicit addendsstatic int
SHT_RELA
Relocation entries with explicit addendsstatic int
SHT_RELR
Experimental support - see proposal at https://groups.google.com/forum/#!topic/generic-abi/bX460iggiKgstatic int
SHT_SHLIB
Undefinedstatic int
SHT_STRTAB
String tablestatic int
SHT_SUNW_COMDAT
static int
SHT_SUNW_move
static int
SHT_SUNW_syminfo
static int
SHT_SYMTAB
Symbol table for link editing and dynamic linkingstatic int
SHT_SYMTAB_SHNDX
Extended section indeces
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isProcessorSpecificSymbolSectionIndex(short symbolSectionIndex)
-
-
-
Field Detail
-
dot_bss
public static final java.lang.String dot_bss
RESERVED SECTION NAME- See Also:
- Constant Field Values
-
dot_comment
public static final java.lang.String dot_comment
RESERVED SECTION NAME- See Also:
- Constant Field Values
-
dot_data
public static final java.lang.String dot_data
RESERVED SECTION NAME- See Also:
- Constant Field Values
-
dot_data1
public static final java.lang.String dot_data1
RESERVED SECTION NAME- See Also:
- Constant Field Values
-
dot_debug
public static final java.lang.String dot_debug
RESERVED SECTION NAME- See Also:
- Constant Field Values
-
dot_dynamic
public static final java.lang.String dot_dynamic
RESERVED SECTION NAME- See Also:
- Constant Field Values
-
dot_dynstr
public static final java.lang.String dot_dynstr
RESERVED SECTION NAME- See Also:
- Constant Field Values
-
dot_dynsym
public static final java.lang.String dot_dynsym
RESERVED SECTION NAME- See Also:
- Constant Field Values
-
dot_fini
public static final java.lang.String dot_fini
RESERVED SECTION NAME- See Also:
- Constant Field Values
-
dot_got
public static final java.lang.String dot_got
RESERVED SECTION NAME- See Also:
- Constant Field Values
-
dot_hash
public static final java.lang.String dot_hash
RESERVED SECTION NAME- See Also:
- Constant Field Values
-
dot_init
public static final java.lang.String dot_init
RESERVED SECTION NAME- See Also:
- Constant Field Values
-
dot_interp
public static final java.lang.String dot_interp
RESERVED SECTION NAME- See Also:
- Constant Field Values
-
dot_line
public static final java.lang.String dot_line
RESERVED SECTION NAME- See Also:
- Constant Field Values
-
dot_note
public static final java.lang.String dot_note
RESERVED SECTION NAME- See Also:
- Constant Field Values
-
dot_plt
public static final java.lang.String dot_plt
RESERVED SECTION NAME- See Also:
- Constant Field Values
-
dot_rodata
public static final java.lang.String dot_rodata
RESERVED SECTION NAME- See Also:
- Constant Field Values
-
dot_rodata1
public static final java.lang.String dot_rodata1
RESERVED SECTION NAME- See Also:
- Constant Field Values
-
dot_shstrtab
public static final java.lang.String dot_shstrtab
RESERVED SECTION NAME- See Also:
- Constant Field Values
-
dot_strtab
public static final java.lang.String dot_strtab
RESERVED SECTION NAME- See Also:
- Constant Field Values
-
dot_symtab
public static final java.lang.String dot_symtab
RESERVED SECTION NAME- See Also:
- Constant Field Values
-
dot_text
public static final java.lang.String dot_text
RESERVED SECTION NAME- See Also:
- Constant Field Values
-
dot_tbss
public static final java.lang.String dot_tbss
RESERVED SECTION NAME- See Also:
- Constant Field Values
-
dot_tdata
public static final java.lang.String dot_tdata
RESERVED SECTION NAME- See Also:
- Constant Field Values
-
dot_tdata1
public static final java.lang.String dot_tdata1
RESERVED SECTION NAME- See Also:
- Constant Field Values
-
SHT_NULL
public static final int SHT_NULL
Inactive section header- See Also:
- Constant Field Values
-
SHT_PROGBITS
public static final int SHT_PROGBITS
Program defined- See Also:
- Constant Field Values
-
SHT_SYMTAB
public static final int SHT_SYMTAB
Symbol table for link editing and dynamic linking- See Also:
- Constant Field Values
-
SHT_STRTAB
public static final int SHT_STRTAB
String table- See Also:
- Constant Field Values
-
SHT_RELA
public static final int SHT_RELA
Relocation entries with explicit addends- See Also:
- Constant Field Values
-
SHT_HASH
public static final int SHT_HASH
Symbol hash table for dynamic linking- See Also:
- Constant Field Values
-
SHT_DYNAMIC
public static final int SHT_DYNAMIC
Dynamic linking information- See Also:
- Constant Field Values
-
SHT_NOTE
public static final int SHT_NOTE
Section holds information that marks the file- See Also:
- Constant Field Values
-
SHT_NOBITS
public static final int SHT_NOBITS
Section contains no bytes- See Also:
- Constant Field Values
-
SHT_REL
public static final int SHT_REL
Relocation entries w/o explicit addends- See Also:
- Constant Field Values
-
SHT_SHLIB
public static final int SHT_SHLIB
Undefined- See Also:
- Constant Field Values
-
SHT_DYNSYM
public static final int SHT_DYNSYM
Symbol table for dynamic linking- See Also:
- Constant Field Values
-
SHT_INIT_ARRAY
public static final int SHT_INIT_ARRAY
Array of constructors- See Also:
- Constant Field Values
-
SHT_FINI_ARRAY
public static final int SHT_FINI_ARRAY
Array of destructors- See Also:
- Constant Field Values
-
SHT_PREINIT_ARRAY
public static final int SHT_PREINIT_ARRAY
Array of pre-constructors- See Also:
- Constant Field Values
-
SHT_GROUP
public static final int SHT_GROUP
Section group- See Also:
- Constant Field Values
-
SHT_SYMTAB_SHNDX
public static final int SHT_SYMTAB_SHNDX
Extended section indeces- See Also:
- Constant Field Values
-
SHT_RELR
public static final int SHT_RELR
Experimental support - see proposal at https://groups.google.com/forum/#!topic/generic-abi/bX460iggiKg- See Also:
- Constant Field Values
-
SHT_ANDROID_REL
public static final int SHT_ANDROID_REL
Android relocation entries w/o explicit addends- See Also:
- Constant Field Values
-
SHT_ANDROID_RELA
public static final int SHT_ANDROID_RELA
Android relocation entries with explicit addends- See Also:
- Constant Field Values
-
SHT_ANDROID_RELR
public static final int SHT_ANDROID_RELR
Android's experimental support for SHT_RELR sections (see above)- See Also:
- Constant Field Values
-
SHT_GNU_ATTRIBUTES
public static final int SHT_GNU_ATTRIBUTES
Object attributes- See Also:
- Constant Field Values
-
SHT_GNU_HASH
public static final int SHT_GNU_HASH
GNU-style hash table- See Also:
- Constant Field Values
-
SHT_GNU_LIBLIST
public static final int SHT_GNU_LIBLIST
Prelink library list- See Also:
- Constant Field Values
-
SHT_CHECKSUM
public static final int SHT_CHECKSUM
Checksum for DSO content. +- See Also:
- Constant Field Values
-
SHT_SUNW_move
public static final int SHT_SUNW_move
- See Also:
- Constant Field Values
-
SHT_SUNW_COMDAT
public static final int SHT_SUNW_COMDAT
- See Also:
- Constant Field Values
-
SHT_SUNW_syminfo
public static final int SHT_SUNW_syminfo
- See Also:
- Constant Field Values
-
SHT_GNU_verdef
public static final int SHT_GNU_verdef
Version definition section.- See Also:
- Constant Field Values
-
SHT_GNU_verneed
public static final int SHT_GNU_verneed
Version needs section.- See Also:
- Constant Field Values
-
SHT_GNU_versym
public static final int SHT_GNU_versym
Version symbol table.- See Also:
- Constant Field Values
-
SHF_WRITE
public static final int SHF_WRITE
The section contains data that should be writable during process execution.- See Also:
- Constant Field Values
-
SHF_ALLOC
public static final int SHF_ALLOC
The section occupies memory during execution- See Also:
- Constant Field Values
-
SHF_EXECINSTR
public static final int SHF_EXECINSTR
The section contains executable machine instructions.- See Also:
- Constant Field Values
-
SHF_MERGE
public static final int SHF_MERGE
The section might be merged- See Also:
- Constant Field Values
-
SHF_STRINGS
public static final int SHF_STRINGS
The section contains null-terminated strings- See Also:
- Constant Field Values
-
SHF_INFO_LINK
public static final int SHF_INFO_LINK
sh_info contains SHT index- See Also:
- Constant Field Values
-
SHF_LINK_ORDER
public static final int SHF_LINK_ORDER
Preserve order after combining- See Also:
- Constant Field Values
-
SHF_OS_NONCONFORMING
public static final int SHF_OS_NONCONFORMING
Non-standard OS specific handling required- See Also:
- Constant Field Values
-
SHF_GROUP
public static final int SHF_GROUP
The section is member of a group.- See Also:
- Constant Field Values
-
SHF_TLS
public static final int SHF_TLS
The section that holds thread-local data.- See Also:
- Constant Field Values
-
SHF_EXCLUDE
public static final int SHF_EXCLUDE
This section is excluded from the final executable or shared library.- See Also:
- Constant Field Values
-
SHF_MASKOS
public static final int SHF_MASKOS
The section contains OS-specific data.- See Also:
- Constant Field Values
-
SHF_MASKPROC
public static final int SHF_MASKPROC
Processor-specific- See Also:
- Constant Field Values
-
SHN_UNDEF
public static final short SHN_UNDEF
undefined, missing, irrelevant section- See Also:
- Constant Field Values
-
SHN_LORESERVE
public static final short SHN_LORESERVE
lower bound on range of reserved indexes- See Also:
- Constant Field Values
-
SHN_LOPROC
public static final short SHN_LOPROC
lower bound for processor-specific semantics- See Also:
- Constant Field Values
-
SHN_HIPROC
public static final short SHN_HIPROC
upper bound for processor-specific semantics- See Also:
- Constant Field Values
-
SHN_LOOS
public static final short SHN_LOOS
Lowest operating system-specific index- See Also:
- Constant Field Values
-
SHN_HIOS
public static final short SHN_HIOS
Highest operating system-specific index- See Also:
- Constant Field Values
-
SHN_ABS
public static final short SHN_ABS
symbol defined relative to this are absolute, not affected by relocation- See Also:
- Constant Field Values
-
SHN_COMMON
public static final short SHN_COMMON
common symbols, such as Fortran COMMON or unallocated C external vars- See Also:
- Constant Field Values
-
SHN_XINDEX
public static final short SHN_XINDEX
Mark that the index is >= SHN_LORESERVE- See Also:
- Constant Field Values
-
SHN_HIRESERVE
public static final short SHN_HIRESERVE
upper bound on range of reserved indexes- See Also:
- Constant Field Values
-
-
Method Detail
-
isProcessorSpecificSymbolSectionIndex
public static boolean isProcessorSpecificSymbolSectionIndex(short symbolSectionIndex)
- Parameters:
symbolSectionIndex
- symbol section index (st_shndx)- Returns:
- true if specified symbol section index corresponds to a processor specific value in the range SHN_LOPROC..SHN_HIPROC, else false
-
-