[rtems commit] bsps/aarch64: Support .noinit linker section

Sebastian Huber sebh at rtems.org
Mon Dec 13 07:21:24 UTC 2021


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Sat Dec 11 11:44:17 2021 +0100

bsps/aarch64: Support .noinit linker section

---

 bsps/aarch64/shared/start/linkcmds.base | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/bsps/aarch64/shared/start/linkcmds.base b/bsps/aarch64/shared/start/linkcmds.base
index a560b10..d3b5485 100644
--- a/bsps/aarch64/shared/start/linkcmds.base
+++ b/bsps/aarch64/shared/start/linkcmds.base
@@ -321,6 +321,13 @@ SECTIONS {
 	} > REGION_WORK AT > REGION_WORK
 	bsp_section_rtemsstack_size = bsp_section_rtemsstack_end - bsp_section_rtemsstack_begin;
 
+	.noinit (NOLOAD) : ALIGN_WITH_INPUT {
+		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 : ALIGN_WITH_INPUT {
 		/*
 		 * The work section will occupy the remaining REGION_WORK region and



More information about the vc mailing list