diff options
author | Vic Yang <victoryang@chromium.org> | 2012-06-26 12:12:11 +0800 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-06-27 21:22:17 -0700 |
commit | a6e24f1672c908f3c2f2a2e5050975b3dfef5986 (patch) | |
tree | fb6447ca300dd3696e3bc3edc228c0287bda87e0 /core | |
parent | 0e261504aa6b835ea922e7ccb9511503c2527d84 (diff) | |
download | chrome-ec-a6e24f1672c908f3c2f2a2e5050975b3dfef5986.tar.gz |
Add an option flag to intentionally shift binary code
We need a simple way to build an EC image that is binary-wise much
different from the original one, so that we can test EC update as much
thoroughly as possible. By padding useless space, we can have an image
with exactly same functionality but binary-wise different.
BUG=chrome-os-partner:10264
TEST=Build and run without error.
Change-Id: I070bec7cec71db1662238ca6af10e864c82ba428
Reviewed-on: https://gerrit.chromium.org/gerrit/26083
Reviewed-by: Yung-Chieh Lo <yjlou%chromium.org@gtempaccount.com>
Tested-by: Vic Yang <victoryang@chromium.org>
Commit-Ready: Vic Yang <victoryang@chromium.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/cortex-m/ec.lds.S | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/cortex-m/ec.lds.S b/core/cortex-m/ec.lds.S index 9bfd2aeac6..53c5960045 100644 --- a/core/cortex-m/ec.lds.S +++ b/core/cortex-m/ec.lds.S @@ -26,7 +26,11 @@ SECTIONS . = ALIGN(4); __version_struct_offset = .; *(.rodata.ver) +#ifdef SHIFT_CODE_FOR_TEST + . = ALIGN(256); +#else . = ALIGN(4); +#endif OUTDIR/core/CORE/init.o (.text) *(.text*) #ifdef COMPILE_FOR_RAM |