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

Nick Clifton nickc@redhat.com
Wed Mar 15 17:49:00 GMT 2006


Hi Dmitry,

> While building random packages with ld --as-needed to evaluate this
> extension, I found few cases where ld fails within BFD:
> http://sources.redhat.com/bugzilla/show_bug.cgi?id=2434
> Looks like --as-needed is not widely used and therefore not tested well.

The attached patch appears to fix this problem, but I am not sure that 
it is the correct solution.

H.J. - would you care to comment ?  Should we be ignoring 
bfd_link_hash_new type symbols in the way that the patch proposes or is 
it wrong that such symbols reach this point in the code ?

Cheers
   Nick


-------------- next part --------------
A non-text attachment was scrubbed...
Name: elflink.c.patch
Type: text/x-patch
Size: 969 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20060315/4791c445/attachment.bin>


More information about the Binutils mailing list