--as-needed by default

Alan Modra amodra@bigpond.net.au
Thu Mar 3 22:44:00 GMT 2005


On Thu, Mar 03, 2005 at 02:30:11PM +0000, Mike Hearn wrote:
> I'm wondering why the --as-needed ld option is not used by default.

Code supporting --as-needed is relatively new and quite complicated.
It is likely to have bugs.  Also, some projects might rely on the
existing ld behaviour of always adding DT_NEEDED tags for shared
libraries.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list