title: How to print message to stdout from GNU ld script?
body: <p>I have quite large <code>ld</code> link script for embedded platform which is low on RAM and ROM. I want to know how much memory is left available after I have relocated all the code. Actually, I want to print out the value
  of location counter <code>.</code> to stdout.
  How can I do it? Is there some magic command like <code>print(.)</code>?</p>