--as-needed handling of shared libraries that fail -Wl,-z,defs

Alan Modra amodra@bigpond.net.au
Fri May 20 10:02:00 GMT 2005


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



More information about the Binutils mailing list