Small? request for ld --gc-sections

Etienne Lorrain etienne_lorrain@yahoo.fr
Thu Aug 16 03:26:00 GMT 2001


--- 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



More information about the Binutils mailing list