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

Alan Modra amodra@bigpond.net.au
Sun Jun 4 14:42:00 GMT 2006


On Sat, Jun 03, 2006 at 01:55:44AM +0930, Alan Modra wrote:
> 	* emultempl/elf32.em (global_found): Make it a pointer.
> 	(stat_needed, try_needed): Adjust.
> 	(check_needed): Don't skip non-loaded as-needed entries.  Only
> 	consider entries with both filename and the_bfd non-null.
> 	(after_open): Try loading non-loaded as-needed libs to satisfy
> 	DT_NEEDED libs.

Committed with an extra comment.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list