[rtems commit] bsps/riscv: Support RTEMS_NOINIT in linkcmds

Sebastian Huber sebh at rtems.org
Mon May 3 12:05:30 UTC 2021


Module:    rtems
Branch:    master
Commit:    eb7c33add034577701f73b184b6227c9d33aacee
Changeset: http://git.rtems.org/rtems/commit/?id=eb7c33add034577701f73b184b6227c9d33aacee

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon May  3 14:04:53 2021 +0200

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 3f52a31..e637049 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



More information about the vc mailing list