Skip to content

Commit c376111

Browse files
pfeerickclaude
andcommitted
fix(firmware): prevent LTO from eliminating the ISR vector table (#7369)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 6641f83 commit c376111

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

radio/src/targets/common/arm/stm32/cortex_m_isr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121

2222
#define WEAK_DEFAULT __attribute__((weak,alias("Default_Handler")))
23-
#define ISR_VECTOR __attribute__((section(".isr_vector")))
23+
#define ISR_VECTOR __attribute__((section(".isr_vector"), used))
2424

2525
typedef void (*isr_t)(void);
2626
extern void* _estack;

0 commit comments

Comments
 (0)