Commit 26adbf2cb7

Jakub Konka <kubkon@jakubkonka.com>
2023-08-03 00:12:30
macho: set first and last atom indexes to 0 when marking section for pruning
1 parent 16f0912
Changed files (1)
src
link
src/link/MachO/dead_strip.zig
@@ -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;
                 }
             }