ALIGNALL is the command version of the ALIGN function. It forces the minimum alignment for all the objects in the current segment to the value of alignValue. The alignValue must be a power of two.
ALIGNALL(alignValue);
Unlike its counterpart ALIGN, ALIGNALL is an actual command. It updates the location counter as each object is written to the output.
.code :
{
ALIGNALL(16); // Align code on 16 byte boundary
* (.init)
* (.text)
ALIGNALL(16); //align data on 16 byte boundary
* (.rodata)
} > .text