APIdia Launch Partner
Top Fields Methods
sun.jvm.hotspot.debugger.posix.elf

public Interface ELFSectionHeader

Known Direct Implementers
sun.jvm.hotspot.debugger.posix.elf.ELFFileParser.ELFFileImpl.ELFSectionHeaderImpl

Field Summary

Modifier and TypeField and Description
public static final String
DYNAMIC_STRING_TABLE_NAME

Section header name identifying the section as a dynamic string table.

public static final int
FLAG_ALLOC

Flag informing that section occupies memory during process execution.

public static final int
FLAG_EXEC_INSTR

Flag informaing that section contains executable machine instructions.

public static final int
FLAG_MASK

Flag informing that all the bits in the mask are reserved for processor specific semantics.

public static final int
FLAG_WRITE

Flag informing that this section contains data that should be writable during process execution.

public static final int
NDX_ABS

Absolute values for the corresponding reference.

public static final int
NDX_COMMON

Symbols defined relative to this section are common symbols, such as FORTRAN, COMMON or unallocated C external variables.

public static final int
NDX_HIPROC

Upper bound section header index reserved for processor specific semantics.

public static final int
NDX_HIRESERVE

Upper bound section header index.

public static final int
NDX_LOPROC

Lower bound section header index reserved for processor specific semantics.

public static final int
NDX_LORESERVE

Lower bound section header index.

public static final int
NDX_UNDEFINED

Undefined section header index.

public static final String
STRING_TABLE_NAME

Section header name identifying the section as a string table.

public static final int
TYPE_DYNAMIC

Section holds information for dynamic linking.

public static final int
TYPE_DYNSYM

Section holds a minimum set of dynamic linking symbols.

public static final int
TYPE_HASH

Section holds symbol hash table.

public static final int
TYPE_HIPROC

Upper bound section type that contains processor specific semantics.

public static final int
TYPE_HIUSER

Upper bound of the range of indexes reserved for application programs.

public static final int
TYPE_LOPROC

Lower bound section type that contains processor specific semantics.

public static final int
TYPE_LOUSER

Lower bound of the range of indexes reserved for application programs.

public static final int
TYPE_NOBITS

Section occupies no space but resembles TYPE_PROGBITS.

public static final int
TYPE_NOTE

Section holds information that marks the file.

public static final int
TYPE_NULL

Section is inactive.

public static final int
TYPE_PROGBITS

Section holds information defined by the program.

public static final int
TYPE_RELO

Section holds relocation entries without explicit addends.

public static final int
TYPE_RELO_EXPLICIT

Section holds relocation entries with explicit addends.

public static final int
TYPE_SHLIB

Section is reserved but has unspecified semantics.

public static final int
TYPE_STRTBL

Section holds string table information.

public static final int
TYPE_SYMTBL

Section holds symbol table information for link editing.

Method Summary

Modifier and TypeMethod and Description
public ELFSymbol
getELFSymbol(int index)

Returns the symbol at the specified index.

public ELFHashTable
getHashTable()

Returns the hash table for this section or null if one does not exist.

public String
getName()

Returns the name of the section or null if the section has no name.

public int
getNumberOfSymbols()

Returns the number of symbols in this section or 0 if none.

public long
getOffset()

Returns the offset in bytes to the beginning of the section.

public ELFStringTable
getStringTable()

Returns the string table for this section or null if one does not exist.

public int
getType()

Returns the type of section header.

Field Detail

DYNAMIC_STRING_TABLE_NAMEback to summary
public static final String DYNAMIC_STRING_TABLE_NAME

Section header name identifying the section as a dynamic string table.

FLAG_ALLOCback to summary
public static final int FLAG_ALLOC

Flag informing that section occupies memory during process execution.

FLAG_EXEC_INSTRback to summary
public static final int FLAG_EXEC_INSTR

Flag informaing that section contains executable machine instructions.

FLAG_MASKback to summary
public static final int FLAG_MASK

