bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/26589] New: ld segfaulting building uClibc-ng 1.0.35 for crisv32


From: wbx at openadk dot org
Subject: [Bug ld/26589] New: ld segfaulting building uClibc-ng 1.0.35 for crisv32-linux
Date: Wed, 09 Sep 2020 00:25:06 +0000

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

            Bug ID: 26589
           Summary: ld segfaulting building uClibc-ng 1.0.35 for
                    crisv32-linux
           Product: binutils
           Version: 2.35
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: wbx at openadk dot org
  Target Milestone: ---

Created attachment 12826
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12826&action=edit
uClibc ld.so archive

When building a uClibc toolchain for crisv32-linux ld is segfaulting.           
I git bisected binutils and the faulty commit is the following                  
Binutils 2.29.1 is the last workinng released version.                          

commit e01c16a83893b03433c8edf4ccae536d9b9f4831                                 
Author: H.J. Lu <hjl.tools@gmail.com>                                           
Date:   Sat Oct 14 11:09:29 2017 -0700                                          

    cris: Check UNDEFWEAK_NO_DYNAMIC_RELOC                                      

    Don't generate dynamic relocation against weak undefined symbol if it       
    is resolved to zero.  FIXME: UNDEFWEAK_NO_DYNAMIC_RELOC may need to be      
    checked in more places.                                                     

    bfd/                                                                        

            PR ld/22269                                                         
            * elf32-cris.c (cris_elf_relocate_section): Don't generate          
            dynamic relocation if UNDEFWEAK_NO_DYNAMIC_RELOC is true.           
            (cris_elf_check_relocs): Don't allocate dynamic relocation          
            if UNDEFWEAK_NO_DYNAMIC_RELOC is true.                              

    ld/                                                                         

            PR ld/22269                                                         
            * testsuite/ld-cris/weakhiddso.d: Update and remove R_CRIS_NONE.

I couldn't find a simple test case, it happens when ld.so is linked together.


/home/wbx/openadk/toolchain_qemu-cris_uclibc-ng_crisv32/usr/bin/crisv32-openadk-linux-uclibc-gcc
 -Wl,-EL -Wl,-mcrislinux -shared -Wl,--warn-common -Wl,--warn-once
-Wl,-z,combreloc -Wl,-O2 -Wl,-z,defs
-L/home/wbx/openadk/target_qemu-cris_uclibc-ng_crisv32/lib
-L/home/wbx/openadk/target_qemu-cris_uclibc-ng_crisv32/usr/lib -Wl,-O1
-Wl,-rpath -Wl,/usr/lib -Wl,-rpath-link
-Wl,/home/wbx/openadk/target_qemu-cris_uclibc-ng_crisv32/usr/lib -mcpu=v32
-Wl,-e,_start -Wl,-z,now -Wl,-Bsymbolic -Wl,--export-dynamic -Wl,--sort-common
-Wl,--no-undefined -Wl,--discard-locals -Wl,--discard-all 
-Wl,-soname=ld-uClibc.so.1 -nostdlib -nostartfiles -o lib/ld-uClibc-1.0.35.so 
-Wl,--whole-archive ldso/ldso/ld-uClibc_so.a -Wl,--no-whole-archive 
/home/wbx/openadk/toolchain_qemu-cris_uclibc-ng_crisv32/usr/lib/gcc/crisv32-openadk-linux-uclibc/8.4.0/libgcc.a
collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
compilation terminated.

best regards 
Waldemar

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]