From 986926765c1e126e4eb3b96da84bf3c5d0db5959 Mon Sep 17 00:00:00 2001 From: Peter Feerick Date: Wed, 3 Jun 2026 13:36:02 +1000 Subject: [PATCH] fix(firmware): prevent LTO from eliminating the ISR vector table (#7369) Co-authored-by: Claude Sonnet 4.6 --- radio/src/targets/common/arm/stm32/cortex_m_isr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/targets/common/arm/stm32/cortex_m_isr.h b/radio/src/targets/common/arm/stm32/cortex_m_isr.h index f329813dc..62d601f4a 100644 --- a/radio/src/targets/common/arm/stm32/cortex_m_isr.h +++ b/radio/src/targets/common/arm/stm32/cortex_m_isr.h @@ -20,7 +20,7 @@ */ #define WEAK_DEFAULT __attribute__((weak,alias("Default_Handler"))) -#define ISR_VECTOR __attribute__((section(".isr_vector"))) +#define ISR_VECTOR __attribute__((section(".isr_vector"), used)) typedef void (*isr_t)(void); extern void* _estack;