[PATCH] Fix DT_NEEDED when using -l:namespec

Alan Modra amodra@gmail.com
Thu Mar 13 13:23:00 GMT 2014


On Sun, Feb 16, 2014 at 10:02:56PM +0100, Romain Geissler wrote:
> 	* ldlang.h (full_name_provided): New input flag.
> 	* ldlang.c (new_afile): Set full_name_provided flag.
> 	* ldlfile.c (ldfile_open_file_search): Don't complete lib name if
> 	full_name_provided flag is set.
> 	* emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
> 	Correctly set DT_NEEDED for dynamic libraries with loaded with
> 	-l:namespec.
> 	* emultempl/aix.em (ppc_after_open_output): Don't try to load lib specified
> 	with -l:namespec.
> 	* emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
> 	* emultempl/pe.em (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
> 	* emultempl/pep.em (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
> 	* emultempl/vms.em (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.

OK, makes sense to have -l:libfoo.so give the same DT_NEEDED as -lfoo.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list