This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Does -gc-section (garbage collection) works only with static linking ?
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: Valery Pykhtin <pykhtin at prosoft dot ural dot ru>,binutils at sources dot redhat dot com
- Date: Wed, 8 Sep 2004 14:10:01 +0930
- Subject: Re: Does -gc-section (garbage collection) works only with static linking ?
- References: <009101c494d0$c9664e10$9926a8c0@prosoft.ural.ru> <413DC159.7080901@redhat.com>
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