zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit f60fe4dcb667cc638f4f8ea8fb20d11de3440671 (tree)
parent b12c0de096b22b1ce17c73c466b645ed0631e818
Author: Matthew Lugg <mlugg@mlugg.co.uk>
Date:   Wed, 27 May 2026 14:45:32 +0100

Elf2: immediately clear unnecessary changed_symbol_index entries

Diffstat:
Msrc/link/Elf2.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/link/Elf2.zig b/src/link/Elf2.zig @@ -5669,7 +5669,7 @@ pub fn idle(elf: *Elf, tid: Zcu.PerThread.Id) !bool { }; break :task; } - if (elf.changed_symtab_index.pop()) |kv| { + while (elf.changed_symtab_index.pop()) |kv| { // We only need to do work in relocatables, because in ELF modules (non-relocatables) // our `ElfN.Rela` entries use `.dynsym` indices rather than `.symtab` indices, and // `.dynsym` indices are (at the time of writing) always immutable.