authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-02-21 22:50:55+01:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-02-21 22:50:55+01:00
logca6f41ee30a53232dd951d2b00af73f1e8b5e698
tree0e0c07a16a97c1ec6667ae223de7e7f9249686f3
parentd19001abac6b5c0bc478799dc683bf71a6e6b2d8

elf+riscv: skip parsing .riscv.attributes section for now


1 files changed, 1 insertions(+), 0 deletions(-)

src/link/Elf/Object.zig+1
...@@ -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 and340 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;