SegmentCommand

Represents a LC_SEGMENT load command in a 32-bit Mach-O file.

Defines a segment that maps a range of file bytes into the address space of the process at runtime, with optional section structures following it.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

File offset where the segment’s data starts.

Link copied to clipboard

Size of the segment’s data in the file.

Link copied to clipboard

Segment-level flags (e.g., SG_HIGHVM, SG_NORELOC).

Link copied to clipboard

Initial memory protections when loaded.

Link copied to clipboard

Maximum allowed memory protections for this segment.

Link copied to clipboard

Number of section structures that immediately follow this command.

Link copied to clipboard
Link copied to clipboard

Segment name (fixed 16-byte ASCII string, null-padded).

Link copied to clipboard
open override val size: UInt

Actual size of this load command as declared in the file.

Link copied to clipboard
Link copied to clipboard

Starting virtual memory address where the segment will be mapped.

Link copied to clipboard

Size of the segment in virtual memory.