From 715d6167e07a46f5bc37f42993c209450484bbe8 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 19 Jun 2018 15:10:36 +0200 Subject: bsps: Support .rtemsstack.* linker input sections Use a dedicated memory region or place it between the BSS and workspace. Update #3459. --- bsps/riscv/riscv_generic/start/linkcmds | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bsps/riscv') diff --git a/bsps/riscv/riscv_generic/start/linkcmds b/bsps/riscv/riscv_generic/start/linkcmds index 737ae75f32..9f71b66aa2 100644 --- a/bsps/riscv/riscv_generic/start/linkcmds +++ b/bsps/riscv/riscv_generic/start/linkcmds @@ -313,7 +313,7 @@ SECTIONS { } > REGION_HTIF AT > REGION_HTIF_LOAD -.rwbarrier : { + .rwbarrier : { . = ALIGN(8); . = ALIGN (bsp_section_rwbarrier_align); } > REGION_DATA AT > REGION_DATA @@ -347,6 +347,10 @@ SECTIONS { } > REGION_BSS AT > REGION_BSS bsp_section_bss_size = bsp_section_bss_end - bsp_section_bss_begin; + .rtemsstack (NOLOAD) : { + *(SORT(.rtemsstack.*)) + } > REGION_WORK AT > REGION_WORK + .work : { /* * The work section will occupy the remaining REGION_WORK region and -- cgit v1.2.3