From ca6f41ee30a53232dd951d2b00af73f1e8b5e698 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Wed, 21 Feb 2024 22:50:55 +0100 Subject: elf+riscv: skip parsing .riscv.attributes section for now --- src/link/Elf/Object.zig | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/link/Elf/Object.zig b/src/link/Elf/Object.zig index 16f8e263e7..d1b35ad286 100644 --- a/src/link/Elf/Object.zig +++ b/src/link/Elf/Object.zig @@ -336,6 +336,7 @@ fn skipShdr(self: *Object, index: u32, elf_file: *Elf) bool { if (mem.startsWith(u8, name, ".note")) break :blk true; if (mem.startsWith(u8, name, ".comment")) break :blk true; if (mem.startsWith(u8, name, ".llvm_addrsig")) break :blk true; + if (mem.startsWith(u8, name, ".riscv.attributes")) break :blk true; // TODO: riscv attributes if (comp.config.debug_format == .strip and shdr.sh_flags & elf.SHF_ALLOC == 0 and mem.startsWith(u8, name, ".debug")) break :blk true; break :blk false; -- cgit v1.2.3