You copied the Doc URL to your clipboard.

ARM Compiler armlink User Guide : Overalignment of execution regions and input sections

Overalignment of execution regions and input sections

There are situations when you want to overalign code and data sections. How you deal with them depends on whether or not you have access to the source code.

Overalignment with access to the source code

If you have access to the original source code, you can do this at compile time with the __align(n) keyword, for example.

Overalignment without access to the source code

If you do not have access to the source code, then you must use the following alignment specifiers in a scatter file:

ALIGNALL

Increases the section alignment of all the sections in an execution region, for example:

ER_DATA … ALIGNALL 8
{
    … ;selectors
}
OVERALIGN

Increases the alignment of a specific section, for example:

ER_DATA …
{
   *.o(.bar, OVERALIGN 8)
   … ;selectors
}

Related reference

Was this page helpful? Yes No