Package com.getkeepsafe.relinker.elf
Class Elf.Header
- java.lang.Object
-
- com.getkeepsafe.relinker.elf.Elf.Header
-
- Direct Known Subclasses:
Elf32Header,Elf64Header
- Enclosing interface:
- Elf
public abstract static class Elf.Header extends Object
-
-
Field Summary
Fields Modifier and Type Field Description booleanbigEndianstatic intELFCLASS32static intELFCLASS64static intELFDATA2MSBintphentsizeintphnumlongphoffintshentsizeintshnumlongshoffintshstrndxinttype
-
Constructor Summary
Constructors Constructor Description Header()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract Elf.DynamicStructuregetDynamicStructure(long baseOffset, int index)abstract Elf.ProgramHeadergetProgramHeader(long index)abstract Elf.SectionHeadergetSectionHeader(int index)
-
-
-
Field Detail
-
ELFCLASS32
public static final int ELFCLASS32
- See Also:
- Constant Field Values
-
ELFCLASS64
public static final int ELFCLASS64
- See Also:
- Constant Field Values
-
ELFDATA2MSB
public static final int ELFDATA2MSB
- See Also:
- Constant Field Values
-
bigEndian
public boolean bigEndian
-
type
public int type
-
phoff
public long phoff
-
shoff
public long shoff
-
phentsize
public int phentsize
-
phnum
public int phnum
-
shentsize
public int shentsize
-
shnum
public int shnum
-
shstrndx
public int shstrndx
-
-
Method Detail
-
getSectionHeader
public abstract Elf.SectionHeader getSectionHeader(int index) throws IOException
- Throws:
IOException
-
getProgramHeader
public abstract Elf.ProgramHeader getProgramHeader(long index) throws IOException
- Throws:
IOException
-
getDynamicStructure
public abstract Elf.DynamicStructure getDynamicStructure(long baseOffset, int index) throws IOException
- Throws:
IOException
-
-