ld: Output Section Description

1 
1 3.6.1 Output Section Description
1 --------------------------------
1 
1 The full description of an output section looks like this:
1      SECTION [ADDRESS] [(TYPE)] :
1        [AT(LMA)]
1        [ALIGN(SECTION_ALIGN) | ALIGN_WITH_INPUT]
1        [SUBALIGN(SUBSECTION_ALIGN)]
1        [CONSTRAINT]
1        {
1          OUTPUT-SECTION-COMMAND
1          OUTPUT-SECTION-COMMAND
1          ...
1        } [>REGION] [AT>LMA_REGION] [:PHDR :PHDR ...] [=FILLEXP] [,]
1 
1    Most output sections do not use most of the optional section
1 attributes.
1 
1    The whitespace around SECTION is required, so that the section name
1 is unambiguous.  The colon and the curly braces are also required.  The
1 comma at the end may be required if a FILLEXP is used and the next
1 SECTIONS-COMMAND looks like a continuation of the expression.  The line
1 breaks and other white space are optional.
1 
1    Each OUTPUT-SECTION-COMMAND may be one of the following:
1 
1    * a symbol assignment (⇒Assignments)
1    * an input section description (⇒Input Section)
1    * data values to include directly (⇒Output Section Data)
1    * a special output section keyword (⇒Output Section Keywords)
1