This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: --as-needed handling of shared libraries that fail -Wl,-z,defs
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 20 May 2005 19:23:49 +0930
- Subject: Re: --as-needed handling of shared libraries that fail -Wl,-z,defs
- References: <20050519163716.GD22344@sunsite.mff.cuni.cz>
On Thu, May 19, 2005 at 06:37:16PM +0200, Jakub Jelinek wrote:
> --as-needed doesn't seem to try satisfy undefined references in shared
> libraries:
No, as the ld doc says it "causes DT_NEEDED tags to only be emitted
for libraries that satisfy some symbol reference from regular objects
which is undefined at the point that the library was linked."
Note the "regular objects". I'm not sure now why I wrote it that way.
It would be trivial to change, but I'd suggest using another option to
control behaviour.
--
Alan Modra
IBM OzLabs - Linux Technology Centre