|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cmpware.elf.ElfHeader
public class ElfHeader
This describes the ELF Header.
Copyright (c) 2004 Cmpware, Inc. All Rights Reserved.
| Field Summary | |
|---|---|
static java.lang.String |
copyright
Copyright string |
int |
e_ehsize
The ELF header size (in bytes) |
long |
e_entry
The entry point (virtual address) |
int |
e_flags
Processor-specific flags |
int |
e_machine
The machine type |
int |
e_phentsize
Program header table entry size |
int |
e_phnum
The number of Program header table entries |
long |
e_phoff
Program Header Table's offset (bytes) |
int |
e_shentsize
Section Header Entry size (bytes) |
int |
e_shnum
The number of Section headers |
long |
e_shoff
Section header table offset (bytes) |
int |
e_shstrndx
The string table index (in section header table) |
int |
e_type
The object file type |
int |
e_version
The file object version |
static int |
EI_CLASS
File class (e_ident[]) |
static int |
EI_DATA
Data encoding (e_ident[]) |
static int |
EI_MAG0
File identification (e_ident[]) |
static int |
EI_MAG1
File identification (e_ident[]) |
static int |
EI_MAG2
File identification (e_ident[]) |
static int |
EI_MAG3
File identification (e_ident[]) |
static int |
EI_NIDENT
The length of the identification string |
static int |
EI_PAD
Start of padding bytes (e_ident[]) |
static int |
EI_VERSION
File version (e_ident[]) |
static int |
ELFCLASS32
32-bit objects (e_ident[EI_CLASS]) |
static int |
ELFCLASS64
64-bit objects (e_ident[EI_CLASS]) |
static int |
ELFCLASSNONE
Invalid class (e_ident[EI_CLASS]) |
static int |
ELFDATA2LSB
"Little endian" encoding (e_ident[EI_DATA]) |
static int |
ELFDATA2MSB
"Big endian" encoding (e_ident[EI_DATA]) |
static int |
ELFDATANONE
Invalid data encoding (e_ident[EI_DATA]) |
static int |
EM_386
Intel 80386 |
static int |
EM_68K
Motorola 68000 |
static int |
EM_860
Intel 80860 |
static int |
EM_88K
Motorola 88000 |
static int |
EM_M32
AT&T WE32100 |
static int |
EM_MIPS
MIPS RS3000 |
static int |
EM_NONE
No machine |
static int |
EM_SPARC
SPARC |
static int |
ET_CORE
Core file |
static int |
ET_DYN
Shared object file |
static int |
ET_EXEC
Executable file |
static int |
ET_NONE
No file type |
static int |
ET_REL
Relocatable file |
static int |
EV_CURRENT
Current version |
static int |
EV_NONE
Invalid version |
int |
fileClass
The file class |
int |
fileEncoding
The data encoding |
int |
fileIdent
The identification bytes '0x7f', 'E', 'L', 'F' |
int |
fileVersion
The file version |
| Constructor Summary | |
|---|---|
ElfHeader()
|
|
| Method Summary | |
|---|---|
void |
read(ElfInputStream eis)
This method fills in the ELF Header fields. |
java.lang.String |
toString()
This method returns a string representation of the ELF header. |
void |
write(ElfOutputStream eos)
This method writes out the ELF Header fields. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String copyright
public static final int EI_NIDENT
public static final int EI_MAG0
public static final int EI_MAG1
public static final int EI_MAG2
public static final int EI_MAG3
public static final int EI_CLASS
public static final int EI_DATA
public static final int EI_VERSION
public static final int EI_PAD
public static final int ET_NONE
public static final int ET_REL
public static final int ET_EXEC
public static final int ET_DYN
public static final int ET_CORE
public static final int EV_NONE
public static final int EV_CURRENT
public static final int EM_NONE
public static final int EM_M32
public static final int EM_SPARC
public static final int EM_386
public static final int EM_68K
public static final int EM_88K
public static final int EM_860
public static final int EM_MIPS
public static final int ELFCLASSNONE
public static final int ELFCLASS32
public static final int ELFCLASS64
public static final int ELFDATANONE
public static final int ELFDATA2LSB
public static final int ELFDATA2MSB
public int fileIdent
public int fileClass
public int fileEncoding
public int fileVersion
public int e_type
public int e_machine
public int e_version
public long e_entry
public long e_phoff
public long e_shoff
public int e_flags
public int e_ehsize
public int e_phentsize
public int e_phnum
public int e_shentsize
public int e_shnum
public int e_shstrndx
| Constructor Detail |
|---|
public ElfHeader()
| Method Detail |
|---|
public void read(ElfInputStream eis)
throws java.io.IOException
eis - The ElfInputStream for the ELF
file.
java.io.IOException - if an error is encountered in
reading the Data Input Stream.
public void write(ElfOutputStream eos)
throws java.io.IOException
eos - The ElfOutputStream for the ELF
file.
java.io.IOException - if an error is encountered in
writing the Data Output Stream.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||