aboutsummaryrefslogtreecommitdiff
path: root/src/link/Elf
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2024-02-21 22:50:55 +0100
committerJakub Konka <kubkon@jakubkonka.com>2024-02-21 22:50:55 +0100
commitca6f41ee30a53232dd951d2b00af73f1e8b5e698 (patch)
tree0e0c07a16a97c1ec6667ae223de7e7f9249686f3 /src/link/Elf
parentd19001abac6b5c0bc478799dc683bf71a6e6b2d8 (diff)
downloadzig-ca6f41ee30a53232dd951d2b00af73f1e8b5e698.tar.gz
zig-ca6f41ee30a53232dd951d2b00af73f1e8b5e698.zip
elf+riscv: skip parsing .riscv.attributes section for now
Diffstat (limited to 'src/link/Elf')
-rw-r--r--src/link/Elf/Object.zig1
1 files changed, 1 insertions, 0 deletions
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;