aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2020-11-20 11:05:16 +0100
committerJakub Konka <kubkon@jakubkonka.com>2020-11-26 11:50:09 +0100
commit79381dc4fb1f7eb92b5e01d21f866f550ca3ff20 (patch)
treeff2762e71eef07d8b9e148248d44604a02afc013 /lib
parentd14cd59ef0d9f03114ea6467a8446c17bf33ab9a (diff)
downloadzig-79381dc4fb1f7eb92b5e01d21f866f550ca3ff20.tar.gz
zig-79381dc4fb1f7eb92b5e01d21f866f550ca3ff20.zip
stage2 macho: add empty CodeDirectory blob
Diffstat (limited to 'lib')
-rw-r--r--lib/std/macho.zig16
1 files changed, 13 insertions, 3 deletions
diff --git a/lib/std/macho.zig b/lib/std/macho.zig
index 4e4e648812..4a54b6b9c5 100644
--- a/lib/std/macho.zig
+++ b/lib/std/macho.zig
@@ -1446,6 +1446,18 @@ pub const CodeDirectory = extern struct {
/// Unused (must be zero)
spare2: u32,
+ ///
+ scatterOffset: u32,
+
+ ///
+ teamOffset: u32,
+
+ ///
+ spare3: u32,
+
+ ///
+ codeLimit64: u64,
+
/// Offset of executable segment
execSegBase: u64,
@@ -1453,9 +1465,7 @@ pub const CodeDirectory = extern struct {
execSegLimit: u64,
/// Executable segment flags
- execSegFlags,
-
- // end_withExecSeg: [*]u8,
+ execSegFlags: u64,
};
/// Structure of an embedded-signature SuperBlob