9.5.5.5 Output Section Description
The full description of an output section looks like
this:
name [address] [(type)] : [AT(lma)]
{
output-section-command
output-section-command
...
} [>region] [AT>lma_region] [=fillexp]
Most output sections do not need to make use of the optional section attributes.
The white space around name
and
address
is required. The colon and the curly braces
are also required. The line breaks and other white space are optional.
A section name may consist of any sequence of characters, but a name which contains any unusual characters such as commas must be quoted.
Each output-section-command may be one of the following:
- a symbol assignment (see 9.5.3 Assigning Values to Symbols)
- an input section description (see 9.5.5.1 Input Section Description)
- data values to include directly (see 9.5.5.7 Output Section Data)