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...@@ -2027,7 +2027,7 @@ pub fn allocateAtom(self: *ZigObject, atom_ptr: *Atom, requires_padding: bool, e
2027 log.debug(" prev {?}, next {?}", .{ atom_ptr.prev_atom_ref, atom_ptr.next_atom_ref });2027 log.debug(" prev {?}, next {?}", .{ atom_ptr.prev_atom_ref, atom_ptr.next_atom_ref });
2028}2028}
20292029
2030pub fn resetShdrIndexes(self: *ZigObject, backlinks: anytype) void {2030pub fn resetShdrIndexes(self: *ZigObject, backlinks: []const u32) void {
2031 for (self.atoms_indexes.items) |atom_index| {2031 for (self.atoms_indexes.items) |atom_index| {
2032 const atom_ptr = self.atom(atom_index) orelse continue;2032 const atom_ptr = self.atom(atom_index) orelse continue;
2033 atom_ptr.output_section_index = backlinks[atom_ptr.output_section_index];2033 atom_ptr.output_section_index = backlinks[atom_ptr.output_section_index];