From faff1c6da61c293079bd4afb48ba465e1ad253b1 Mon Sep 17 00:00:00 2001 From: Vincent Palatin Date: Mon, 25 Jun 2012 17:46:04 +0000 Subject: 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 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 Tested-by: Vincent Palatin Commit-Ready: Vincent Palatin --- core/cortex-m/ec.lds.S | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.1