| |||
| Home > Formal syntax of the scatter file > Load region attributes | |||
The load region attributes are:
ABSOLUTEAbsolute address. The load address of the region is specified
by the base designator. This is the default, unless you use PI or RELOC.
ALIGN alignmentIncrease the alignment constraint for the load region
from 4 to . alignment must
be a positive power of 2. If the load region has a alignment then
this must be base_address aligned.
If the load region has a alignment+ then
the linker aligns the calculated base address of the region to an offset boundary.alignment
This can also affect the offset in the ELF file. For example,
the following causes the data for FOO to be written
out at 4k offset into the ELF file:
FOO +4 ALIGN 4096
NOCOMPRESSRW data compression is enabled by default. The NOCOMPRESS keyword enables
you to specify that the contents of a load region must not be compressed
in the final image.
OVERLAYThe OVERLAY keyword enables you to have
multiple load regions at the same address. ARM tools do not provide
an overlay mechanism. To use multiple load regions at the same address,
you must provide your own overlay manager.
PIThis region is position independent.
PROTECTEDThe PROTECTED keyword prevents:
overlapping of load regions
veneer sharing
string sharing with the --merge option.
RELOCThis region is relocatable.
Using the Linker: