riscv: Add NOLOAD directive to the .work section

ld.lld defaults .work to PROGBITS otherwise
This commit is contained in:
Hesham Almatary
2019-10-23 12:50:55 +01:00
parent f462bcbb0a
commit 7f0c41c759

View File

@@ -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.