diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2012-06-25 17:46:04 +0000 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-06-25 14:15:49 -0700 |
commit | faff1c6da61c293079bd4afb48ba465e1ad253b1 (patch) | |
tree | 4909c8c4511b0c9b81361a15b40cff2ba0587ffb | |
parent | 1105a28a8cada9cf3338cf933dcfe4f82f8a784a (diff) | |
download | chrome-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>
-rw-r--r-- | core/cortex-m/ec.lds.S | 1 |
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 |