joeq.Linker.ELF
Class ProgramHeader

java.lang.Object
  extended by joeq.Linker.ELF.ProgramHeader
All Implemented Interfaces:
ELFConstants
Direct Known Subclasses:
ProgramHeader.DynamicProgramHeader, ProgramHeader.InterpProgramHeader, ProgramHeader.LoadProgramHeader, ProgramHeader.NoteProgramHeader, ProgramHeader.NullProgramHeader, ProgramHeader.PHdrProgramHeader

public abstract class ProgramHeader
extends Object
implements ELFConstants

Version:
$Id: ProgramHeader.java,v 1.7 2004/03/09 06:26:56 jwhaley Exp $
Author:
John Whaley

Nested Class Summary
static class ProgramHeader.DynamicProgramHeader
           
static class ProgramHeader.InterpProgramHeader
           
static class ProgramHeader.LoadProgramHeader
           
static class ProgramHeader.NoteProgramHeader
           
static class ProgramHeader.NullProgramHeader
           
static class ProgramHeader.PHdrProgramHeader
           
 
Field Summary
protected  int align
           
protected  int filesz
           
protected  int flags
           
protected  int memsz
           
protected  int offset
           
protected  int paddr
           
protected  int vaddr
           
 
Fields inherited from interface joeq.Linker.ELF.ELFConstants
ELFCLASS32, ELFCLASS64, ELFCLASSNONE, ELFDATA2LSB, ELFDATA2MSB, ELFDATANONE, ELFMAG0, ELFMAG1, ELFMAG2, ELFMAG3, EM_386, EM_68K, EM_860, EM_88K, EM_M32, EM_MIPS, EM_MIPS_RS4_BE, EM_SPARC, ET_CORE, ET_DYN, ET_EXEC, ET_HIPROC, ET_LOPROC, ET_NONE, ET_REL, EV_CURRENT, EV_NONE, PT_DYNAMIC, PT_HIPROC, PT_INTERP, PT_LOAD, PT_LOPROC, PT_NOTE, PT_NULL, PT_PHDR, PT_SHLIB, R_386_32, R_386_NONE, R_386_PC32, SHF_ALLOC, SHF_EXECINSTR, SHF_MASKPROC, SHF_WRITE, SHN_ABS, SHN_COMMON, SHN_HIPROC, SHN_HIRESERVE, SHN_INVALID, SHN_LOPROC, SHN_LORESERVE, SHN_UNDEF, SHT_DYNAMIC, SHT_DYNSYM, SHT_HASH, SHT_HIPROC, SHT_HIUSER, SHT_LOPROC, SHT_LOUSER, SHT_NOBITS, SHT_NOTE, SHT_NULL, SHT_PROGBITS, SHT_REL, SHT_RELA, SHT_SHLIB, SHT_STRTAB, SHT_SYMTAB, STB_GLOBAL, STB_HIPROC, STB_LOCAL, STB_LOPROC, STB_WEAK, STT_FILE, STT_FUNC, STT_HIPROC, STT_LOPROC, STT_NOTYPE, STT_OBJECT, STT_SECTION
 
Constructor Summary
ProgramHeader()
           
 
Method Summary
 int getAlign()
           
 int getFileSz()
           
 int getFlags()
           
 int getMemSz()
           
 int getOffset()
           
 int getPAddr()
           
static int getSize()
           
abstract  int getType()
           
 int getVAddr()
           
 void writeHeader(joeq.Linker.ELF.ELFImpl file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

offset

protected int offset

vaddr

protected int vaddr

paddr

protected int paddr

filesz

protected int filesz

memsz

protected int memsz

flags

protected int flags

align

protected int align
Constructor Detail

ProgramHeader

public ProgramHeader()
Method Detail

getType

public abstract int getType()

getOffset

public int getOffset()

getVAddr

public int getVAddr()

getPAddr

public int getPAddr()

getFileSz

public int getFileSz()

getMemSz

public int getMemSz()

getFlags

public int getFlags()

getAlign

public int getAlign()

writeHeader

public void writeHeader(joeq.Linker.ELF.ELFImpl file)
                 throws IOException
Throws:
IOException

getSize

public static int getSize()


Copyright © 2001-2005 John Whaley. All Rights Reserved.