arch: riscv: core: vector_table alignement fix
For RISCV vector table needs to be aligned depending on CONFIG_ARCH_IRQ_VECTOR_TABLE_ALIGN. This was missing when using LTO making issues when direct ISR were in use. Signed-off-by: Łukasz Stępnicki <lukasz.stepnicki@nordicsemi.no>
This commit is contained in:
committed by
Johan Hedberg
parent
afa7b8c9e6
commit
a825e014d8
@@ -6,6 +6,7 @@
|
||||
|
||||
#if LINKER_ZEPHYR_FINAL && defined(CONFIG_ISR_TABLES_LOCAL_DECLARATION)
|
||||
KEEP(*(.vectors.__start))
|
||||
. = ALIGN(CONFIG_ARCH_IRQ_VECTOR_TABLE_ALIGN);
|
||||
INCLUDE isr_tables_vt.ld
|
||||
#else
|
||||
KEEP(*(.vectors.*))
|
||||
|
||||
Reference in New Issue
Block a user