https://sourceware.org/bugzilla/show_bug.cgi?id=30237
Bug ID: 30237 Summary: strip fails on riscv with 'not enough room for program headers, stgnjAlO[.interp]: bad value' Product: binutils Version: 2.41 (HEAD) Status: NEW Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: sam at gentoo dot org Target Milestone: --- Reporting this on behalf of psykose from Alpine. binutils's riscv strip fails to handle the following: ``` psykose-edge-riscv64:~$ cat main.c int main() {return 0;} psykose-edge-riscv64:~$ clang main.c -fuse-ld=lld -o somebin psykose-edge-riscv64:~$ strip somebin strip: stgnjAlO: not enough room for program headers, try linking with -N strip: stgnjAlO[.interp]: bad value psykose-edge-riscv64:~$ strip --version GNU strip (GNU Binutils) 2.40 Copyright (C) 2023 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) any later version. This program has absolutely no warranty. ``` but llvm-strip is fine: ``` psykose-edge-riscv64:~$ llvm-strip somebin psykose-edge-riscv64:~$ ``` -- You are receiving this mail because: You are on the CC list for the bug.