mirror of
https://github.com/ziglang/zig.git
synced 2026-01-02 03:25:01 +00:00
zld: fix committing stub info into final binary
This commit is contained in:
parent
97914d93a9
commit
fccac48a55
@ -1267,11 +1267,12 @@ fn writeStubHelperCommon(self: *Zld) !void {
|
||||
}
|
||||
};
|
||||
|
||||
for (self.stubs.keys()) |key| {
|
||||
for (self.stubs.keys()) |_, i| {
|
||||
const index = @intCast(u32, i);
|
||||
// TODO weak bound pointers
|
||||
try self.writeLazySymbolPointer(key);
|
||||
try self.writeStub(key);
|
||||
try self.writeStubInStubHelper(key);
|
||||
try self.writeLazySymbolPointer(index);
|
||||
try self.writeStub(index);
|
||||
try self.writeStubInStubHelper(index);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user