fix(firmware): prevent LTO from eliminating the ISR vector table (#7369)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
87f4db7867
commit
986926765c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user