title: How to get memory locations of library functions?
body: <p>I am compiling a C program with the SPARC RTEMS C compiler.</p>
  
  <p>Using the Xlinker -M option, I am able to get a large memory map with a lot of things I don't recognize.</p>
  
  <p>I have also tried using the RCC nm utility, which returns a slightly more readable symbol table. I assume that the location given by this utility for, say, printf, is the location where printf is in memory and that every program that calls printf will reach that location during execution. Is this a valid assumption?</p>
  
  <p>Is there any way to get a list of locations for all the library/system functions? Also, when the linking is done, does it link just the functions that the executable calls, or is it all functions in the library? It seems to me to be the latter, given the number of things I found in the symbol table and memory map. Can I make it link only the required functions?</p>
  
  <p>Thanks for your help.</p>