10.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 use most 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 Assigning Values to Symbols)
- an input section description (see Input Section Description)
- data values to include directly (see Output Section Data)