Package-level declarations

Types

Link copied to clipboard

Represents an unsigned program address in 32-bit ELF format. Equivalent to uint32_t in C.

Link copied to clipboard
@SerialName(value = "Elf32Ehdr")
data class Elf32Ehdr(val eType: ElfType, val eMachine: ElfMachine, val eVersion: Elf32Word, val eEntry: Elf32Addr, val ePhoff: Elf32Off, val eShoff: Elf32Off, val eFlags: Elf32Word, val eEhsize: Elf32Half, val ePhentsize: Elf32Half, val ePhnum: Elf32Half, val eShentsize: Elf32Half, val eShnum: Elf32Half, val eShstrndx: Elf32Half) : ReadableStructure, ElfEhdr

Represents the ELF 32-bit file header structure.

Link copied to clipboard

Represents a 16-bit unsigned integer in ELF format. Equivalent to uint16_t in C.

Link copied to clipboard

Represents an unsigned file offset in 32-bit ELF format. Equivalent to uint32_t in C.

Link copied to clipboard
@SerialName(value = "Elf32Phdr")
data class Elf32Phdr(val pType: ElfPType, val pOffset: Elf32Off, val pVaddr: Elf32Addr, val pPaddr: Elf32Addr, val pFilesz: Elf32Word, val pMemsz: Elf32Word, val pFlags: ElfPFlags, val pAlign: Elf32Word) : ReadableStructure, ElfPhdr
Link copied to clipboard
@SerialName(value = "Elf32Shdr")
data class Elf32Shdr(val shName: Elf32Word, val shType: ElfSType, val shFlags: ElfSFlags, val shAddr: Elf32Addr, val shOffset: Elf32Off, val shSize: Elf32Word, val shLink: Elf32Word, val shInfo: Elf32Word, val shAddralign: Elf32Word, val shEntsize: Elf32Word, val name: String? = null) : ElfShdr

Represents a section header in a 32-bit ELF file.

Link copied to clipboard

Represents a 32-bit signed integer in ELF format. Equivalent to int32_t in C.

Link copied to clipboard

Represents a 32-bit unsigned integer in ELF format. Equivalent to uint32_t in C.

Link copied to clipboard

Represents an unsigned program address in 64-bit ELF format. Equivalent to uint64_t in C.

Link copied to clipboard
@SerialName(value = "Elf64Ehdr")
data class Elf64Ehdr(val eType: ElfType, val eMachine: ElfMachine, val eVersion: Elf64Word, val eEntry: Elf64Addr, val ePhoff: Elf64Off, val eShoff: Elf64Off, val eFlags: Elf64Word, val eEhsize: Elf64Half, val ePhentsize: Elf64Half, val ePhnum: Elf64Half, val eShentsize: Elf64Half, val eShnum: Elf64Half, val eShstrndx: Elf64Half) : ReadableStructure, ElfEhdr

Represents the ELF 64-bit file header structure.

Link copied to clipboard

Represents a 16-bit unsigned integer in ELF format. Equivalent to uint16_t in C.

Link copied to clipboard

Represents an unsigned file offset in 64-bit ELF format. Equivalent to uint64_t in C.

Link copied to clipboard
@SerialName(value = "Elf64Phdr")
data class Elf64Phdr(val pType: ElfPType, val pFlags: ElfPFlags, val pOffset: Elf64Off, val pVaddr: Elf64Addr, val pPaddr: Elf64Addr, val pFilesz: Elf64Xword, val pMemsz: Elf64Xword, val pAlign: Elf64Xword) : ReadableStructure, ElfPhdr
Link copied to clipboard
@SerialName(value = "Elf64Shdr")
data class Elf64Shdr(val shName: Elf64Word, val shType: ElfSType, val shFlags: ElfSFlags, val shAddr: Elf64Addr, val shOffset: Elf64Off, val shSize: Elf64Xword, val shLink: Elf64Word, val shInfo: Elf64Word, val shAddralign: Elf64Xword, val shEntsize: Elf64Xword, val name: String? = null) : ElfShdr

Represents a section header in a 64-bit ELF file.

Link copied to clipboard

Represents a 64-bit signed integer in ELF format. Equivalent to int64_t in C.

Link copied to clipboard

Represents a 32-bit unsigned integer in ELF format. Equivalent to uint32_t in C.

Link copied to clipboard

Represents a 64-bit unsigned integer in ELF format. Equivalent to uint64_t in C.

Link copied to clipboard

Type for C enum ElfClass

Link copied to clipboard

Type for C enum ElfData

Link copied to clipboard
Link copied to clipboard
data class ElfExportSymbol(val name: String, val value: ULong, val size: ULong, val binding: ElfSymBinding, val type: ElfSymType, val visibility: ElfSymVisibility) : ExportSymbol

Represents an exported symbol in an ELF file

Link copied to clipboard

Represents an ELF file and provides access to its contents.

Link copied to clipboard
expect open class ElfFileException constructor(message: String, cause: Throwable? = null) : CommonFileException

Represents an exception occurring during ELF file processing.

actual open class ElfFileException @JvmOverloads constructor(message: String, val cause: Throwable?) : CommonFileException

JVM implementation of ElfFileException.

actual open class ElfFileException constructor(message: String, val cause: Throwable?) : CommonFileException

Non-JVM implementation of ElfFileException.

Link copied to clipboard
data class ElfIdentification(val eiClass: ElfClass, val eiData: ElfData, val eiVersion: UByte, val eiOsAbi: ElfOsAbi, val eiAbiVersion: UByte) : ReadableStructure

Represents the initial bytes of an ELF file that specify how to interpret the file.

Link copied to clipboard
data class ElfImportSymbol(val name: String, val file: String, val binding: ElfSymBinding, val type: ElfSymType) : ImportSymbol

Represents an import symbol in an ELF file

Link copied to clipboard

Type for C enum ElfMachine

Link copied to clipboard

Type for C enum ElfOsAbi

Link copied to clipboard

Type for C flag-set ElfPFlags

Link copied to clipboard
Link copied to clipboard

Type for C enum ElfPType

Link copied to clipboard

Type for C flag-set ElfSFlags

Link copied to clipboard
Link copied to clipboard

Type for C enum ElfSType

Link copied to clipboard

Type for C enum ElfSymBinding

Link copied to clipboard

Type for C enum ElfSymType

Link copied to clipboard

Type for C enum ElfSymVisibility

Link copied to clipboard

Type for C enum ElfType

Link copied to clipboard
sealed interface Primitive

Functions

Link copied to clipboard
fun ElfClass(value: UByte): ElfClass
Link copied to clipboard
fun ElfData(value: UByte): ElfData
Link copied to clipboard
Link copied to clipboard
fun ElfOsAbi(value: UByte): ElfOsAbi
Link copied to clipboard
fun ElfPFlags(value: UInt): ElfPFlags
Link copied to clipboard
fun ElfPType(value: UInt): ElfPType
Link copied to clipboard
Link copied to clipboard
fun ElfSType(value: UInt): ElfSType
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun ElfType(value: UShort): ElfType