Skip to content
Permalink
Browse files

arch: arm: cortex_m: Port some vector_relay linker code to Cmake

Sections before the vector table remain in linker.ld

Signed-off-by: Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
  • Loading branch information...
oyvindronningstad authored and nashif committed Mar 20, 2019
1 parent e4024e2 commit 1d3b6e7c9caf5cc2d574d0860550a17d6e3dad62
@@ -11,3 +11,8 @@ zephyr_library_sources(
nmi.c
exc_manage.c
)

zephyr_linker_sources_ifdef(CONFIG_SW_VECTOR_RELAY
RAM_SECTIONS
vt_pointer_section.ld
)
@@ -0,0 +1,8 @@
/* Copied from linker.ld */

/* Reserved 4 bytes to save vector table base address */
SECTION_PROLOGUE(.vt_pointer,(NOLOAD),)
{
*(.vt_pointer_section)
*(".vt_pointer_section.*")
}
@@ -324,15 +324,6 @@ SECTIONS
} GROUP_DATA_LINK_IN(RAMABLE_REGION, RAMABLE_REGION)
#endif

#if defined(CONFIG_SW_VECTOR_RELAY)
/* Reserved 4 bytes to save vector table base address */
SECTION_PROLOGUE(.vt_pointer,(NOLOAD),)
{
*(.vt_pointer_section)
*(".vt_pointer_section.*")
}
#endif

#ifdef CONFIG_COVERAGE_GCOV
SECTION_DATA_PROLOGUE(_GCOV_BSS_SECTION_NAME,(NOLOAD),)
{

0 comments on commit 1d3b6e7

Please sign in to comment.
You can’t perform that action at this time.