| ... | @@ -854,8 +854,8 @@ fn linkWithLLD(self: *MachO, comp: *Compilation) !void { | ... | @@ -854,8 +854,8 @@ fn linkWithLLD(self: *MachO, comp: *Compilation) !void { |
| 854 | try self.writeLoadCommands(); | 854 | try self.writeLoadCommands(); |
| 855 | try self.writeHeader(); | 855 | try self.writeHeader(); |
| 856 | } | 856 | } |
| 857 | if (self.code_signature_cmd_index == null) { | 857 | if (self.code_signature_cmd_index == null) outer: { |
| 858 | if (target.cpu.arch != .aarch64) return; // This is currently needed only for aarch64 targets. | 858 | if (target.cpu.arch != .aarch64) break :outer; // This is currently needed only for aarch64 targets. |
| 859 | const text_segment = self.load_commands.items[self.text_segment_cmd_index.?].Segment; | 859 | const text_segment = self.load_commands.items[self.text_segment_cmd_index.?].Segment; |
| 860 | const text_section = text_segment.sections.items[self.text_section_index.?]; | 860 | const text_section = text_segment.sections.items[self.text_section_index.?]; |
| 861 | const after_last_cmd_offset = self.header.?.sizeofcmds + @sizeOf(macho.mach_header_64); | 861 | const after_last_cmd_offset = self.header.?.sizeofcmds + @sizeOf(macho.mach_header_64); |