Elf32Ehdr

@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(source)

Represents the ELF 32-bit file header structure.

The ELF header defines the file's organization. It contains information about how to interpret the file, such as whether it's a 32-bit or 64-bit ELF file, which machine architecture it targets, where to find the program header table and section header table, and other essential metadata.

This class specifically handles the 32-bit version of the ELF header format.

Constructors

Link copied to clipboard
constructor(eType: ElfType, eMachine: ElfMachine, eVersion: Elf32Word, eEntry: Elf32Addr, ePhoff: Elf32Off, eShoff: Elf32Off, eFlags: Elf32Word, eEhsize: Elf32Half, ePhentsize: Elf32Half, ePhnum: Elf32Half, eShentsize: Elf32Half, eShnum: Elf32Half, eShstrndx: Elf32Half)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val eEhsize: Elf32Half

This member holds the ELF header's size in bytes.

Link copied to clipboard
open override val eEntry: Elf32Addr

This member gives the virtual address to which the system first transfers control.

Link copied to clipboard
open override val eFlags: Elf32Word

This member holds processor-specific flags associated with the file.

Link copied to clipboard
open override val eMachine: ElfMachine

This member's value specifies the required architecture for an individual file.

Link copied to clipboard
open override val ePhentsize: Elf32Half

This member holds the size in bytes of one entry in the file's program header table.

Link copied to clipboard
open override val ePhnum: Elf32Half

This member holds the number of entries in the program header table.

Link copied to clipboard
open override val ePhoff: Elf32Off

This member holds the program header table's file offset in bytes.

Link copied to clipboard
open override val eShentsize: Elf32Half

This member holds a section header's size in bytes. A section header is one entry in the section header table; all entries are the same size.

Link copied to clipboard
open override val eShnum: Elf32Half

This member holds the number of entries in the section header table. Thus the product of e_shentsize and e_shnum gives the section header table's size in bytes. If a file has no section header table, e_shnum holds the value zero.

Link copied to clipboard
open override val eShoff: Elf32Off

This member holds the section header table's file offset in bytes.

Link copied to clipboard
open override val eShstrndx: Elf32Half

This member holds the section header table index of the entry associated with the section name string table. If the file has no section name string table, this member holds the value SHN_UNDEF.

Link copied to clipboard
open override val eType: ElfType

This member identifies the object file type.

Link copied to clipboard
open override val eVersion: Elf32Word

This member identifies the object file version.

Link copied to clipboard
abstract val fields: Map<String, Any>