| ... | @@ -674,7 +674,7 @@ pub fn flushModule(self: *MachO, arena: Allocator, prog_node: *std.Progress.Node | ... | @@ -674,7 +674,7 @@ pub fn flushModule(self: *MachO, arena: Allocator, prog_node: *std.Progress.Node |
| 674 | // The most important here is to have the correct vm and filesize of the __LINKEDIT segment | 674 | // The most important here is to have the correct vm and filesize of the __LINKEDIT segment |
| 675 | // where the code signature goes into. | 675 | // where the code signature goes into. |
| 676 | var codesig = CodeSignature.init(self.getPageSize()); | 676 | 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); |
| 678 | if (self.entitlements) |path| try codesig.addEntitlements(gpa, path); | 678 | if (self.entitlements) |path| try codesig.addEntitlements(gpa, path); |
| 679 | try self.writeCodeSignaturePadding(&codesig); | 679 | try self.writeCodeSignaturePadding(&codesig); |
| 680 | break :blk codesig; | 680 | break :blk codesig; |