title: How to get GCC linker command?
body: <p>How can I get the command line GCC uses to invoke ld?</p>
  
  <p>I have a problem for an AVR target where GCC apparently adds a linker option which I am trying to override, so I would like to look at the exact options GCC uses for ld.</p>