Keil Logo Arm Logo

Technical Support

On-Line Manuals

Linker Reference Guide

Conventions and feedback Linker command-line options Linker steering file command reference Formal syntax of the scatter file BNF notation used in scatter-loading description s Syntax of a scatter file About load region descriptions Syntax of a load region description Load region attributes About execution region descriptions Syntax of an execution region description Execution region attributes Address attributes for load and execution regions Considerations when using a relative address +offs Considerations when using a relative address +offs Inheritance rules for load region address attribut Inheritance rules for execution region address att Inheritance rules for the RELOC address attribute About input section descriptions Syntax of an input section description How the linker resolves multiple matches when proc Behavior when .ANY sections overflow because of li How the linker resolves path names when processing About Expression evaluation in scatter files Expression usage in scatter files Expression rules in scatter files Execution address built-in functions for use in sc Scatter files containing relative base address loa ScatterAssert function and load address related fu Symbol related function in a scatter file Example of aligning a base address in execution sp AlignExpr(expr, align) function GetPageSize() function SizeOfHeaders() function

Linker Reference Guide

Address attributes for load and execution regions

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.

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

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.