| ... | ... | @@ -267,12 +267,6 @@ pub const Zld = struct { |
| 267 | 267 | return index; |
| 268 | 268 | } |
| 269 | 269 | |
| 270 | | fn createDyldStubBinderGotAtom(self: *Zld) !void { |
| 271 | | const global_index = self.dyld_stub_binder_index orelse return; |
| 272 | | const target = self.globals.items[global_index]; |
| 273 | | try self.addGotEntry(target); |
| 274 | | } |
| 275 | | |
| 276 | 270 | fn createDyldPrivateAtom(self: *Zld) !void { |
| 277 | 271 | const sym_index = try self.allocateSymbol(); |
| 278 | 272 | const atom_index = try self.createEmptyAtom(sym_index, @sizeOf(u64), 3); |
| ... | ... | @@ -3354,7 +3348,7 @@ pub fn linkWithZld(macho_file: *MachO, comp: *Compilation, prog_node: *std.Progr |
| 3354 | 3348 | try eh_frame.scanRelocs(&zld); |
| 3355 | 3349 | try UnwindInfo.scanRelocs(&zld); |
| 3356 | 3350 | |
| 3357 | | try zld.createDyldStubBinderGotAtom(); |
| 3351 | if (zld.dyld_stub_binder_index) |index| try zld.addGotEntry(zld.globals.items[index]); |
| 3358 | 3352 | |
| 3359 | 3353 | try zld.calcSectionSizes(); |
| 3360 | 3354 | |