|
|||||||||
| Home >> All >> Linker >> [ ELF overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
Linker.ELF
Interface ELF

- All Known Implementing Classes:
- ELFImpl
- public interface ELF
- Version:
- $Id: ELF.java,v 1.10 2003/05/12 10:05:17 joewhaley Exp $
| Method Summary | |
void |
addProgramHeader(ProgramHeader p)
Adds the given ELF program header to this object. |
void |
addSection(Section s)
Adds the given ELF section to this object. |
Section |
getSection(int index)
|
Section.StrTabSection |
getSectionHeaderStringTable()
Returns the section header string table, if one has been defined. |
java.util.List |
getSections()
Returns the list of ELF sections in this object. |
boolean |
isBigEndian()
Returns true if this ELF object is big-endian. |
boolean |
isLittleEndian()
Returns true if this ELF object is little-endian. |
int |
read_addr()
|
byte |
read_byte()
|
void |
read_bytes(byte[] b)
|
int |
read_half()
|
int |
read_off()
|
int |
read_sword()
|
int |
read_word()
|
void |
removeProgramHeader(ProgramHeader p)
Removes the given ELF program header from this object. |
void |
removeSection(Section s)
Removes the given ELF section from this object. |
void |
set_position(int offset)
|
void |
setBigEndian()
|
void |
setLittleEndian()
|
void |
setSectionHeaderStringTable(Section.StrTabSection shstrtab)
Sets the section header string table to be the given section. |
void |
write_addr(int v)
|
void |
write_byte(byte v)
|
void |
write_bytes(byte[] v)
|
void |
write_half(int v)
|
void |
write_off(int v)
|
void |
write_sectionname(java.lang.String s)
|
void |
write_sword(int v)
|
void |
write_word(int v)
|
void |
write()
|
| Method Detail |
getSections
public java.util.List getSections()
- Returns the list of ELF sections in this object.
getSection
public Section getSection(int index)
getSectionHeaderStringTable
public Section.StrTabSection getSectionHeaderStringTable()
- Returns the section header string table, if one has been defined.
Or null otherwise.
isLittleEndian
public boolean isLittleEndian()
- Returns true if this ELF object is little-endian.
isBigEndian
public boolean isBigEndian()
- Returns true if this ELF object is big-endian.
setSectionHeaderStringTable
public void setSectionHeaderStringTable(Section.StrTabSection shstrtab)
- Sets the section header string table to be the given section.
addSection
public void addSection(Section s)
- Adds the given ELF section to this object.
removeSection
public void removeSection(Section s)
- Removes the given ELF section from this object.
addProgramHeader
public void addProgramHeader(ProgramHeader p)
- Adds the given ELF program header to this object.
removeProgramHeader
public void removeProgramHeader(ProgramHeader p)
- Removes the given ELF program header from this object.
setLittleEndian
public void setLittleEndian()
setBigEndian
public void setBigEndian()
write
public void write()
throws java.io.IOException
write_byte
public void write_byte(byte v)
throws java.io.IOException
write_bytes
public void write_bytes(byte[] v)
throws java.io.IOException
write_half
public void write_half(int v)
throws java.io.IOException
write_word
public void write_word(int v)
throws java.io.IOException
write_sword
public void write_sword(int v)
throws java.io.IOException
write_off
public void write_off(int v)
throws java.io.IOException
write_addr
public void write_addr(int v)
throws java.io.IOException
write_sectionname
public void write_sectionname(java.lang.String s) throws java.io.IOException
set_position
public void set_position(int offset)
throws java.io.IOException
read_byte
public byte read_byte()
throws java.io.IOException
read_bytes
public void read_bytes(byte[] b)
throws java.io.IOException
read_half
public int read_half()
throws java.io.IOException
read_word
public int read_word()
throws java.io.IOException
read_sword
public int read_sword()
throws java.io.IOException
read_off
public int read_off()
throws java.io.IOException
read_addr
public int read_addr()
throws java.io.IOException
|
|||||||||
| Home >> All >> Linker >> [ ELF overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC