diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2020-12-14 17:02:22 +0100 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2020-12-17 10:04:53 +0100 |
| commit | 3e9e79378d4776323bb37a3bc1ebf6506efac88d (patch) | |
| tree | 43cb52be82ac8abb01fd019c6a46c05692f32475 /src/link/MachO.zig | |
| parent | 2d5d661703efb3a3628210493d151c4181086bef (diff) | |
| download | zig-3e9e79378d4776323bb37a3bc1ebf6506efac88d.tar.gz zig-3e9e79378d4776323bb37a3bc1ebf6506efac88d.zip | |
macho: deduplicate libc headers between macos arch
Diffstat (limited to 'src/link/MachO.zig')
| -rw-r--r-- | src/link/MachO.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/link/MachO.zig b/src/link/MachO.zig index 98441a0646..e71b89e0b6 100644 --- a/src/link/MachO.zig +++ b/src/link/MachO.zig @@ -827,7 +827,7 @@ fn linkWithLLD(self: *MachO, comp: *Compilation) !void { const dyld_info = self.load_commands.items[self.dyld_info_cmd_index.?].DyldInfoOnly; { const size = self.binding_info_table.calcSize(); - assert(dyld_info.bind_size == size); + assert(dyld_info.bind_size >= size); var buffer = try self.base.allocator.alloc(u8, size); defer self.base.allocator.free(buffer); @@ -839,7 +839,7 @@ fn linkWithLLD(self: *MachO, comp: *Compilation) !void { } { const size = self.lazy_binding_info_table.calcSize(); - assert(dyld_info.lazy_bind_size == size); + assert(dyld_info.lazy_bind_size >= size); var buffer = try self.base.allocator.alloc(u8, size); defer self.base.allocator.free(buffer); |
