authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-12-16 14:32:19+01:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-12-16 18:05:58+01:00
logf7266e03a8a9dda93b7118ea10c8f97adf21b3b0
tree8698e188c9112e53bfdb159565d180a4a7a501ef
parentbd6d951f63b1dc35ded127d7b7b13355f11421bb

macho: identifier string in code signature should be just basename


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

src/link/MachO/zld.zig+1-1
......@@ -4155,7 +4155,7 @@ pub fn linkWithZld(macho_file: *MachO, comp: *Compilation, prog_node: *std.Progr
41554155 // The most important here is to have the correct vm and filesize of the __LINKEDIT segment
41564156 // where the code signature goes into.
41574157 var codesig = CodeSignature.init(page_size);
4158 codesig.code_directory.ident = options.emit.?.sub_path;
4158 codesig.code_directory.ident = fs.path.basename(full_out_path);
41594159 if (options.entitlements) |path| {
41604160 try codesig.addEntitlements(gpa, path);
41614161 }