arch: arm, arm64: Disable swi_tables.ld file when not required

This commit removes the need of swi_tables.ld file if the
ISR table generator is not configured to use it.

Signed-off-by: Radosław Koppel <radoslaw.koppel@nordicsemi.no>
This commit is contained in:
Radoslaw Koppel 2024-02-05 10:28:06 +01:00 committed by Henrik Brix Andersen
parent e90613efb2
commit adaacefc20
4 changed files with 4 additions and 4 deletions

View file

@ -3,6 +3,6 @@
*
* SPDX-License-Identifier: Apache-2.0
*/
#if LINKER_ZEPHYR_FINAL
#if LINKER_ZEPHYR_FINAL && defined(CONFIG_ISR_TABLES_LOCAL_DECLARATION)
INCLUDE zephyr/isr_tables_swi.ld
#endif

View file

@ -51,7 +51,7 @@ _vector_start = .;
KEEP(*(.exc_vector_table))
KEEP(*(".exc_vector_table.*"))
#if LINKER_ZEPHYR_FINAL && CONFIG_ISR_TABLES_LOCAL_DECLARATION
#if LINKER_ZEPHYR_FINAL && defined(CONFIG_ISR_TABLES_LOCAL_DECLARATION)
INCLUDE zephyr/isr_tables_vt.ld
#else
KEEP(*(.vectors))

View file

@ -3,6 +3,6 @@
*
* SPDX-License-Identifier: Apache-2.0
*/
#if LINKER_ZEPHYR_FINAL
#if LINKER_ZEPHYR_FINAL && defined(CONFIG_ISR_TABLES_LOCAL_DECLARATION)
INCLUDE zephyr/isr_tables_swi.ld
#endif

View file

@ -111,7 +111,7 @@ SECTIONS
KEEP(*(.exc_vector_table))
KEEP(*(".exc_vector_table.*"))
#if LINKER_ZEPHYR_FINAL && CONFIG_ISR_TABLES_LOCAL_DECLARATION
#if LINKER_ZEPHYR_FINAL && defined(CONFIG_ISR_TABLES_LOCAL_DECLARATION)
INCLUDE zephyr/isr_tables_vt.ld
#else
KEEP(*(.vectors))