diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2020-11-12 21:07:06 +0100 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2020-11-26 11:50:09 +0100 |
| commit | 72310db1da792aae05edffe96082d97bb04cf7e5 (patch) | |
| tree | 726c7c1d6d6c8692b784a1518868d9bc4b7780be /lib/std/macho.zig | |
| parent | 58365c4e79479157bb0b4c2d66ad96c9a394651d (diff) | |
| download | zig-72310db1da792aae05edffe96082d97bb04cf7e5.tar.gz zig-72310db1da792aae05edffe96082d97bb04cf7e5.zip | |
stage2 MachO: add min OS version load cmd
Diffstat (limited to 'lib/std/macho.zig')
| -rw-r--r-- | lib/std/macho.zig | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/std/macho.zig b/lib/std/macho.zig index 4e4e648812..2dcc4b4b37 100644 --- a/lib/std/macho.zig +++ b/lib/std/macho.zig @@ -705,6 +705,23 @@ pub const relocation_info = packed struct { r_type: u4, }; +/// The version_min_command contains the min OS version on which this +/// binary was built to run. +pub const version_min_command = extern struct { + /// LC_VERSION_MIN_MACOSX or LC_VERSION_MIN_IPHONEOS or LC_VERSION_MIN_WATCHOS + /// or LC_VERSION_MIN_TVOS + cmd: u32, + + /// sizeof(struct min_version_command) + cmdsize: u32, + + /// X.Y.Z is encoded in nibbles xxxx.yy.zz + version: u32, + + /// X.Y.Z is encoded in nibbles xxxx.yy.zz + sdk: u32, +}; + /// After MacOS X 10.1 when a new load command is added that is required to be /// understood by the dynamic linker for the image to execute properly the /// LC_REQ_DYLD bit will be or'ed into the load command constant. If the dynamic |
