| ... | ... | @@ -2097,9 +2097,16 @@ fn freeAtom(self: *Elf, atom_index: Atom.Index) void { |
| 2097 | 2097 | // Appending to free lists is allowed to fail because the free lists are heuristics based anyway. |
| 2098 | 2098 | const local_sym_index = atom.getSymbolIndex().?; |
| 2099 | 2099 | |
| 2100 | log.debug("adding %{d} to local symbols free list", .{local_sym_index}); |
| 2100 | 2101 | self.local_symbol_free_list.append(gpa, local_sym_index) catch {}; |
| 2101 | | self.local_symbols.items[local_sym_index].st_info = 0; |
| 2102 | | self.local_symbols.items[local_sym_index].st_shndx = 0; |
| 2102 | self.local_symbols.items[local_sym_index] = .{ |
| 2103 | .st_name = 0, |
| 2104 | .st_info = 0, |
| 2105 | .st_other = 0, |
| 2106 | .st_shndx = 0, |
| 2107 | .st_value = 0, |
| 2108 | .st_size = 0, |
| 2109 | }; |
| 2103 | 2110 | _ = self.atom_by_index_table.remove(local_sym_index); |
| 2104 | 2111 | self.getAtomPtr(atom_index).local_sym_index = 0; |
| 2105 | 2112 | |