joeq.Linker.ELF
Class SymbolTableEntry

java.lang.Object
  extended by joeq.Linker.ELF.SymbolTableEntry
All Implemented Interfaces:
ELFConstants
Direct Known Subclasses:
SymbolTableEntry.EmptySymbolTableEntry

public class SymbolTableEntry
extends Object
implements ELFConstants

Version:
$Id: SymbolTableEntry.java,v 1.12 2004/09/30 03:35:33 joewhaley Exp $
Author:
John Whaley

Nested Class Summary
static class SymbolTableEntry.EmptySymbolTableEntry
           
 
Field Summary
protected  int index
           
protected  byte info
           
protected  String name
           
protected  Section section
           
protected  int size
           
protected  int value
           
 
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
SymbolTableEntry(String name, int value, int size, byte bind, byte type, Section section)
           
 
Method Summary
 byte getBind()
           
static int getEntrySize()
           
 int getIndex()
           
 byte getInfo()
           
 String getName()
           
 byte getOther()
           
 int getSHndx()
           
 int getSize()
           
 byte getType()
           
 int getValue()
           
static SymbolTableEntry read(ELF file, Section.StrTabSection sts)
           
 void setIndex(int index)
           
 void write(ELF file, Section.StrTabSection sts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

index

protected int index

name

protected String name

value

protected int value

size

protected int size

info

protected byte info

section

protected Section section
Constructor Detail

SymbolTableEntry

public SymbolTableEntry(String name,
                        int value,
                        int size,
                        byte bind,
                        byte type,
                        Section section)
Method Detail

getName

public final String getName()

getValue

public final int getValue()

getSize

public final int getSize()

getBind

public final byte getBind()

getType

public final byte getType()

getInfo

public final byte getInfo()

getOther

public final byte getOther()

getSHndx

public final int getSHndx()

setIndex

public void setIndex(int index)

getIndex

public int getIndex()

write

public void write(ELF file,
                  Section.StrTabSection sts)
           throws IOException
Throws:
IOException

read

public static SymbolTableEntry read(ELF file,
                                    Section.StrTabSection sts)
                             throws IOException
Throws:
IOException

getEntrySize

public static int getEntrySize()


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