ElfPhdr

@Serializable
data class ElfPhdr : ReadableStructure(source)

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

The program header describes a segment or other information the system needs to prepare the program for execution. This unified class handles both 32-bit and 64-bit versions of the ELF program header format, using the larger data types to accommodate both formats.

Types

Link copied to clipboard
object Companion

Properties

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.

Link copied to clipboard

This member holds the value to which the segments are aligned in memory and in the file. For 32-bit ELF files, only the lower 32 bits are meaningful.

Link copied to clipboard

This member holds the number of bytes in the file image of the segment. For 32-bit ELF files, only the lower 32 bits are meaningful.

Link copied to clipboard

This member holds a bit mask of flags relevant to the segment.

Link copied to clipboard

This member holds the number of bytes in the memory image of the segment. For 32-bit ELF files, only the lower 32 bits are meaningful.

Link copied to clipboard

This member holds the offset from the beginning of the file at which the first byte of the segment resides. For 32-bit ELF files, only the lower 32 bits are meaningful.

Link copied to clipboard

On systems for which physical addressing is relevant, this member is reserved for the segment's physical address. For 32-bit ELF files, only the lower 32 bits are meaningful.

Link copied to clipboard

This member indicates what kind of segment this array element describes or how to interpret the array element's information.

Link copied to clipboard

This member holds the virtual address at which the first byte of the segment resides in memory. For 32-bit ELF files, only the lower 32 bits are meaningful.