https://sourceware.org/bugzilla/show_bug.cgi?id=32268

            Bug ID: 32268
           Summary: ld: BFD (GNU Binutils) 2.42 assertion fail
                    elfxx-mips.c:3829
           Product: binutils
           Version: 2.42
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: itugrok at yahoo dot com
  Target Milestone: ---

Created attachment 15743
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15743&action=edit
Reproducer with source files and compile command

Platform: Ubuntu 22.04.5 LTS (x86_64)
Toolchain #1: GCC 10.3.0, Binutils 2.38   (Ubuntu packages)
Toolchain #2: GCC 13.3.0, Binutils 2.42   (OpenWrt buildroot)
Toolchain #3: GCC 13.3.0, Binutils 2.43.1 (OpenWrt buildroot)

GNU linker assertion raised while building Linux selftests/bpf and
cross-compiling to mips64el, using attached sources and gcc invocation:

$ mips64el-linux-gnuabi64-gcc -g -O0 -rdynamic -fno-omit-frame-pointer -mxgot
-Wl,-T,uprobe_multi.ld uprobe_multi.c -o uprobe_multi

/usr/lib/gcc-cross/mips64el-linux-gnuabi64/10/../../../../mips64el-linux-gnuabi64/bin/ld:
BFD (GNU Binutils for Ubuntu) 2.38 assertion fail ../../bfd/elfxx-mips.c:3752
/usr/lib/gcc-cross/mips64el-linux-gnuabi64/10/../../../../mips64el-linux-gnuabi64/bin/ld:
BFD (GNU Binutils for Ubuntu) 2.38 assertion fail ../../bfd/elfxx-mips.c:3752
collect2: error: ld returned 1 exit status

Code of assertion is same for all tests above:
https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=bfd/elfxx-mips.c;hb=20756b0fbe065a84710aa38f2457563b57546440#l3752

3750   /* This function shouldn't be called for symbols that live in the global
3751      area of the GOT.  */
3752   BFD_ASSERT (h == NULL || h->global_got_area == GGA_NONE);

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to