Skip to content

Commit 88bafcc

Browse files
committed
Prevent LTO from omitting the ISR vector table
1 parent 024eaa5 commit 88bafcc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/arduino/cortex_handlers.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ extern uint32_t __bss_end__;
196196
extern uint32_t __StackTop;
197197

198198
/* Exception Table */
199+
__attribute__ ((used))
199200
__attribute__ ((section(".isr_vector"))) const DeviceVectors exception_table =
200201
{
201202
/* Configure Initial Stack Pointer, using linker-generated symbols */

0 commit comments

Comments
 (0)