title: ARM: GNU GCC LInker bss section alignment
body: <p>I am using the GNU linker script in which the <code>bss</code> sections variables are getting non 4 byte aligned address and this is big problem as the variable address is being used by hardware,which needs word aligned address.</p>
  
  <p>Instead of using align attribute of single one of them, lets if I have 10 variables or I would like to have linker generate word aligned address for each variables in a particular section how can I do it ?</p>
  
  <p>I have tried using <code>ALIGN()</code> with no effect.</p>
  
  <p>This is the example:</p>
  
  <pre><code> .bss.a 9cdf8        0x1
  
   .bss.b 9cdf9        0x1
  </code></pre>
  
  <p>For <code>.bss.b</code> I would like to to get <code>0x9cdf8 + 4</code> and so for all the variables.</p>
  
  <p>How can I achieve this ?</p>