From eb7c33add034577701f73b184b6227c9d33aacee Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 3 May 2021 14:04:53 +0200 Subject: bsps/riscv: Support RTEMS_NOINIT in linkcmds Update #3866. --- spec/build/bsps/riscv/linkcmdsbase.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/build/bsps/riscv/linkcmdsbase.yml b/spec/build/bsps/riscv/linkcmdsbase.yml index 3f52a3134a..e637049280 100644 --- a/spec/build/bsps/riscv/linkcmdsbase.yml +++ b/spec/build/bsps/riscv/linkcmdsbase.yml @@ -317,6 +317,13 @@ content: | } > REGION_RTEMSSTACK AT > REGION_RTEMSSTACK bsp_section_rtemsstack_size = bsp_section_rtemsstack_end - bsp_section_rtemsstack_begin; + .noinit (NOLOAD) : ${LINKCMDS_ALIGN_DIRECTIVE} { + bsp_section_noinit_begin = .; + *(.noinit*) + bsp_section_noinit_end = .; + } > REGION_WORK AT > REGION_WORK + bsp_section_noinit_size = bsp_section_noinit_end - bsp_section_noinit_begin; + .work (NOLOAD) : ${LINKCMDS_ALIGN_DIRECTIVE} { /* * The work section will occupy the remaining REGION_WORK region and -- cgit v1.2.3