[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LFLAGS+=-Wl,-q causes ld to signal 11 during collect2
From: |
Alan Modra |
Subject: |
Re: LFLAGS+=-Wl,-q causes ld to signal 11 during collect2 |
Date: |
Sat, 25 Feb 2012 19:31:30 +1030 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Fri, Feb 24, 2012 at 09:50:08AM -0600, address@hidden wrote:
> I have spent the past couple of days tracking down why my builds all fail
> with
> collect2: ld terminated with signal 11 [Segmentation fault]
> This was 100% repeatable with binutils 2.20 and 2.22, on multiple
> architectures (X86 and ARM).
>
> I finally found that the cause was passing
> LFLAGS+=-Wl,-q
> to the compiler (asking LD to emit relocation records).
I think the only targets that will work reliably with -q are
powerpc-linux and powerpc64-linux. That's so because IBM uses this
feature in FDPRpro, so someone cared to make it work.
https://www.research.ibm.com/haifa/projects/systems/cot/fdpr/
--
Alan Modra
Australia Development Lab, IBM