title: define a program section in C code (GCC)
body: <p>In assembly language, it's easy to define a section like:</p>
  
  <pre><code>.section foo
  </code></pre>
  
  <p>How can this be done in C code? I want to put a piece of C code in a special section rather than <code>.text</code>, so I will be able to put that section in a special location in the linker script.</p>
  
  <p>I'm using GCC.</p>