title: Map file with GCC on OSX
body: <p>I am using GCC on Mac OSX. I am trying to get GCC to create a map(or listing) file of all the symbols in the project so it contains the addresses at which they are mapped.</p>
  
  <p>I read in the GCC manual that a way of generating such map files is to pass system specific flags to the GCC linker using -Xlinker option.</p>
  
  <p>But I cannot find what the option itself is. Does anyone know if this is possible with using GCC on OSX? </p>