mirror of
https://github.com/ziglang/zig.git
synced 2026-01-10 09:25:11 +00:00
macho: remove obsolete function createDyldStubBinderGotAtom
This commit is contained in:
parent
5750620715
commit
ee02517bce
@ -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();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user