test: arm_irq_vector_table: Fix when !CONFIG_GEN_IRQ_VECTOR_TABLE

This test is based on the wrong assumption that the IRQ vector table
symbols are always placed by the linker script also when
CONFIG_GEN_IRQ_VECTOR_TABLE is not actually set.

This is of course broken with the reworked mechanism of the IRQ vector
table placement.

Fix the test by reintroducing the old behaviour by forcefully
reinstating the symbols in the linker script.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
Carlo Caione 2022-06-22 12:30:06 +02:00 committed by Carles Cufí
commit c817b2661f
2 changed files with 5 additions and 0 deletions

View file

@ -7,3 +7,5 @@ project(arm_irq_vector_table)
FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources})
zephyr_linker_sources(ROM_START SORT_KEY 0x0vectors irq-vector-table.ld)

View file

@ -0,0 +1,3 @@
/* SPDX-License-Identifier: Apache-2.0 */
KEEP(*(_IRQ_VECTOR_TABLE_SECTION_SYMS))