mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 17:41:54 +00:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user