summaryrefslogtreecommitdiff
path: root/core/host/host_exe.lds
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2013-05-09 00:27:13 +0800
committerChromeBot <chrome-bot@google.com>2013-05-08 13:24:20 -0700
commit5df7913825f426935e3fabc1b03ddc9d66ac947e (patch)
tree1cde305d353d6661c1a377e4c9dbfd6430f98060 /core/host/host_exe.lds
parenta0bfc0c6698c01f722ed56bee8871f0620142db3 (diff)
downloadchrome-ec-5df7913825f426935e3fabc1b03ddc9d66ac947e.tar.gz
Fix host command in 64-bit executable
On 64-bit platform, arrays should be aligned to 8 bytes. Also, change the order of host_command fields so that it's packed on both 32-bit and 64-bit platforms. BUG=chrome-os-partner:19257 TEST=Pass all tests. Print out and check the content of host commands. BRANCH=None Change-Id: I350a903bc11562d6d205c402548942f8967b75a5 Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/50467
Diffstat (limited to 'core/host/host_exe.lds')
-rw-r--r--core/host/host_exe.lds6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/host/host_exe.lds b/core/host/host_exe.lds
index 46a5097d67..40d1001661 100644
--- a/core/host/host_exe.lds
+++ b/core/host/host_exe.lds
@@ -9,17 +9,17 @@ SECTIONS {
*(.rodata.irqprio)
__irqprio_end = .;
- . = ALIGN(4);
+ . = ALIGN(8);
__cmds = .;
*(SORT(.rodata.cmds*))
__cmds_end = .;
- . = ALIGN(4);
+ . = ALIGN(8);
__hcmds = .;
*(.rodata.hcmds)
__hcmds_end = .;
- . = ALIGN(4);
+ . = ALIGN(8);
__hooks_init = .;
*(.rodata.HOOK_INIT)
__hooks_init_end = .;