Skip to content

Commit

Permalink
Merge pull request #338 from rlcamp/ltofix
Browse files Browse the repository at this point in the history
Prevent LTO from omitting the ISR vector table
  • Loading branch information
hathach authored Nov 15, 2022
2 parents 024eaa5 + 7ca484a commit 7812526
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cores/arduino/cortex_handlers.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ extern uint32_t __bss_end__;
extern uint32_t __StackTop;

/* Exception Table */
__attribute__ ((used))
__attribute__ ((section(".isr_vector"))) const DeviceVectors exception_table =
{
/* Configure Initial Stack Pointer, using linker-generated symbols */
Expand Down Expand Up @@ -407,6 +408,7 @@ extern uint32_t __bss_end__;
extern uint32_t __StackTop;

/* Exception Table */
__attribute__ ((used))
__attribute__ ((section(".isr_vector"))) const DeviceVectors exception_table =
{
/* Configure Initial Stack Pointer, using linker-generated symbols */
Expand Down

0 comments on commit 7812526

Please sign in to comment.