authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-08-24 15:13:17+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-08-29 11:39:34+02:00
logee02517bce58063ecf087343639620454b9f387d
tree579d7f43a3a7677dadada0a3489c79455d448bd1
parent5750620715bde214778546d2adc6db5fdfad5588

macho: remove obsolete function createDyldStubBinderGotAtom


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

src/link/MachO/zld.zig+1-7
...@@ -267,12 +267,6 @@ pub const Zld = struct {...@@ -267,12 +267,6 @@ pub const Zld = struct {
267 return index;267 return index;
268 }268 }
269269
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 fn createDyldPrivateAtom(self: *Zld) !void {270 fn createDyldPrivateAtom(self: *Zld) !void {
277 const sym_index = try self.allocateSymbol();271 const sym_index = try self.allocateSymbol();
278 const atom_index = try self.createEmptyAtom(sym_index, @sizeOf(u64), 3);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,7 +3348,7 @@ pub fn linkWithZld(macho_file: *MachO, comp: *Compilation, prog_node: *std.Progr
3354 try eh_frame.scanRelocs(&zld);3348 try eh_frame.scanRelocs(&zld);
3355 try UnwindInfo.scanRelocs(&zld);3349 try UnwindInfo.scanRelocs(&zld);
33563350
3357 try zld.createDyldStubBinderGotAtom();3351 if (zld.dyld_stub_binder_index) |index| try zld.addGotEntry(zld.globals.items[index]);
33583352
3359 try zld.calcSectionSizes();3353 try zld.calcSectionSizes();
33603354