| ... | ... | @@ -3411,6 +3411,7 @@ fn shdrRank(self: *Elf, shndx: u32) u8 { |
| 3411 | 3411 | return 0xf9; |
| 3412 | 3412 | } |
| 3413 | 3413 | }, |
| 3414 | elf.SHT_X86_64_UNWIND => return 0xf0, |
| 3414 | 3415 | |
| 3415 | 3416 | elf.SHT_NOBITS => return if (flags & elf.SHF_TLS != 0) 0xf5 else 0xf7, |
| 3416 | 3417 | elf.SHT_SYMTAB => return 0xfa, |
| ... | ... | @@ -3503,6 +3504,12 @@ fn resetShdrIndexes(self: *Elf, backlinks: []const u32) void { |
| 3503 | 3504 | } |
| 3504 | 3505 | } |
| 3505 | 3506 | |
| 3507 | for (self.objects.items) |index| { |
| 3508 | for (self.file(index).?.object.section_chunks.items) |*chunk| { |
| 3509 | chunk.output_section_index = backlinks[chunk.output_section_index]; |
| 3510 | } |
| 3511 | } |
| 3512 | |
| 3506 | 3513 | for (self.comdat_group_sections.items) |*cg| { |
| 3507 | 3514 | cg.shndx = backlinks[cg.shndx]; |
| 3508 | 3515 | } |