From 7f0c41c759eae0fcf5ecd652e966f4db9cfae819 Mon Sep 17 00:00:00 2001 From: Hesham Almatary Date: Wed, 23 Oct 2019 12:50:55 +0100 Subject: riscv: Add NOLOAD directive to the .work section 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. -- cgit v1.2.3