Load region attributes
load region has attributes that allow you to control where parts of your image are loaded in the target memory.
The load region attributes are:
- The content is placed at a fixed address that does not change after
linking. The load address of the region is specified by the base designator. This is the
default, unless you use
Increase the alignment constraint for the load region from 4 to
must be a positive power of 2. If the load region has a
then this must be
aligned. If the load region has a
+then the linker aligns the calculated base address of the region to an
This can also affect the offset in the ELF file. For example, the following causes the data for
FOOto be written out at 4k offset into the ELF file:
FOO +4 ALIGN 4096
- RW data compression is enabled by default. The
NOCOMPRESSkeyword enables you to specify that the contents of a load region must not be compressed in the final image.
OVERLAYkeyword 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.
The content is placed at a fixed address that does not change after linking. The content might overlap with other regions designated as
This region is position independent. The content does not depend on any fixed address and might be moved after linking without any extra processing.
PIis not supported for AArch64 state.
NoteThis attribute is not supported if an image contains execute-only sections.
- Overlapping of load regions.
- Veneer sharing.
- String sharing with the
- This attribute is deprecated when Base Platform is not enabled.
RELOCis not supported for AArch64 state.
This region is relocatable. The content depends on fixed addresses. Relocation information is output to enable the content to be moved to another location by another tool.