ElfFile

Represents an ELF file and provides access to its contents.

This class encapsulates the functionality for opening, parsing, and closing ELF files. It provides methods to read and interpret the ELF header and other structures within the file.

Types

Link copied to clipboard
Link copied to clipboard
data class ElfSymbolInfo(val name: String, val value: ULong, val size: ULong, val binding: ElfSymBinding, val type: ElfSymType, val visibility: ElfSymVisibility, val sectionIndex: UShort, val isUndefined: Boolean)

Represents a symbol in the ELF file

Link copied to clipboard
inner class Section : ReadableSection

Represents an ELF section.

Properties

Link copied to clipboard

The ELF header of the file

Link copied to clipboard
open override val exportSymbols: List<ExportSymbol>

Get all export symbols from the ELF file

Link copied to clipboard

The identification of the ELF file

Link copied to clipboard
open override val importSymbols: List<ImportSymbol>

Get all import symbols from the ELF file

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val sections: List<ElfFile.Section>

Returns a list of sections in the ELF file.

Link copied to clipboard

Get all symbols from the ELF file

Functions

Link copied to clipboard
open override fun close()