| ... | ... | @@ -789,6 +789,7 @@ fn linkWithLLD(self: *MachO, comp: *Compilation) !void { |
| 789 | 789 | mem.set(u8, dylib_cmd.data, 0); |
| 790 | 790 | mem.copy(u8, dylib_cmd.data, mem.spanZ(LIB_SYSTEM_PATH)); |
| 791 | 791 | try self.load_commands.append(self.base.allocator, .{ .Dylib = dylib_cmd }); |
| 792 | |
| 792 | 793 | // Parse dyld info |
| 793 | 794 | try self.parseBindingInfo(); |
| 794 | 795 | try self.parseLazyBindingInfo(); |
| ... | ... | @@ -2059,7 +2060,7 @@ fn parseLazyBindingInfo(self: *MachO) !void { |
| 2059 | 2060 | } |
| 2060 | 2061 | } |
| 2061 | 2062 | |
| 2062 | | fn parseAndFixupBindingInfoBuffer(allocator: *Allocator, buffer: []u8) !bool{ |
| 2063 | fn parseAndFixupBindingInfoBuffer(allocator: *Allocator, buffer: []u8) !bool { |
| 2063 | 2064 | var stream = std.io.fixedBufferStream(buffer); |
| 2064 | 2065 | var reader = stream.reader(); |
| 2065 | 2066 | var done = false; |