title: How to specify base addresses for sections when linking or alternatively how to rebase a section after linking?
body: <p>Symbols can be linked at certain addresses with <code>defsym</code> as illustrated <a href="https://stackoverflow.com/questions/495262/linking-symbols-to-fixed-addresses-on-linux">here</a>. My question is whether the same can be done with sections? That is, given some <code>.o</code> object file, is it possible to specify the base address that sections will be relocated to?</p>
  
  <p>Alternatively, is it possible to rebase a section after the final link? That is, to change the address of a section in a binary and have all information affected by relocation (such as relative branches out of the section, etc.) to be relocated properly.</p>
  
  <p>If my question is not clear, I can edit it and add an image to explain better.</p>