Skip to content

Commit

Permalink
arch: arm, arm64: Disable swi_tables.ld file when not required
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rakons committed Feb 5, 2024
1 parent 1ff24b3 commit cbceff7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion arch/arm/core/swi_tables.ld
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion arch/arm/core/vector_table.ld
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/core/swi_tables.ld
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion include/zephyr/arch/arm64/scripts/linker.ld
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit cbceff7

Please sign in to comment.