aboutsummaryrefslogtreecommitdiff
path: root/src/link/MachO.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/link/MachO.zig')
-rw-r--r--src/link/MachO.zig4
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);