8.3.5 Inheritance rules for the RELOC address attribute

You can explicitly set the RELOC attribute for a load region. However, an execution region can only inherit the RELOC attribute from the parent load region.

Note:

For a Base Platform linking model, if a load region has the RELOC attribute, then all execution regions within that load region must have a +offset base address. This ensures the execution regions inherit the relocations from the parent load region.

Example

This example shows the inheritance rules for setting the address attributes with RELOC:

LR1 0x8000 RELOC
{ 
    ER1 +0 ; inherits RELOC from LR1
    {
        …
    }
    ER2 +0 ; inherits RELOC from ER1
    {
        …
    }
    ER3 +0 RELOC ; Error cannot explicitly set RELOC on an execution region
    {
        …
    }
}
Non-ConfidentialPDF file icon PDF versionARM DUI0474M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.