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 Sun, Mar 19, 2006 at 09:40:40AM +1030, Alan Modra wrote:
> On Sat, Mar 18, 2006 at 10:21:04PM +0300, Dmitry V. Levin wrote:
> > Without --as-needed fixes it produced a warning
> > /usr/bin/ld: warning: libfoo1.so, needed by ./libfoo2.so, not found (try using -rpath or -rpath-link)
> > but linked executable.
> > 
> > With --as-needed fixes it fails:
> > /usr/bin/ld: warning: libfoo1.so, needed by ./libfoo2.so, not found (try using -rpath or -rpath-link)
> > ./libfoo2.so: undefined reference to `foo1'
> > collect2: ld returned 1 exit status
> 
> Yes, that's a bugfix, the ??? in the comment below for the old as-needed
> code.

OK, then PR 2434 should be considered as fixed.


-- 
ldv

Attachment: pgp00000.pgp
Description: PGP signature


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