5.3.5. Assigning sections to a root region

In previous releases of RVCT, the only sections that had to be root were __main and the region tables. However, with the implementation of RW data compression there are more files that must be placed in a root region. The linker can detect these sections automatically.

Use a scatter-loading description file to specify a root section in the same way as a named section. Example 5.8 defines a section must be root using the section selector InRoot$$Sections.

Example 5.8. Specifying a root region

LR_APP 0x8000                       ; load region starts at 0x8000  
{
    ER_ROOT 0x8000
    {
            * (InRoot$$Sections)    ; place section
    }
    ER_WORLD 0x100000
    {
            * (RO,+RW,+ZI)

    }
                                    ; rest of scatter description...
}
Copyright © 2005 ARM Limited. All rights reserved.ARM DUI 0285B
Non-Confidential