https://sourceware.org/bugzilla/show_bug.cgi?id=34988
--- Comment #5 from Sourceware Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by liu zhensong <[email protected]>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9a69857ad3ef825d3f4ba782f37f3f334b131c86 commit 9a69857ad3ef825d3f4ba782f37f3f334b131c86 Author: Harshit Kumar <[email protected]> Date: Sat Nov 14 15:08:28 2026 +0530 LoongArch: handle a local IFUNC referenced only from a non-alloc section A local STT_GNU_IFUNC symbol gets its hash entry from the relocation scan, which skips non-SEC_ALLOC sections (PR ld/26080). When only such a section refers to it, loongarch_elf_relocate_section finds no entry and aborts. This backend relocates a global STT_GNU_IFUNC symbol without a PLT entry as STT_FUNC, debugging sections included; do the same for the local one. bfd/ PR ld/34988 * elfnn-loongarch.c (loongarch_elf_relocate_section): Handle a local STT_GNU_IFUNC symbol with no hash entry in a non-SEC_ALLOC section. ld/ PR ld/34988 * testsuite/ld-loongarch-elf/ifunc-debug-nonalloc.d: New test. * testsuite/ld-loongarch-elf/ifunc-debug-nonalloc.s: New file. * testsuite/ld-loongarch-elf/ifunc-note-nonalloc.d: New test. * testsuite/ld-loongarch-elf/ifunc-note-nonalloc.s: New file. * testsuite/ld-loongarch-elf/ld-loongarch-elf.exp: Run them. Signed-off-by: Harshit Kumar <[email protected]> -- You are receiving this mail because: You are on the CC list for the bug.
