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:

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.

Show/hideInheritance rules for address attributes

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 +offset load region inherits the address attribute from the previous load region or ABSOLUTE if no previous load region exists.

    • A +offset execution region inherits the address attribute from the previous execution region or parent load region if no previous execution region exists.

Show/hideSee also

Copyright © 2008, 2011-2012 ARM. All rights reserved.ARM DUI 0458C
Non-ConfidentialID062912