--as-needed and GNU ld linker

Alan Modra amodra@bigpond.net.au
Wed Nov 29 02:39:00 GMT 2006


On Tue, Nov 28, 2006 at 02:22:08PM +0100, Francesco Montorsi wrote:
> Mike Frysinger ha scritto:
> >On Monday 20 November 2006 09:21, Francesco Montorsi wrote:
> >>However I wonder: why not make --as-needed the default behaviour of ld ?
> >
> >it'll break some properly written C++ applications
> sorry - which kind of apps? I thought this was a thing related only to 
> the ability of GNU ld to be able to walk down the tree of DSO 
> dependencies...

I imagine apps that dlopen might be affected.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list