Interface IELFUnit

All Superinterfaces:
IBinaryUnit, ICodeObjectUnit, IEventSource, IUnit, IUnitCreator, IUserDataSupport

public interface IELFUnit extends ICodeObjectUnit
Specialized interface for ELF units.
  • Method Details

    • isELF64

      boolean isELF64()
      Determine whether this ELF is 64-bit.
      Returns:
      true for ELF64, false for ELF32
    • getHeader

      IELFHeader getHeader()
      Retrieve the ELF header.
      Returns:
      the ELF header
    • getProgramEntries

      List<IELFProgramEntry> getProgramEntries()
      Retrieve program table entries.
      Returns:
      program entries
    • getProgramEntry

      IELFProgramEntry getProgramEntry(int index)
      Retrieve a program table entry by index.
      Parameters:
      index - program entry index
      Returns:
      the program entry
    • getSectionEntries

      List<IELFSectionEntry> getSectionEntries()
      Retrieve section table entries.
      Returns:
      section entries
    • getSectionEntry

      IELFSectionEntry getSectionEntry(int index)
      Retrieve a section table entry by index.
      Parameters:
      index - section entry index
      Returns:
      the section entry
    • getSectionName

      String getSectionName(int index)
      Retrieve a section name by index.
      Parameters:
      index - section index
      Returns:
      the section name
    • getSymbolTables

      List<IELFSymbolTable> getSymbolTables()
      Retrieve symbol tables.
      Returns:
      symbol tables
    • getRelocationTables

      List<IELFRelocationTable> getRelocationTables()
      Retrieve relocation tables.
      Returns:
      relocation tables
    • getDynamicTable

      IELFDynamicTable getDynamicTable()
      Retrieve the dynamic table.
      Returns:
      may be null
    • getImageUnit

      IUnit getImageUnit()
      Convenience method to retrieve the image held in this ELF container. The returned value may be null if underlying machine code is not supported.
      Returns:
      the image unit, or null if none
    • getDwarfDIEs

      List<IDwCompileUnit> getDwarfDIEs()
      DWARF DIE. May be null if no DWARF sections are provided.
      Returns:
      DWARF compilation units, or null if none