MachoSection

Represents a section (common of 32 and 64) in a Mach-O file.

Properties

Link copied to clipboard

The virtual memory address where this section begins.

Link copied to clipboard
val align: UInt

Byte alignment of this section, specified as a power of two. For example, value 3 means 8-byte alignment (2^3).

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

Get all fields of the structure

Link copied to clipboard

Type and attributes of this section. Lower 8 bits = section type, upper 24 bits = flags.

Link copied to clipboard

Number of relocation entries for this section.

Link copied to clipboard

The offset in the file where this section's data begins.

Link copied to clipboard

File offset of the first relocation entry for this section.

Link copied to clipboard

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

Link copied to clipboard

The name of the segment this section belongs to.

Link copied to clipboard
val size: ULong

The size in bytes of virtual memory occupied by this section.