Keil™, An ARM® Company

RealView Linker and Utilities Guide

Creating regions on page boundaries

5.3.8. Creating regions on page boundaries

The ALIGN directive produces an ELF file that can be loaded directly to a target with each execution region starting at a page boundary.

Example 5.22 assumes a page size of 65536 and produces an ELF file with each region starting on a new page.

Example 5.22. Creating regions on page boundaries

LR1 +4 ALIGN 65536              ; load region at 65536
{
    ER1 +0 ALIGN 65536          ; first region at first page boundary
    {
        *(+RO)                  ; all RO sections are placed consecutively here
    }
    ER2 +0 ALIGN 65536          ; second region at next available page boundary
    {
        *(+RW)                  ; all RW sections are placed consecutively here
    }
    ER3 +0 ALIGN 65536          ; third region at next available page boundary
   {
        *(+ZI)                  ; all ZI sections are placed consecutively here
    }
    ...                         ; rest of scatter description...
}
Copyright © 2007 ARM Limited. All rights reserved.ARM DUI 0377A