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, RW, and ZI output sections. Depending on how the output sections are arranged within load and execution regions, there are three basic types of simple image:
- Type 1
One region in load view, three contiguous regions in execution view. Use the
--ro_baseoption to create this type of image.
- Type 2
One region in load view, three non-contiguous regions in execution view. Use the
--rw_baseoptions to create this type of image.
- Type 3
Two regions in load view, three non-contiguous regions in execution view. Use the
--splitoptions to create this type of image.
In all the simple image types:
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.
However, you can also use the
for a Type 3 image. This option splits the default load region into
two RO output sections, one for code and one for data.
You can also use the
option to specify the base address of a ZI execution region for
Type 1 and Type 2 images. This option is ignored if you also use
--split command-line option that is required
for Type 3 images.
You can also create simple images with scatter files.