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

Dmitry V. Levin ldv@altlinux.org
Sat Mar 18 23:55:00 GMT 2006


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20060318/23e8f05e/attachment.sig>


More information about the Binutils mailing list