diff --git a/arch/common/isr_tables.c b/arch/common/isr_tables.c index 6a8bf7dc92c..b1f96ea346c 100644 --- a/arch/common/isr_tables.c +++ b/arch/common/isr_tables.c @@ -48,7 +48,7 @@ u32_t __irq_vector_table _irq_vector_table[IRQ_TABLE_SIZE] = { * type and bypass the _sw_isr_table, then do not generate one. */ #ifdef CONFIG_GEN_SW_ISR_TABLE -struct _isr_table_entry __weak __sw_isr_table _sw_isr_table[IRQ_TABLE_SIZE] = { +struct _isr_table_entry __sw_isr_table _sw_isr_table[IRQ_TABLE_SIZE] = { [0 ...(IRQ_TABLE_SIZE - 1)] = {(void *)0x42, (void *)&_irq_spurious}, }; #endif diff --git a/include/linker/sections.h b/include/linker/sections.h index 9a351ccc6ca..eab9f39856a 100644 --- a/include/linker/sections.h +++ b/include/linker/sections.h @@ -46,7 +46,7 @@ /* Interrupts */ #define IRQ_VECTOR_TABLE .gnu.linkonce.irq_vector_table -#define SW_ISR_TABLE .sw_isr_table +#define SW_ISR_TABLE .gnu.linkonce.sw_isr_table /* Architecture-specific sections */ #if defined(CONFIG_ARM)