7.10 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 or the --min_array_alignment command-line option, 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:
Increases the section alignment of all the sections in an execution region, for example:
    … ;selectors
Increases the alignment of a specific section, for example:
   *.o(.bar, OVERALIGN 8)
   … ;selectors
Related concepts
7.9 Creation of regions on page boundaries
8.5 Input section descriptions
Related reference
8.4.3 Execution region attributes
Related information
--min_array_alignment=opt compiler option
Non-ConfidentialPDF file icon PDF versionARM DUI0377G
Copyright © 2007, 2008, 2011, 2012, 2014, 2015 ARM. All rights reserved.