ALIGNALL

Forces minimum alignment for all objects in the current segment to the specified value.

ALIGNALL(alignValue);
  
Parameter

alignValue

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

Remarks

ALIGNALL is the command version of the ALIGN function. It updates the location counter as each object is written to the output.

Example

ALIGNALL Example is an example use for ALIGNALL() command.

Listing 1. ALIGNALL Example
.code :
{

    ALIGNALL(16);  // Align code on 16-byte boundary

    *    (.init)

    *    (.text)



    ALIGNALL(64);  //align data on 64-byte boundary

    *    (.rodata)

} > .text