aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-10-10 17:08:41 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-10-11 10:33:54 -0700
commitc3148988a3e1ccbe351b8d51359490eb8258c18f (patch)
treecab623d8f78ae35e662d9e7b4a9205a0d1be1695 /src
parent4669269673e0240301699127abb16b3072c5e592 (diff)
downloadzig-c3148988a3e1ccbe351b8d51359490eb8258c18f.tar.gz
zig-c3148988a3e1ccbe351b8d51359490eb8258c18f.zip
link.Elf.ZigObject: make resetShdrIndexes non generic
Diffstat (limited to 'src')
-rw-r--r--src/link/Elf/ZigObject.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link/Elf/ZigObject.zig b/src/link/Elf/ZigObject.zig
index 54d15297d5..e8b804e024 100644
--- a/src/link/Elf/ZigObject.zig
+++ b/src/link/Elf/ZigObject.zig
@@ -2027,7 +2027,7 @@ pub fn allocateAtom(self: *ZigObject, atom_ptr: *Atom, requires_padding: bool, e
log.debug(" prev {?}, next {?}", .{ atom_ptr.prev_atom_ref, atom_ptr.next_atom_ref });
}
-pub fn resetShdrIndexes(self: *ZigObject, backlinks: anytype) void {
+pub fn resetShdrIndexes(self: *ZigObject, backlinks: []const u32) void {
for (self.atoms_indexes.items) |atom_index| {
const atom_ptr = self.atom(atom_index) orelse continue;
atom_ptr.output_section_index = backlinks[atom_ptr.output_section_index];