You copied the Doc URL to your clipboard.

Example of placing code in a root region

Use a scatter file to specify a root section in the same way as a named section.


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

The following example uses the section selector InRoot$$Sections to place 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