| |||
| Home > Formal syntax of the scatter file > Syntax of a load region description | |||
The syntax of a load region description, in Backus-Naur Form (BNF), is:
load_region_description::=load_region_name(base_address| ("+"offset)) [attribute_list] [max_size] "{"execution_region_description+ "}"
where:
load_region_nameNames the load region.
base_addressSpecifies the address where objects in the region
are to be linked. must
satisfy the alignment constraints of the load region.base_address
+offsetDescribes a base address that is bytes
beyond the end of the preceding load region. The value of offset must
be zero modulo four. If this is the first load region, then offset+ means
that the base address begins offset bytes
from zero.offset
If you use +,
then the load region might inherit certain attributes from a previous
load region.offset
attribute_listThe attributes that specify the properties of the load region contents.
max_sizeSpecifies the maximum size of the load region. This
is the size of the load region before any decompression or zero
initialization take place. If the optional value
is specified, armlink generates an error if the
region has more than max_size bytes
allocated to it.max_size
execution_region_descriptionSpecifies the execution region name, address, and contents.
The Backus-Naur Form (BNF) definitions contain additional line returns and spaces to improve readability. They are not required in the scatter-loading definition and are ignored if present in the file.