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:
ABSOLUTE
The content is placed at a fixed address that does not change after linking.
PI
The content does not depend on any fixed address and might be moved after linking without any extra processing.
RELOC
The content depends on fixed addresses, relocation information is output to enable the content to be moved to another location by another tool.
Note
You cannot explicitly use this attribute for an execution region.
OVERLAY
The 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
, orOVERLAY
attributes.An execution region can be explicitly set with the
ABSOLUTE
,PI
, orOVERLAY
attributes. An execution region can only inherit theRELOC
attribute from the parent load region.
Implicitly setting the address attribute when none is specified:
The
OVERLAY
attribute cannot be inherited. A region with theOVERLAY
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 oroffset
ABSOLUTE
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
- Concepts
- Reference