This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Small? request for ld --gc-sections


  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]