ElfEhdr

@Serializable
@SerialName(value = "ElfEhdr")
data class ElfEhdr : ReadableStructure(source)

Represents the ELF file header structure for both 32-bit and 64-bit formats.

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 unified class handles both 32-bit and 64-bit versions of the ELF header format, using the larger data types to accommodate both formats.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

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

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

Link copied to clipboard

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

This member identifies the object file type.

Link copied to clipboard

This member identifies the object file version.

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

Get all fields of the structure

Link copied to clipboard

Indicates whether this is a 32-bit or 64-bit ELF file. true for 64-bit, false for 32-bit.