title: GCC: how to tell GCC to put the 'main' function at the start of the .text section?
body: <p>I've just started learning some ARM programming and I've got stuck in a slightly annoying problem. The toolchain I'm using to compile my sources is Sourcery CodeBench Lite 2013.05-23 (can be found here: <a href="https://sourcery.mentor.com/GNUToolchain/release2449" rel="noreferrer">https://sourcery.mentor.com/GNUToolchain/release2449</a>)</p>
  
  <p>What I would need is to tell GCC or LD or OBJCOPY to put the compiled bytecode of the 'main' function at the beginning of the .text section.</p>
  
  <p>Is there any way to achieve this? (maybe through a linker script?)</p>
  
  <p>Thank you</p>