ld: Output Section Type

1 
1 3.6.8.1 Output Section Type
1 ...........................
1 
1 Each output section may have a type.  The type is a keyword in
1 parentheses.  The following types are defined:
1 
1 'NOLOAD'
1      The section should be marked as not loadable, so that it will not
1      be loaded into memory when the program is run.
1 'DSECT'
1 'COPY'
1 'INFO'
1 'OVERLAY'
1      These type names are supported for backward compatibility, and are
1      rarely used.  They all have the same effect: the section should be
1      marked as not allocatable, so that no memory is allocated for the
1      section when the program is run.
1 
1    The linker normally sets the attributes of an output section based on
1 the input sections which map into it.  You can override this by using
1 the section type.  For example, in the script sample below, the 'ROM'
1 section is addressed at memory location '0' and does not need to be
1 loaded when the program is run.
1      SECTIONS {
1        ROM 0 (NOLOAD) : { ... }
1        ...
1      }
1