From 8b5d5f44e23c86082fba480f01092f2f7ffb3dfe Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Fri, 1 Apr 2022 14:33:37 +0200 Subject: macho: set CS_LINKER_SIGNED flag in code signature generated by zld This way, if the user wants to use `codesign` (or other tool) they will not be forced to `-f` force signature update. This matches the behavior promoted by Apple's `ld64` linker. --- lib/std/macho.zig | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/std') diff --git a/lib/std/macho.zig b/lib/std/macho.zig index 0abe14f4a4..1f8b7e8f33 100644 --- a/lib/std/macho.zig +++ b/lib/std/macho.zig @@ -1718,6 +1718,7 @@ pub const CS_SIGNER_TYPE_LEGACYVPN: u32 = 5; pub const CS_SIGNER_TYPE_MAC_APP_STORE: u32 = 6; pub const CS_ADHOC: u32 = 0x2; +pub const CS_LINKER_SIGNED: u32 = 0x20000; pub const CS_EXECSEG_MAIN_BINARY: u32 = 0x1; -- cgit v1.2.3