https://sourceware.org/bugzilla/show_bug.cgi?id=33773
Bug ID: 33773
Summary: RISC-V relaxation bug: 'collect2: fatal error: ld
terminated with signal 11 [Segmentation fault], core
dumped'
Product: binutils
Version: 2.45
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: rafaelcalcada at gmail dot com
Target Milestone: ---
Created attachment 16555
--> https://sourceware.org/bugzilla/attachment.cgi?id=16555&action=edit
Testcase for the reported bug
`ld` segfaults misteriously when cross-compiling for RISC-V with relaxation
enabled (the default).
I attached a testcase for it.
Steps to reproduce:
- Download the latest RISC-V GNU Toolchain (which includes binutils 2.45) from
https://github.com/riscv-collab/riscv-gnu-toolchain/releases/tag/2026.01.01 and
add its `bin` folder to your `PATH`
- Unzip the testcase and run `make` from the unzipped folder
- GNU ld will segfault
- The error goes away if -mnorelax is used. To run with this flag enabled, just
run `make norelax`.
- The testcase contains the linker script and files trying to be
compiled/assembled.
For reference, I filed a bug report in RISC-V GNU Toolchain as well:
https://github.com/riscv-collab/riscv-gnu-toolchain/issues/1825
--
You are receiving this mail because:
You are on the CC list for the bug.