Section

data class Section(source)

Represents a 32-bit section structure within a Mach-O segment.

Corresponds to the native C structure struct section.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The virtual memory address where this section begins.

Link copied to clipboard
val align: UInt

The section's alignment as a power of two. For example, a value of 3 means 8-byte alignment (2^3 = 8).

Link copied to clipboard

Section type and attributes. Lower 8 bits = section type, upper 24 bits = section attributes.

Link copied to clipboard

The number of relocation entries at reloff.

Link copied to clipboard

The file offset to the start of this section.

Link copied to clipboard

The file offset of the first relocation entry for this section.

Link copied to clipboard

Reserved field for use by the section type.

Link copied to clipboard

Reserved field for use by the section type.

Link copied to clipboard

The name of the section (fixed-length 16-byte ASCII string). Usually begins with __, e.g., __text, __data.

Link copied to clipboard

The name of the segment that this section belongs to.

Link copied to clipboard
val size: UInt

The number of bytes of virtual memory occupied by this section.