| author | |
| committer | |
| log | 031d9faf022eb58c688033148f5a1fa145c6d84c |
| tree | 61618c860a9ebc32c75f241649d0bd1ab009b8d8 |
| parent | 50f48022f04b747bb2624858df89366dfc63b0a4 |
1 files changed, 6 insertions(+), 0 deletions(-)
src/link/Elf.zig+6| ... | ... | @@ -3951,6 +3951,12 @@ fn sortShdrs(self: *Elf) !void { |
| 3951 | 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 | 3960 | for (&[_]*?u16{ |
| 3955 | 3961 | &self.eh_frame_section_index, |
| 3956 | 3962 | &self.eh_frame_rela_section_index, |