[PATCH] Fix DT_NEEDED search with --as-needed libraries (PR ld/2721)

H. J. Lu hjl@lucon.org
Thu Jun 1 18:23:00 GMT 2006


On Thu, Jun 01, 2006 at 05:09:07PM +0200, Jakub Jelinek wrote:
> Hi!
> 
> If some --as-needed library mentioned on the command line isn't directly
> needed by executable being linked, but it is mentioned in DT_NEEDED of some
> needed library, then without this patch ld will disregard the library
> mentioned on the command line and look for a different one (e.g. in system
> paths).
> 

Can we also add a testcase?


H.J.



More information about the Binutils mailing list