This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Small? request for ld --gc-sections
- To: Alan Modra <amodra at bigpond dot net dot au>
- Subject: Re: Small? request for ld --gc-sections
- From: Etienne Lorrain <etienne_lorrain at yahoo dot fr>
- Date: Thu, 16 Aug 2001 12:25:53 +0200 (CEST)
- Cc: clm at cygnus dot com, binutils at sources dot redhat dot com
--- Alan Modra <amodra@bigpond.net.au> a écrit :
> On Wed, Aug 15, 2001 at 05:57:14PM +0200, Etienne Lorrain wrote:
> >
> > I have at the end of my linker file:
> > library_sprintf = sprintf ;
> > And in one configuration, the symbol "library_sprintf" is not used,
> > "sprintf" is not used neither, but the function "sprintf" is included
> > in the link (ld --gc-section) because of this linker line.
>
> I can't reproduce this behaviour. ie. I can reference a function in the
> linker script via an assignment, and have the function removed. Are you
> sure garbage collection is being done at all?
Really sorry, my fault: Garbage collection was not enabled in this
configuration - my Makefile is a bit too complex.
Thanks,
Etienne.
___________________________________________________________
Do You Yahoo!? -- Vos albums photos en ligne,
Yahoo! Photos : http://fr.photos.yahoo.com