mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 12:59:04 +00:00
macho+zld: relax assumption about dead strip atoms uniqueness
In case the compiler outputted an object file that is not slicable into subsections, entry point may overlap with a section atom which is perfectly fine, so don't panic in that case.
This commit is contained in:
parent
9a203fa789
commit
5b54666268
@ -102,7 +102,7 @@ fn collectRoots(zld: *Zld, roots: *AtomTable) !void {
|
||||
};
|
||||
|
||||
if (is_gc_root) {
|
||||
try roots.putNoClobber(atom_index, {});
|
||||
_ = try roots.getOrPut(atom_index);
|
||||
|
||||
log.debug("root(ATOM({d}, %{d}, {?d}))", .{
|
||||
atom_index,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user