interrupts: use weak linkage instead of linkonce

.gnu.linkonce is an internal undocumented ld feature.
Just use __weak, which does the same thing we want.

This is only done for _sw_isr_table. _irq_vector_table
is left alone due to unwanted interactions between
__weak and the ld KEEP() directive.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2018-11-08 14:48:30 -08:00 committed by Anas Nashif
commit 140863f6a7
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@
/* Interrupts */
#define IRQ_VECTOR_TABLE .gnu.linkonce.irq_vector_table
#define SW_ISR_TABLE .gnu.linkonce.sw_isr_table
#define SW_ISR_TABLE .sw_isr_table
/* Architecture-specific sections */
#if defined(CONFIG_ARM)