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

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to