arc: linker.ld: Port vector table to zephyr_linker_sources()

Place it in its own linker file snippet.

Signed-off-by: Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
This commit is contained in:
Øyvind Rønningstad 2019-11-29 09:22:13 +01:00 committed by Anas Nashif
commit 3925132456
3 changed files with 13 additions and 5 deletions

View file

@ -30,3 +30,5 @@ zephyr_library_sources_ifdef(CONFIG_ARC_CONNECT arc_smp.c)
add_subdirectory_ifdef(CONFIG_ARC_CORE_MPU mpu) add_subdirectory_ifdef(CONFIG_ARC_CORE_MPU mpu)
add_subdirectory_ifdef(CONFIG_ARC_SECURE_FIRMWARE secureshield) add_subdirectory_ifdef(CONFIG_ARC_SECURE_FIRMWARE secureshield)
zephyr_linker_sources(TEXT_START SORT_KEY 0x0vectors vector_table.ld)

View file

@ -0,0 +1,11 @@
/*
* Copyright (c) 2019 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
/* when !XIP, .text is in RAM, and vector table must be at its very start */
KEEP(*(.exc_vector_table))
KEEP(*(".exc_vector_table.*"))
KEEP(*(IRQ_VECTOR_TABLE))

View file

@ -91,11 +91,6 @@ SECTIONS {
* zephyr_linker_sources() Cmake function. * zephyr_linker_sources() Cmake function.
*/ */
#include <snippets-text-start.ld> #include <snippets-text-start.ld>
/* when !XIP, .text is in RAM, and vector table must be at its very start */
KEEP(*(.exc_vector_table))
KEEP(*(".exc_vector_table.*"))
KEEP(*(IRQ_VECTOR_TABLE))
*(.text) *(.text)
*(".text.*") *(".text.*")