commit f7266e03a8a9dda93b7118ea10c8f97adf21b3b0 (tree)
parent bd6d951f63b1dc35ded127d7b7b13355f11421bb
Author: Jakub Konka <kubkon@jakubkonka.com>
Date: Fri, 16 Dec 2022 14:32:19 +0100
macho: identifier string in code signature should be just basename
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/link/MachO/zld.zig b/src/link/MachO/zld.zig
@@ -4155,7 +4155,7 @@ pub fn linkWithZld(macho_file: *MachO, comp: *Compilation, prog_node: *std.Progr
// The most important here is to have the correct vm and filesize of the __LINKEDIT segment
// where the code signature goes into.
var codesig = CodeSignature.init(page_size);
- codesig.code_directory.ident = options.emit.?.sub_path;
+ codesig.code_directory.ident = fs.path.basename(full_out_path);
if (options.entitlements) |path| {
try codesig.addEntitlements(gpa, path);
}