authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-01-22 23:21:43+01:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-01-24 12:34:42+01:00
loge69ffcd8c1179f9945b672a7dba5a2d42fa6cf88
treefe8dde6f4ca63f9afc20e6970a7c13006d77a344
parent46bc91ade533ad2f51ae32962b057952f90e8d2a

macho: set filename as ident in code signature


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

src/link/MachO.zig+1-1
......@@ -674,7 +674,7 @@ pub fn flushModule(self: *MachO, arena: Allocator, prog_node: *std.Progress.Node
674674 // The most important here is to have the correct vm and filesize of the __LINKEDIT segment
675675 // where the code signature goes into.
676676 var codesig = CodeSignature.init(self.getPageSize());
677 codesig.code_directory.ident = self.base.emit.sub_path;
677 codesig.code_directory.ident = fs.path.basename(full_out_path);
678678 if (self.entitlements) |path| try codesig.addEntitlements(gpa, path);
679679 try self.writeCodeSignaturePadding(&codesig);
680680 break :blk codesig;