9.66 --legacyalign, --no_legacyalign

Controls how padding is inserted into the image.


By default, the linker assumes execution regions and load regions to be four-byte aligned. --legacyalign enables the linker to minimize the amount of padding that it inserts into the image.
The --no_legacyalign option instructs the linker to insert padding to force natural alignment of execution regions. Natural alignment is the highest known alignment for that region.
Use --no_legacyalign to ensure strict conformance with the ELF specification.
You can also use expression evaluation in a scatter file to avoid padding.
Related concepts
3.3 Section placement with the linker
7.12 Example of using expression evaluation in a scatter file to avoid padding
Related reference
8.3.3 Load region attributes
8.4.3 Execution region attributes
Non-ConfidentialPDF file icon PDF versionARM DUI0377G
Copyright © 2007, 2008, 2011, 2012, 2014, 2015 ARM. All rights reserved.