Syntax of a load region description
A load region can contain one or more execution region descriptions.
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_name
Names the load region. You can use a quoted name. The name is case-sensitive only if you use any region-related linker-defined symbols.
base_address
Specifies the address where objects in the region are to be linked.
must satisfy the alignment constraints of the load region.base_address
+
offset
Describes a base address that is
bytes beyond the end of the preceding load region. The value ofoffset
must be zero modulo four. If this is the first load region, thenoffset
+
means that the base address beginsoffset
bytes from zero.offset
If you use
+
, then the load region might inherit certain attributes from a previous load region.offset
attribute_list
The attributes that specify the properties of the load region contents.
max_size
Specifies 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,max_size
armlink
generates an error if the region has more than
bytes allocated to it.max_size
execution_region_description
Specifies the execution region name, address, and contents.
Note
The BNF definitions contain additional line returns and spaces to improve readability. They are not required in scatter-loading descriptions and are ignored if present in a scatter file.