23.3.3.6 Configuration Words Input/Output Section Map
The last section in the processor definitions linker script is the
input/output section map for Configuration Words. This section map is additive to the
Input/Output Section Map found in the default linker script (see 23.3.4 Input/Output Section Map). It defines how
input sections for Configuration Words are mapped to output sections for Configuration
Words. Note that input sections are portions of an application that are defined in
source code, while output sections are created by the linker. Generally, several input
sections may be combined into a single output section. All output sections are specified
within a SECTIONS
command in the linker script.
For each Configuration Word that exists on the specific processor, a distinct
output section named .config_
address
exists
where address is the location of the Configuration Word in memory. Each of these
sections contains the data created by the #pragma config
directive (see
22.3 Pragma Directives)
for that Configuration Word. Each section is assigned to their respective memory region
(con-fig
n
).
SECTIONS
{
.config_BFC02FF0 : {
*(.config_BFC02FF0)
} > config3
.config_BFC02FF4 : {
*(.config_BFC02FF4)
} > config2
.config_BFC02FF8 : {
*(.config_BFC02FF8)
} > config1
.config_BFC02FFC : {
*(.config_BFC02FFC)
} > config0
}