authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2021-07-17 18:19:32+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2021-07-17 18:19:32+02:00
logfccac48a55f91abfa6f04dc7274639a9faf5ab53
treeca5fa0b992b7d9d6f9ee52380d0cabcaa73cc02c
parent97914d93a9733307309d5660ee5ce044f56a98cc

zld: fix committing stub info into final binary


1 files changed, 5 insertions(+), 4 deletions(-)

src/link/MachO/Zld.zig+5-4
......@@ -1267,11 +1267,12 @@ fn writeStubHelperCommon(self: *Zld) !void {
12671267 }
12681268 };
12691269
1270 for (self.stubs.keys()) |key| {
1270 for (self.stubs.keys()) |_, i| {
1271 const index = @intCast(u32, i);
12711272 // TODO weak bound pointers
1272 try self.writeLazySymbolPointer(key);
1273 try self.writeStub(key);
1274 try self.writeStubInStubHelper(key);
1273 try self.writeLazySymbolPointer(index);
1274 try self.writeStub(index);
1275 try self.writeStubInStubHelper(index);
12751276 }
12761277}
12771278