summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2012-06-25 17:46:04 +0000
committerGerrit <chrome-bot@google.com>2012-06-25 14:15:49 -0700
commitfaff1c6da61c293079bd4afb48ba465e1ad253b1 (patch)
tree4909c8c4511b0c9b81361a15b40cff2ba0587ffb /core
parent1105a28a8cada9cf3338cf933dcfe4f82f8a784a (diff)
downloadchrome-ec-faff1c6da61c293079bd4afb48ba465e1ad253b1.tar.gz
Align .data section in flash
When copying .data section from flash to internal RAM at startup, we assume the content of the section is aligned on a word size in flash. Force the alignment in the linker file. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BUG=chrome-os-partner:10823 TEST=on Link EVT, type "sysjump RO" in EC console and see you are jumping to RO partition and not getting a watchdog reset. Change-Id: I1a1387ef8bff01d287d85ee2a660811c9e4620c6 Reviewed-on: https://gerrit.chromium.org/gerrit/26032 Reviewed-by: Randall Spangler <rspangler@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Commit-Ready: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'core')
-rw-r--r--core/cortex-m/ec.lds.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/cortex-m/ec.lds.S b/core/cortex-m/ec.lds.S
index 2ef091e905..9bfd2aeac6 100644
--- a/core/cortex-m/ec.lds.S
+++ b/core/cortex-m/ec.lds.S
@@ -95,6 +95,7 @@ SECTIONS
. = ALIGN(64);
*(.google)
#endif
+ . = ALIGN(4);
#ifdef COMPILE_FOR_RAM
} > IRAM
#else