mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
elf: separate logic for reseting shdr indexes into a separate fn
This commit is contained in:
parent
50f48022f0
commit
031d9faf02
@ -3951,6 +3951,12 @@ fn sortShdrs(self: *Elf) !void {
|
||||
self.shdrs.appendAssumeCapacity(slice[sorted.shndx]);
|
||||
}
|
||||
|
||||
try self.resetShdrIndexes(backlinks);
|
||||
}
|
||||
|
||||
fn resetShdrIndexes(self: *Elf, backlinks: []const u16) !void {
|
||||
const gpa = self.base.allocator;
|
||||
|
||||
for (&[_]*?u16{
|
||||
&self.eh_frame_section_index,
|
||||
&self.eh_frame_rela_section_index,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user