Small? request for ld --gc-sections

Etienne Lorrain etienne_lorrain@yahoo.fr
Wed Aug 15 08:57:00 GMT 2001


  Hello,

 If it is not too difficult, it would be nice to not consider a symbol
 in the linker script as referenced - in the sense of gc-section - if it
 is just a renaming.

 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 tried something like:
PROVIDE (library_sprintf = sprintf) ;
 but have the same result.

  Thanks,
  Etienne.

___________________________________________________________
Do You Yahoo!? -- Vos albums photos en ligne, 
Yahoo! Photos : http://fr.photos.yahoo.com



More information about the Binutils mailing list