Flag informing that all the bits in the mask are reserved for processor specific semantics.

FLAG_WRITEback to summary
public static final int FLAG_WRITE

Flag informing that this section contains data that should be writable during process execution.

NDX_ABSback to summary
public static final int NDX_ABS

Absolute values for the corresponding reference. Symbols defined relative to section number NDX_ABS have absolute values and are not affected by relocation.

NDX_COMMONback to summary
public static final int NDX_COMMON

Symbols defined relative to this section are common symbols, such as FORTRAN, COMMON or unallocated C external variables.

NDX_HIPROCback to summary
public static final int NDX_HIPROC

Upper bound section header index reserved for processor specific semantics.

NDX_HIRESERVEback to summary
public static final int NDX_HIRESERVE

Upper bound section header index.

NDX_LOPROCback to summary
public static final int NDX_LOPROC

Lower bound section header index reserved for processor specific semantics.

NDX_LORESERVEback to summary
public static final int NDX_LORESERVE

Lower bound section header index.

NDX_UNDEFINEDback to summary
public static final int NDX_UNDEFINED

Undefined section header index.

STRING_TABLE_NAMEback to summary
public static final String STRING_TABLE_NAME

Section header name identifying the section as a string table.

TYPE_DYNAMICback to summary
public static final int TYPE_DYNAMIC

Section holds information for dynamic linking.

TYPE_DYNSYMback to summary
public static final int TYPE_DYNSYM

Section holds a minimum set of dynamic linking symbols.

TYPE_HASHback to summary
public static final int TYPE_HASH

Section holds symbol hash table.

TYPE_HIPROCback to summary
public static final int TYPE_HIPROC

Upper bound section type that contains processor specific semantics.

TYPE_HIUSERback to summary
public static final int TYPE_HIUSER

Upper bound of the range of indexes reserved for application programs.

TYPE_LOPROCback to summary
public static final int TYPE_LOPROC

Lower bound section type that contains processor specific semantics.

TYPE_LOUSERback to summary
public static final int TYPE_LOUSER

Lower bound of the range of indexes reserved for application programs.

TYPE_NOBITSback to summary
public static final int TYPE_NOBITS

Section occupies no space but resembles TYPE_PROGBITS.

TYPE_NOTEback to summary
public static final int TYPE_NOTE

Section holds information that marks the file.

TYPE_NULLback to summary
public static final int TYPE_NULL

Section is inactive.

TYPE_PROGBITSback to summary
public static final int TYPE_PROGBITS

Section holds information defined by the program.

TYPE_RELOback to summary
public static final int TYPE_RELO

Section holds relocation entries without explicit addends.

TYPE_RELO_EXPLICITback to summary
public static final int TYPE_RELO_EXPLICIT

Section holds relocation entries with explicit addends.

TYPE_SHLIBback to summary
public static final int TYPE_SHLIB

Section is reserved but has unspecified semantics.

TYPE_STRTBLback to summary
public static final int TYPE_STRTBL

Section holds string table information.

TYPE_SYMTBLback to summary
public static final int TYPE_SYMTBL

Section holds symbol table information for link editing. It may also be used to store symbols for dynamic linking.

Method Detail

getELFSymbolback to summary
public ELFSymbol getELFSymbol(int index)

Returns the symbol at the specified index. The ELF symbol at index 0 is the undefined symbol.

getHashTableback to summary
public ELFHashTable getHashTable()

Returns the hash table for this section or null if one does not exist.

Note

currently the ELFHashTable does not work and this method will always return null.

getNameback to summary
public String getName()

Returns the name of the section or null if the section has no name.

getNumberOfSymbolsback to summary
public int getNumberOfSymbols()

Returns the number of symbols in this section or 0 if none.

getOffsetback to summary
public long getOffset()

Returns the offset in bytes to the beginning of the section.

getStringTableback to summary
public ELFStringTable getStringTable()

Returns the string table for this section or null if one does not exist.

getTypeback to summary
public int getType()

Returns the type of section header.