| ... | @@ -336,6 +336,7 @@ fn skipShdr(self: *Object, index: u32, elf_file: *Elf) bool { | ... | @@ -336,6 +336,7 @@ fn skipShdr(self: *Object, index: u32, elf_file: *Elf) bool { |
| 336 | if (mem.startsWith(u8, name, ".note")) break :blk true; | 336 | if (mem.startsWith(u8, name, ".note")) break :blk true; |
| 337 | if (mem.startsWith(u8, name, ".comment")) break :blk true; | 337 | if (mem.startsWith(u8, name, ".comment")) break :blk true; |
| 338 | if (mem.startsWith(u8, name, ".llvm_addrsig")) break :blk true; | 338 | if (mem.startsWith(u8, name, ".llvm_addrsig")) break :blk true; |
| | 339 | if (mem.startsWith(u8, name, ".riscv.attributes")) break :blk true; // TODO: riscv attributes |
| 339 | if (comp.config.debug_format == .strip and shdr.sh_flags & elf.SHF_ALLOC == 0 and | 340 | if (comp.config.debug_format == .strip and shdr.sh_flags & elf.SHF_ALLOC == 0 and |
| 340 | mem.startsWith(u8, name, ".debug")) break :blk true; | 341 | mem.startsWith(u8, name, ".debug")) break :blk true; |
| 341 | break :blk false; | 342 | break :blk false; |