You copied the Doc URL to your clipboard.

Example of placing code in a root region

This example shows how to use a scatter file to specify a root section. It is similar to placing a named section.


For AArch64, __rtentry*.o is moved to a root region.

The section selector InRoot$$Sections in this example places all sections that must be in a root region:

ROM_LOAD 0x0000 0x4000
  ROM_EXEC 0x0000 0x4000      ; root region at 0x0
    vectors.o (Vect, +FIRST)  ; Vector table
    * (InRoot$$Sections)      ; All library sections that must be in a
                              ; root region, for example, __main.o,
                              ; __scatter*.o, __dc*.o, and * Region$$Table
  RAM 0x10000 0x8000
    * (+RO, +RW, +ZI)         ; all other sections
Was this page helpful? Yes No