https://sourceware.org/bugzilla/show_bug.cgi?id=25501
Bug ID: 25501 Summary: STT_GNU_IFUNC causes assertion on 64-bit RISC-V Product: binutils Version: 2.34 Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: aurelien at aurel32 dot net Target Milestone: --- Created attachment 12250 --> https://sourceware.org/bugzilla/attachment.cgi?id=12250&action=edit Script to reproduce the issue Starting with GNU libc 2.30, the testsuite includes some IFUNC related tests even if only the assembler and the linker supports that feature (as opposed to compiler, assembler and linker before). Some of the tests can not be linked as they trigger an assertion in LD: /usr/bin/ld: BFD (GNU Binutils for Debian) 2.34 assertion fail ../../bfd/elfnn-riscv.c:2507 /usr/bin/ld: BFD (GNU Binutils for Debian) 2.34 assertion fail ../../bfd/elfnn-riscv.c:2508 /usr/bin/ld: BFD (GNU Binutils for Debian) 2.34 assertion fail ../../bfd/elfnn-riscv.c:2507 /usr/bin/ld: BFD (GNU Binutils for Debian) 2.34 assertion fail ../../bfd/elfnn-riscv.c:2507 collect2: error: ld returned 1 exit status I have added a reproducer script with sources extracted from the GNU libc as an attachment. -- You are receiving this mail because: You are on the CC list for the bug.