| ... | @@ -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 | } |
| 2029 | | 2029 | |
| 2030 | pub fn resetShdrIndexes(self: *ZigObject, backlinks: anytype) void { | 2030 | pub 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]; |