summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHesham Almatary <Hesham.Almatary@cl.cam.ac.uk>2019-10-23 12:50:55 +0100
committerHesham Almatary <Hesham.Almatary@cl.cam.ac.uk>2019-10-27 10:45:14 +0000
commit7f0c41c759eae0fcf5ecd652e966f4db9cfae819 (patch)
treee4e20c8958f7621185b215cbd90478e20a584f2f
parentriscv: Address differences in the linkerscript between GNU LD and LLVM/LLD (diff)
downloadrtems-7f0c41c759eae0fcf5ecd652e966f4db9cfae819.tar.bz2
riscv: Add NOLOAD directive to the .work section
ld.lld defaults .work to PROGBITS otherwise
-rw-r--r--bsps/riscv/shared/start/linkcmds.base.in2
1 files changed, 1 insertions, 1 deletions
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.