| ... | ... | @@ -497,6 +497,7 @@ pub fn writeAtomsRelocatable(self: *ZigObject, macho_file: *MachO) !void { |
| 497 | 497 | const sect = atom.getInputSection(macho_file); |
| 498 | 498 | if (sect.isZerofill()) continue; |
| 499 | 499 | if (macho_file.isZigSection(atom.out_n_sect)) continue; |
| 500 | if (atom.getRelocs(macho_file).len == 0) continue; |
| 500 | 501 | const off = atom.value; |
| 501 | 502 | const buffer = macho_file.sections.items(.out)[atom.out_n_sect].items; |
| 502 | 503 | try self.getAtomData(macho_file, atom.*, buffer[off..][0..atom.size]); |
| ... | ... | @@ -1175,11 +1176,6 @@ fn createTlvDescriptor( |
| 1175 | 1176 | .symbolnum = @intCast(init_sym_index), |
| 1176 | 1177 | }, |
| 1177 | 1178 | }); |
| 1178 | | |
| 1179 | | try macho_file.sections.items(.atoms)[sect_index].append(gpa, .{ |
| 1180 | | .index = atom.atom_index, |
| 1181 | | .file = self.index, |
| 1182 | | }); |
| 1183 | 1179 | } |
| 1184 | 1180 | |
| 1185 | 1181 | fn getDeclOutputSection( |