| ... | @@ -3951,6 +3951,12 @@ fn sortShdrs(self: *Elf) !void { | ... | @@ -3951,6 +3951,12 @@ fn sortShdrs(self: *Elf) !void { |
| 3951 | self.shdrs.appendAssumeCapacity(slice[sorted.shndx]); | 3951 | self.shdrs.appendAssumeCapacity(slice[sorted.shndx]); |
| 3952 | } | 3952 | } |
| 3953 | | 3953 | |
| | 3954 | try self.resetShdrIndexes(backlinks); |
| | 3955 | } |
| | 3956 | |
| | 3957 | fn resetShdrIndexes(self: *Elf, backlinks: []const u16) !void { |
| | 3958 | const gpa = self.base.allocator; |
| | 3959 | |
| 3954 | for (&[_]*?u16{ | 3960 | for (&[_]*?u16{ |
| 3955 | &self.eh_frame_section_index, | 3961 | &self.eh_frame_section_index, |
| 3956 | &self.eh_frame_rela_section_index, | 3962 | &self.eh_frame_rela_section_index, |