Skip to content

Commit

Permalink
macho: set first and last atom indexes to 0 when marking section for …
Browse files Browse the repository at this point in the history
…pruning
  • Loading branch information
kubkon authored and QusaiHroub committed Aug 3, 2023
1 parent bbff5c4 commit 364f68f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/link/MachO/dead_strip.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 364f68f

Please sign in to comment.