mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 14:25:16 +00:00
macho: set first and last atom indexes to 0 when marking section for pruning
This commit is contained in:
parent
16f09127b5
commit
26adbf2cb7
@ -465,8 +465,8 @@ fn prune(zld: *Zld, alive: AtomTable) void {
|
||||
section.last_atom_index = prev_index;
|
||||
} else {
|
||||
assert(section.header.size == 0);
|
||||
section.first_atom_index = undefined;
|
||||
section.last_atom_index = undefined;
|
||||
section.first_atom_index = 0;
|
||||
section.last_atom_index = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user