macho: set first and last atom indexes to 0 when marking section for pruning

This commit is contained in:
Jakub Konka 2023-08-03 00:12:30 +02:00
parent 16f09127b5
commit 26adbf2cb7

View File

@ -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;
}
}