authorgravatar for cryptocode@zolo.iocryptocode <cryptocode@zolo.io> 2024-04-18 23:36:25+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-04-18 20:08:03-07:00
log3adfaf91f738d6f7fcf863201f34ef5ea5a9973a
treec32d4dac763216abdf25100186d3b214d63cddc2
parentd06e5b4349a9670fc4aad7215c7a73b814bbf91b

The Mach-O header flags gained two new members at some point, and these are missing in the Zig std library. This PR adds these.

The macOS libc header is already up-to-date: https://github.com/ziglang/zig/blob/130fb5cb0fb9039e79450c9db58d6590c5bee3b3/lib/libc/include/any-macos-any/mach-o/loader.h#L232-L241

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

lib/std/macho.zig+6
......@@ -1230,6 +1230,12 @@ pub const MH_APP_EXTENSION_SAFE = 0x02000000;
12301230/// The external symbols listed in the nlist symbol table do not include all the symbols listed in the dyld info.
12311231pub const MH_NLIST_OUTOFSYNC_WITH_DYLDINFO = 0x04000000;
12321232
1233/// Allow LC_MIN_VERSION_MACOS and LC_BUILD_VERSION load commands with the platforms macOS, iOSMac, iOSSimulator, tvOSSimulator and watchOSSimulator.
1234pub const MH_SIM_SUPPORT = 0x08000000;
1235
1236/// Only for use on dylibs. When this bit is set, the dylib is part of the dyld shared cache, rather than loose in the filesystem.
1237pub const MH_DYLIB_IN_CACHE = 0x80000000;
1238
12331239// Constants for the flags field of the fat_header
12341240
12351241/// the fat magic number