authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-01-24 12:48:12+01:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-01-24 12:48:12+01:00
log5226705b321a2bb6aa63e3b20f5fd272e79441f2
tree5f5bc7f9b7dccdf3e1741a86adea973af8c3bc30
parent47dd8d0cf76b4505c37490b81836b90844c50f8a

std.macho: add segment flags


1 files changed, 16 insertions(+), 0 deletions(-)

lib/std/macho.zig+16
......@@ -1240,6 +1240,22 @@ pub const FAT_MAGIC_64 = 0xcafebabf;
12401240/// NXSwapLong(FAT_MAGIC_64)
12411241pub const FAT_CIGAM_64 = 0xbfbafeca;
12421242
1243/// Segment flags
1244/// The file contents for this segment is for the high part of the VM space, the low part
1245/// is zero filled (for stacks in core files).
1246pub const SG_HIGHVM = 0x1;
1247/// This segment is the VM that is allocated by a fixed VM library, for overlap checking in
1248/// the link editor.
1249pub const SG_FVMLIB = 0x2;
1250/// This segment has nothing that was relocated in it and nothing relocated to it, that is
1251/// it maybe safely replaced without relocation.
1252pub const SG_NORELOC = 0x4;
1253/// This segment is protected. If the segment starts at file offset 0, the
1254/// first page of the segment is not protected. All other pages of the segment are protected.
1255pub const SG_PROTECTED_VERSION_1 = 0x8;
1256/// This segment is made read-only after fixups
1257pub const SG_READ_ONLY = 0x10;
1258
12431259/// The flags field of a section structure is separated into two parts a section
12441260/// type and section attributes. The section types are mutually exclusive (it
12451261/// can only have one type) but the section attributes are not (it may have more