[PATCH 2/3] bsps: Support .rtemsstack.* linker input sections
Sebastian Huber
sebastian.huber at embedded-brains.de
Tue Jun 19 13:30:40 UTC 2018
Update #3459.
---
bsps/arm/include/bsp/linker-symbols.h | 2 ++
bsps/arm/shared/start/linkcmds.base | 5 +++++
bsps/sparc/shared/start/linkcmds.base | 3 +++
3 files changed, 10 insertions(+)
diff --git a/bsps/arm/include/bsp/linker-symbols.h b/bsps/arm/include/bsp/linker-symbols.h
index 1a996f51f2..ce298b2def 100644
--- a/bsps/arm/include/bsp/linker-symbols.h
+++ b/bsps/arm/include/bsp/linker-symbols.h
@@ -67,6 +67,8 @@ LINKER_SYMBOL(bsp_stack_svc_begin)
LINKER_SYMBOL(bsp_stack_svc_end)
LINKER_SYMBOL(bsp_stack_svc_size)
+LINKER_SYMBOL(bsp_rtemsstack_interrupt_end)
+
LINKER_SYMBOL(bsp_section_start_begin)
LINKER_SYMBOL(bsp_section_start_end)
LINKER_SYMBOL(bsp_section_start_size)
diff --git a/bsps/arm/shared/start/linkcmds.base b/bsps/arm/shared/start/linkcmds.base
index c6314547eb..0d4deaf2c2 100644
--- a/bsps/arm/shared/start/linkcmds.base
+++ b/bsps/arm/shared/start/linkcmds.base
@@ -335,6 +335,11 @@ SECTIONS {
bsp_stack_secondary_processors_end = .;
*(.bsp_vector)
+ } > REGION_VECTOR AT > REGION_VECTOR
+ .rtemsstack (NOLOAD) : {
+ *(.rtemsstack.interrupt)
+ bsp_rtemsstack_interrupt_end = .;
+ *(.rtemsstack.*)
bsp_section_vector_end = .;
} > REGION_VECTOR AT > REGION_VECTOR
bsp_section_vector_size = bsp_section_vector_end - bsp_section_vector_begin;
diff --git a/bsps/sparc/shared/start/linkcmds.base b/bsps/sparc/shared/start/linkcmds.base
index 4c7750dfe0..77cc2a8d5d 100644
--- a/bsps/sparc/shared/start/linkcmds.base
+++ b/bsps/sparc/shared/start/linkcmds.base
@@ -154,6 +154,9 @@ SECTIONS
*(.rela.rtemsroset*)
*(.rela.rtemsrwset*)
} >ram
+ .rtemsstack (NOLOAD) : {
+ *(.rtemsstack.*)
+ } > ram
.data :
{
data_start = .;
--
2.13.7
More information about the devel
mailing list