diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2024-01-24 20:05:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-24 20:05:03 +0100 |
| commit | dcaf43674e35372e1d28ab12c4c4ff9af9f3d646 (patch) | |
| tree | a4bb41d3e608d9a5f93d0c4521bf083a3d925e25 /lib/std | |
| parent | 92211135f1424aaca0de131cfe3646248730b1ca (diff) | |
| parent | 0fd0b765fa84a40446663928db1d3f9a63b7a98d (diff) | |
| download | zig-dcaf43674e35372e1d28ab12c4c4ff9af9f3d646.tar.gz zig-dcaf43674e35372e1d28ab12c4c4ff9af9f3d646.zip | |
Merge pull request #18576 from ziglang/new-macho
macho: upstream a complete rewrite of the MachO linker
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/macho.zig | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/std/macho.zig b/lib/std/macho.zig index 2926b5ca22..fd17e32fb1 100644 --- a/lib/std/macho.zig +++ b/lib/std/macho.zig @@ -1240,6 +1240,22 @@ pub const FAT_MAGIC_64 = 0xcafebabf; /// NXSwapLong(FAT_MAGIC_64) pub const FAT_CIGAM_64 = 0xbfbafeca; +/// Segment flags +/// The file contents for this segment is for the high part of the VM space, the low part +/// is zero filled (for stacks in core files). +pub const SG_HIGHVM = 0x1; +/// This segment is the VM that is allocated by a fixed VM library, for overlap checking in +/// the link editor. +pub const SG_FVMLIB = 0x2; +/// This segment has nothing that was relocated in it and nothing relocated to it, that is +/// it maybe safely replaced without relocation. +pub const SG_NORELOC = 0x4; +/// This segment is protected. If the segment starts at file offset 0, the +/// first page of the segment is not protected. All other pages of the segment are protected. +pub const SG_PROTECTED_VERSION_1 = 0x8; +/// This segment is made read-only after fixups +pub const SG_READ_ONLY = 0x10; + /// The flags field of a section structure is separated into two parts a section /// type and section attributes. The section types are mutually exclusive (it /// can only have one type) but the section attributes are not (it may have more |
