lib.dwfl
Class ElfEHeader

java.lang.Object
  extended by lib.dwfl.ElfEHeader

public final class ElfEHeader
extends Object

An ElfEHeader is a header for and Elf file. This appears at the start of every Elf file.


Field Summary
static int CLASS
           
static int CLASS32
           
static int CLASS64
           
static int CLASSNONE
           
static int DATA
           
static int DATA2LSB
           
static int DATA2MSB
           
static int DATANONE
           
 int ehsize
           
 long entry
           
 int flags
           
 byte[] ident
           
 int machine
           
static int NIDENT
           
static int PHEADER_ET_CORE
           
static int PHEADER_ET_DYN
           
static int PHEADER_ET_EXEC
           
static int PHEADER_ET_HIOS
           
static int PHEADER_ET_HIPROC
           
static int PHEADER_ET_LOOS
           
static int PHEADER_ET_LOPROC
           
static int PHEADER_ET_NONE
           
static int PHEADER_ET_NUM
           
static int PHEADER_ET_REL
           
 int phentsize
           
 int phnum
           
 long phoff
           
 int shentsize
           
 int shnum
           
 long shoff
           
 int shstrndx
           
 int type
           
 long version
           
 
Constructor Summary
ElfEHeader()
           
 
Method Summary
 ByteOrder getByteOrder()
          Interpret the IDENT field; extracting the byte order.
 int getWordSize()
          Interpret the IDENT field; extracting the word-size.
 ElfEHeader setByteOrder(ByteOrder order)
          Encode SIZE into the IDENT field.
 ElfEHeader setWordSize(int size)
          Encode SIZE into the IDENT field.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASSNONE

public static final int CLASSNONE
See Also:
Constant Field Values

CLASS32

public static final int CLASS32
See Also:
Constant Field Values

CLASS64

public static final int CLASS64
See Also:
Constant Field Values

CLASS

public static final int CLASS
See Also:
Constant Field Values

DATANONE

public static final int DATANONE
See Also:
Constant Field Values

DATA2LSB

public static final int DATA2LSB
See Also:
Constant Field Values

DATA2MSB

public static final int DATA2MSB
See Also:
Constant Field Values

DATA

public static final int DATA
See Also:
Constant Field Values

PHEADER_ET_NONE

public static final int PHEADER_ET_NONE
See Also:
Constant Field Values

PHEADER_ET_REL

public static final int PHEADER_ET_REL
See Also:
Constant Field Values

PHEADER_ET_EXEC

public static final int PHEADER_ET_EXEC
See Also:
Constant Field Values

PHEADER_ET_DYN

public static final int PHEADER_ET_DYN
See Also:
Constant Field Values

PHEADER_ET_CORE

public static final int PHEADER_ET_CORE
See Also:
Constant Field Values

PHEADER_ET_NUM

public static final int PHEADER_ET_NUM
See Also:
Constant Field Values

PHEADER_ET_LOOS

public static final int PHEADER_ET_LOOS
See Also:
Constant Field Values

PHEADER_ET_HIOS

public static final int PHEADER_ET_HIOS
See Also:
Constant Field Values

PHEADER_ET_LOPROC

public static final int PHEADER_ET_LOPROC
See Also:
Constant Field Values

PHEADER_ET_HIPROC

public static final int PHEADER_ET_HIPROC
See Also:
Constant Field Values

NIDENT

public static final int NIDENT
See Also:
Constant Field Values

ident

public byte[] ident

type

public int type

machine

public int machine

version

public long version

entry

public long entry

phoff

public long phoff

shoff

public long shoff

flags

public int flags

ehsize

public int ehsize

phentsize

public int phentsize

phnum

public int phnum

shentsize

public int shentsize

shnum

public int shnum

shstrndx

public int shstrndx
Constructor Detail

ElfEHeader

public ElfEHeader()
Method Detail

getWordSize

public int getWordSize()
Interpret the IDENT field; extracting the word-size.


setWordSize

public ElfEHeader setWordSize(int size)
Encode SIZE into the IDENT field.


getByteOrder

public ByteOrder getByteOrder()
Interpret the IDENT field; extracting the byte order.


setByteOrder

public ElfEHeader setByteOrder(ByteOrder order)
Encode SIZE into the IDENT field.