[RFC PATCH 3/5] riscv: Add NOLOAD directive to the .work section

Hesham Almatary Hesham.Almatary at cl.cam.ac.uk
Wed Oct 23 13:44:11 UTC 2019


ld.lld defaults .work to PROGBITS otherwise
---
 bsps/riscv/shared/start/linkcmds.base.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bsps/riscv/shared/start/linkcmds.base.in b/bsps/riscv/shared/start/linkcmds.base.in
index 857bf2dabd..7d6a23cde0 100644
--- a/bsps/riscv/shared/start/linkcmds.base.in
+++ b/bsps/riscv/shared/start/linkcmds.base.in
@@ -314,7 +314,7 @@ SECTIONS {
 	} > REGION_RTEMSSTACK AT > REGION_RTEMSSTACK
 	bsp_section_rtemsstack_size = bsp_section_rtemsstack_end - bsp_section_rtemsstack_begin;
 
-	.work : @RISCV_LINKER_ALIGN_DIRECTIVE@ {
+	.work (NOLOAD) : @RISCV_LINKER_ALIGN_DIRECTIVE@ {
 		/*
 		 * The work section will occupy the remaining REGION_WORK region and
 		 * contains the RTEMS work space and heap.
-- 
2.17.1



More information about the devel mailing list