8.6.1 Expression usage in scatter files

You can use expressions for various load and execution region attributes.

Expressions can be used in the following places:

  • Load and execution region base_address.
  • Load and execution region +offset.
  • Load and execution region max_size.
  • Parameter for the ALIGN, FILL or PADVALUE keywords.
  • Parameter for the ScatterAssert function.

Example of specifying the maximum size in terms of an expression

LR1 0x8000 (2 * 1024)
{
    ER1 +0 (1 * 1024)
    {
        *(+RO)
    }
    ER2 +0 (1 * 1024)
    {
        *(+RW +ZI)
    }
}
Non-ConfidentialPDF file icon PDF versionARM DUI0474M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.