authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-10-10 17:08:41-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-10-11 10:33:54-07:00
logc3148988a3e1ccbe351b8d51359490eb8258c18f
treecab623d8f78ae35e662d9e7b4a9205a0d1be1695
parent4669269673e0240301699127abb16b3072c5e592

link.Elf.ZigObject: make resetShdrIndexes non generic


1 files changed, 1 insertions(+), 1 deletions(-)

src/link/Elf/ZigObject.zig+1-1
......@@ -2027,7 +2027,7 @@ pub fn allocateAtom(self: *ZigObject, atom_ptr: *Atom, requires_padding: bool, e
20272027 log.debug(" prev {?}, next {?}", .{ atom_ptr.prev_atom_ref, atom_ptr.next_atom_ref });
20282028}
20292029
2030pub fn resetShdrIndexes(self: *ZigObject, backlinks: anytype) void {
2030pub fn resetShdrIndexes(self: *ZigObject, backlinks: []const u32) void {
20312031 for (self.atoms_indexes.items) |atom_index| {
20322032 const atom_ptr = self.atom(atom_index) orelse continue;
20332033 atom_ptr.output_section_index = backlinks[atom_ptr.output_section_index];