ALIGN

Returns the location-counter value, aligned on a specified boundary.

  ALIGN(alignValue)
  
  
Parameter

alignValue

Alignment-boundary specifier; must be a power of two.

Remarks

The ALIGN function does not update the location counter; it only performs arithmetic. Updating the location counter requires an assignment such as:

  . = ALIGN(0x10); #update location counter to
  
  
                    16-byte alignment
  
  

This alignment is not enforced on the section address following the ALIGN directive or each of the objects inside the section, but only on the location counter with an assignment as above.