This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ld --as-needed assertion fail, BFD internal error and crash


On Fri, Mar 17, 2006 at 03:05:36AM +0300, Dmitry V. Levin wrote:
> With this patch my ld --as-needed crashes even more often:

I don't have qt installed, so can't reproduce this problem using your
testcase.  A similar looking test using -lssl and -lcrpto linked OK for
me.

> $ cat qv.cc
> #include <qglobal.h>
> int main(void) {return !qVersion();}
> $ g++ -c -Wall -I/usr/include/qt3 qv.cc
> $ ld --as-needed --eh-frame-hdr -m elf_i386 qv.o -L/usr/lib/qt3/lib
> -lqt-mt -lpthread
> Segmentation fault
> (libqt-mt is linked with -lpthread, libpthread is not needed for qv.o)

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]