A Type 1 image consists of a single load region in the load view and three execution regions placed contiguously in the memory map. This approach is suitable for systems that load programs into RAM, for example, an OS bootloader or a desktop system.
Use the following command for images of this type:
armlink --ro_base 0x8000
0x8000 is the default address, so you do
not have to specify
--ro_base for the example.
The three execution regions containing the RO, RW, and ZI output sections are arranged contiguously. The execution addresses of the RO and RW execution regions are the same as their load addresses, so nothing has to be moved from its load address to its execution address. However, the ZI execution region that contains the ZI output section is created at run-time.
Use armlink option
specify the load and execution address of the region containing
the RO output. The default address is
--zi_base command-line option to
specify the base address of a ZI execution region.