summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/cortex-m/ec.lds.S6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/cortex-m/ec.lds.S b/core/cortex-m/ec.lds.S
index 1d759cf843..f4524682e1 100644
--- a/core/cortex-m/ec.lds.S
+++ b/core/cortex-m/ec.lds.S
@@ -455,7 +455,11 @@ SECTIONS
__dram_data_end = .;
} > DRAM
- .dram.bss : {
+ /*
+ * ld assigns correct attribute for .bss, but not for other .*.bss, we need
+ * an explicltly NOLOAD.
+ */
+ .dram.bss(NOLOAD) : {
. = ALIGN(4);
__dram_bss_start = .;
*(SORT(.dram.bss*))