Syntax of an execution region description
An execution region specifies where the input sections are to be placed in target memory at run-time.
The syntax of an execution region description, in Backus-Naur Form (BNF), is:
Names the execution region. You can use a quoted name. The name is case-sensitive only if you use any region-related linker-defined symbols.
Specifies the address where objects in the region are to be linked.
must be word-aligned.
ALIGNon an execution region causes both the load address and execution address to be aligned.
Describes a base address that is
bytes beyond the end of the preceding execution region. The value of
must be zero modulo four.
If this is the first execution region in the load region then
+means that the base address begins
bytes after the base of the containing load region.
If you use
+, then the execution region might inherit certain attributes from the parent load region, or from a previous execution region within the same load region.
The attributes that specify the properties of the execution region contents.
For an execution region marked
value is interpreted as the length of the region. Otherwise the
value is interpreted as the maximum size of the execution region.
Can only be used with
EMPTYto represent a stack that grows down in memory. If the length is given as a negative value, the
is taken to be the end address of the region.
Specifies the content of the input sections.
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.