Skip to content

Commit

Permalink
macho: rebase __la_symbol_ptr entries
Browse files Browse the repository at this point in the history
  • Loading branch information
kubkon committed Jan 23, 2024
1 parent 706065e commit 5ea8955
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/MachO/synthetic.zig
Original file line number Diff line number Diff line change
Expand Up @@ -355,15 +355,15 @@ pub const LaSymbolPtrSection = struct {
}
} else {
if (sym.flags.weak) {
try macho_file.rebase.entries.append(gpa, .{
.offset = addr - seg.vmaddr,
.segment_id = seg_id,
});
try macho_file.weak_bind.entries.append(gpa, entry);
} else if (sym.flags.interposable) {
try macho_file.lazy_bind.entries.append(gpa, entry);
}
}
try macho_file.rebase.entries.append(gpa, .{
.offset = addr - seg.vmaddr,
.segment_id = seg_id,
});
}
}

Expand Down

0 comments on commit 5ea8955

Please sign in to comment.