| |||
| Home > Using the Basic Linker Functionality > Using command-line options to create simple images | |||
A simple image consists of a number of input sections of type RO, RW, and ZI. These input sections are collated to form the RO, the RW, and the ZI output sections. Depending on how the output sections are arranged within load and execution regions, there are three basic types of simple image:
One region in load view, three contiguous
regions in execution view. Use the --ro-base option
to create this type of image.
See Type 1: one load region and contiguous output regions for more details.
One region in load
view, three non-contiguous regions in execution view. Use the --ro-base and --rw-base options
to create this type of image.
See Type 2: one load region and non-contiguous output regions for more details.
Two regions in
load view, three non-contiguous regions in execution view. Use the --ro-base, --rw-base,
and --split options to create this type of image,
You can also use the --rosplit option to split
the default load region into two RO output sections, one for code
and one for data.
See Type 3: two load regions and non-contiguous output regions for more details.
In all three simple image types, there are up to three execution regions where:
the first execution region contains the RO output section
the second execution region contains the RW output section (if present)
the third execution region contains the ZI output section (if present).
These execution regions are referred to as the RO, the RW, and the ZI execution region.
Simple images can also be created with scatter-loading description files. See Equivalent scatter-loading descriptions for simple images for more information on how to do this.
This section describes: