Does -gc-section (garbage collection) works only with static linking ?

Alan Modra amodra@bigpond.net.au
Wed Sep 8 05:40:00 GMT 2004


On Tue, Sep 07, 2004 at 03:10:33PM +0100, Nick Clifton wrote:
> >As I understand unreachable code elimination can be only achieved with
> >static linking. Am I right ?
> 
> Essentially yes

Eric Botcazou added code to mainline CVS on 2004-04-21 to handle
garbage collection of dynamically linked applications.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list