| |||
| Home > Formal syntax of the scatter file > Address attributes for load and execution regions | |||
A subset of the load and execution region attributes inform the linker about the content of the region and how it behaves after linking. These attributes are:
ABSOLUTEThe content is placed at a fixed address that does not change after linking.
PIThe content does not depend on any fixed address and might be moved after linking without any extra processing.
RELOCThe content depends on fixed addresses, relocation information is output to enable the content to be moved to another location by another tool.
You cannot explicitly use this attribute for an execution region.
OVERLAYThe content is placed at a fixed address that does not change
after linking. The content might overlap with other regions designated
as OVERLAY regions.
In general, all the execution regions within a load region have the same address attribute. To make this easy to select, the address attributes can be inherited from a previous region so that they only have to be set in one place. The rules for setting and inheriting address attributes are:
Explicitly setting the address attribute:
A load
region can be explicitly set with the ABSOLUTE, PI, RELOC,
or OVERLAY attributes.
An execution region can be explicitly set with the ABSOLUTE, PI,
or OVERLAY attributes. An execution region can
only inherit the RELOC attribute from the parent
load region.
Implicitly setting the address attribute when none is specified:
The OVERLAY attribute
cannot be inherited. A region with the OVERLAY attribute
cannot inherit.
A base address load or execution region always defaults
to ABSOLUTE.
A + load
region inherits the address attribute from the previous load region
or offsetABSOLUTE if no previous load region exists.
A + execution
region inherits the address attribute from the previous execution
region or parent load region if no previous execution region exists.offset