@@ -8,12 +8,12 @@ SECTIONS
8
8
_svector_table = .;
9
9
LONG (_stack_start );
10
10
11
- KEEP(*(.vector_table.reset_handler ));
11
+ KEEP(*(.vector_table.reset_vector ));
12
12
13
- KEEP(*(.rodata .exceptions));
13
+ KEEP(*(.vector_table .exceptions));
14
14
_eexceptions = .;
15
15
16
- KEEP(*(.rodata .interrupts));
16
+ KEEP(*(.vector_table .interrupts));
17
17
_einterrupts = .;
18
18
} > FLASH
19
19
@@ -98,23 +98,23 @@ ASSERT(_eexceptions - ORIGIN(FLASH) > 8, "
98
98
You must specify the exception handlers.
99
99
Create a non `pub` static variable with type
100
100
`cortex_m ::exception ::Handlers` and place it in the
101
- '.rodata .exceptions' section. (cf. #[link_section]). Apply the
101
+ '.vector_table .exceptions' section. (cf. #[link_section]). Apply the
102
102
`#[used]` attribute to the variable to make it reach the linker.");
103
103
104
104
ASSERT (_eexceptions - ORIGIN(FLASH ) == 0x40, "
105
- Invalid '.rodata .exceptions' section.
105
+ Invalid '.vector_table .exceptions' section.
106
106
Make sure to place a static with type `cortex_m ::exception ::Handlers`
107
107
in that section (cf. #[link_section]) ONLY ONCE.");
108
108
109
109
ASSERT (_einterrupts - _eexceptions > 0, "
110
110
You must specify the interrupt handlers.
111
111
Create a non `pub` static variable and place it in the
112
- '.rodata .interrupts' section. (cf. #[link_section]). Apply the
112
+ '.vector_table .interrupts' section. (cf. #[link_section]). Apply the
113
113
`#[used]` attribute to the variable to help it reach the linker.");
114
114
115
115
ASSERT (_einterrupts - _eexceptions <= 0x3c0, "
116
116
There can't be more than 240 interrupt handlers.
117
- Fix the '.rodata .interrupts' section. (cf. #[link_section])");
117
+ Fix the '.vector_table .interrupts' section. (cf. #[link_section])");
118
118
119
119
ASSERT (_einterrupts <= _stext, "
120
120
The '.text' section can't be placed inside '.vector_table' section.
0 commit comments