summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAseda Aboagye <aaboagye@google.com>2015-11-12 09:42:45 -0800
committerchrome-bot <chrome-bot@chromium.org>2015-11-12 16:13:51 -0800
commitfe3189a56f4e7a13f5a76c15b705122d1ccdc488 (patch)
tree7476f7d1905e14dcb0748fa2214332567163f9d9
parent3045fe2c4e6a90d67a98284e9a3db34784a3c408 (diff)
downloadchrome-ec-fe3189a56f4e7a13f5a76c15b705122d1ccdc488.tar.gz
cortex-m0: Ensure .bss.slow section is cleared.
The .bss.slow input section needs to be included before __bss_end, otherwise it won't get cleared to zero. BUG=None BRANCH=None TEST=Build jerry. Verify that __bss_end is at the end of the .bss.slow section. TEST=make -j buildall tests Change-Id: I41d028ee166d05b34a889499cdcb0254341be1b6 Signed-off-by: Aseda Aboagye <aaboagye@google.com> Reviewed-on: https://chromium-review.googlesource.com/312404 Commit-Ready: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r--core/cortex-m0/ec.lds.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/cortex-m0/ec.lds.S b/core/cortex-m0/ec.lds.S
index 4bf9865136..10f31953d8 100644
--- a/core/cortex-m0/ec.lds.S
+++ b/core/cortex-m0/ec.lds.S
@@ -181,6 +181,7 @@ SECTIONS
*(.bss.system_stack)
/* Rest of .bss takes care of its own alignment */
*(.bss)
+ *(.bss.slow)
. = ALIGN(4);
__bss_end = .;
} > IRAM