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:
Łukasz Stępnicki
2025-10-24 13:33:13 +02:00
committed by Johan Hedberg
parent afa7b8c9e6
commit a825e014d8

View File

@@ -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.*))