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

public Interface ELFHeader

Known Direct Implementers
sun.jvm.hotspot.debugger.posix.elf.ELFFileParser.ELFFileImpl.ELFHeaderImpl
Imports
java.io.FileInputStream

This is a Java class that represents a ELF file header.
Author
Joshua W. Outwater

Field Summary

Modifier and TypeField and Description
public static final int
ARCH_68k

Motorolla 68000 architecture type.

public static final int
ARCH_88k

Motorolla 88000 architecture type.

public static final int
ARCH_ATT

AT&T; architecture type.

public static final int
ARCH_i386

Intel 386 architecture type.

public static final int
ARCH_i860

Intel 860 architecture type.

public static final int
ARCH_MIPS

MIPS architecture type.

public static final int
ARCH_NONE

No architecture type.

public static final int
ARCH_SPARC

SPARC architecture type.

public static final int
FT_CORE

Core file file type.

public static final int
FT_DYN

Shared object file type.

public static final int
FT_EXEC

Executable file type.

public static final int
FT_HICPROC

Processor specific.

public static final int
FT_LOCPROC

Processor specific.

public static final int
FT_NONE

No file type.

public static final int
FT_REL

Relocatable file type.

Method Summary

Modifier and TypeMethod and Description
public short
getArch()

Returns one of the architecture constants.

public ELFStringTable
getDynamicStringTable()

Returns the dynamic string table associated with this ELF file, or null if one does not exist.

public ELFSectionHeader
getDynamicSymbolTableSection()

Returns the dynamic symbol table associated with this ELF file, or null if one does not exist.

public ELFSymbol
getELFSymbol(String name)

Returns the elf symbol with the specified name or null if one is not found.

public ELFSymbol
getELFSymbol(long address)

Returns the elf symbol with the specified address or null if one is not found.

public short
getFileType()

Returns a file type which is defined by the file type constants.

public ELFHashTable
getHashTable()

Returns the hash table associated with this ELF file, or null if one does not exist.

public short
getNumberOfSectionHeaders()

Returns the number of section headers.

public ELFSectionHeader
getSectionHeader(int index)

Returns the section header at the specified index.

public short
getSectionHeaderSize()

Returns the size of a section header.

public ELFStringTable
getSectionHeaderStringTable()

Returns the section header string table associated with this ELF file.

public ELFStringTable
getStringTable()

Returns the string table associated with this ELF file.

public ELFSectionHeader
getSymbolTableSection()

Returns the symbol table associated with this ELF file, or null if one does not exist.

Field Detail

ARCH_68kback to summary
public static final int ARCH_68k

Motorolla 68000 architecture type.

ARCH_88kback to summary
public static final int ARCH_88k

Motorolla 88000 architecture type.

ARCH_ATTback to summary
public static final int ARCH_ATT

AT&T architecture type.

ARCH_i386back to summary
public static final int ARCH_i386

Intel 386 architecture type.

ARCH_i860back to summary
public static final int ARCH_i860

Intel 860 architecture type.

ARCH_MIPSback to summary
public static final int ARCH_MIPS

MIPS architecture type.

ARCH_NONEback to summary
public static final int ARCH_NONE

No architecture type.

ARCH_SPARCback to summary
public static final int ARCH_SPARC

SPARC architecture type.

FT_COREback to summary
public static final int FT_CORE

Core file file type.

FT_DYNback to summary
public static final int FT_DYN

Shared object file type.

FT_EXECback to summary
public static final int FT_EXEC

Executable file type.

FT_HICPROCback to summary
public static final int FT_HICPROC

Processor specific.

FT_LOCPROCback to summary
public static final int FT_LOCPROC

Processor specific.

FT_NONEback to summary
public static final int FT_NONE

No file type.

FT_RELback to summary
public static final int FT_REL

Relocatable file type.

Method Detail

getArchback to summary
public short getArch()

Returns one of the architecture constants.

getDynamicStringTableback to summary
public ELFStringTable getDynamicStringTable()

Returns the dynamic string table associated with this ELF file, or null if one does not exist.

getDynamicSymbolTableSectionback to summary
public ELFSectionHeader getDynamicSymbolTableSection()

Returns the dynamic symbol table associated with this ELF file, or null if one does not exist.

getELFSymbolback to summary
public ELFSymbol getELFSymbol(String name)

Returns the elf symbol with the specified name or null if one is not found.

getELFSymbolback to summary
public ELFSymbol getELFSymbol(long address)

Returns the elf symbol with the specified address or null if one is not found. 'address' is relative to base of shared object for .so's.

getFileTypeback to summary
public short getFileType()

Returns a file type which is defined by the file type constants.

getHashTableback to summary
public ELFHashTable getHashTable()

Returns the hash table associated with this ELF file, or null if one does not exist.

Note

Currently the ELFHashTable does not work so this method will always return null.

getNumberOfSectionHeadersback to summary
public short getNumberOfSectionHeaders()

Returns the number of section headers.

getSectionHeaderback to summary
public ELFSectionHeader getSectionHeader(int index)

Returns the section header at the specified index. The section header at index 0 is the undefined section header.

getSectionHeaderSizeback to summary
public short getSectionHeaderSize()

Returns the size of a section header.

getSectionHeaderStringTableback to summary
public ELFStringTable getSectionHeaderStringTable()

Returns the section header string table associated with this ELF file.

getStringTableback to summary
public ELFStringTable getStringTable()

Returns the string table associated with this ELF file.

getSymbolTableSectionback to summary
public ELFSectionHeader getSymbolTableSection()

Returns the symbol table associated with this ELF file, or null if one does not exist.