This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Fix DT_NEEDED when using -l:namespec
- From: Alan Modra <amodra at gmail dot com>
- To: Romain Geissler <romain dot geissler at amadeus dot com>
- Cc: binutils at sourceware dot org, lenaic dot huard at laposte dot net
- Date: Thu, 13 Mar 2014 23:53:10 +1030
- Subject: Re: [PATCH] Fix DT_NEEDED when using -l:namespec
- Authentication-results: sourceware.org; auth=none
- References: <A23C3213-AEFE-410F-9C24-EBAF7E669BA8 at amadeus dot com>
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