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:
parent
b1026da300
commit
3925132456
3 changed files with 13 additions and 5 deletions
|
@ -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)
|
||||||
|
|
11
arch/arc/core/vector_table.ld
Normal file
11
arch/arc/core/vector_table.ld
Normal 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))
|
|
@ -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.*")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue