mirror of
https://github.com/ziglang/zig.git
synced 2026-01-13 19:05:12 +00:00
link.Elf.ZigObject: make resetShdrIndexes non generic
This commit is contained in:
parent
4669269673
commit
c3148988a3
@ -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];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user