https://sourceware.org/bugzilla/show_bug.cgi?id=30237
Fangrui Song <i at maskray dot me> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |i at maskray dot me --- Comment #5 from Fangrui Song <i at maskray dot me> --- (In reply to alice from comment #4) > forwarded upstream too, then: > https://github.com/llvm/llvm-project/issues/63084 riscv-non-isa/riscv-elf-psabi-doc#71 (2021-06) added PT_RISCV_ATTRIBUTES, but no dynamic loader uses this yet. I created https://reviews.llvm.org/D152065 to add PT_RISCV_ATTRIBUTES to ld.lld. > psykose-edge-riscv64:~$ strip somebin > strip: stgnjAlO: not enough room for program headers, try linking with -N > strip: stgnjAlO[.interp]: bad value This looks like a GNU objcopy/strip bug. The tool should work regardless of whether the linker creates PT_RISCV_ATTRIBUTES. AArch32 doesn't have PT_ARM_ATTRIBUTES and I believe objcopy/strip can process such a trivial program. The RISC-V port should be fixed. -- You are receiving this mail because: You are on the CC list for the bug.