macho: remove obsolete function createDyldStubBinderGotAtom

This commit is contained in:
Jakub Konka 2023-08-24 15:13:17 +02:00
parent 5750620715
commit ee02517bce

View File

@ -267,12 +267,6 @@ pub const Zld = struct {
return index;
}
fn createDyldStubBinderGotAtom(self: *Zld) !void {
const global_index = self.dyld_stub_binder_index orelse return;
const target = self.globals.items[global_index];
try self.addGotEntry(target);
}
fn createDyldPrivateAtom(self: *Zld) !void {
const sym_index = try self.allocateSymbol();
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
try eh_frame.scanRelocs(&zld);
try UnwindInfo.scanRelocs(&zld);
try zld.createDyldStubBinderGotAtom();
if (zld.dyld_stub_binder_index) |index| try zld.addGotEntry(zld.globals.items[index]);
try zld.calcSectionSizes();