From fd430670470d12d54ad656cdaea51ab8531128a4 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Tue, 2 Sep 2014 10:52:19 -0700 Subject: [PATCH] rmodule: Align module_params to 8-byte Required for arm64 platforms: rmodules used for arm64 require module_params and rodata to be placed at 8-byte boundary in order to avoid unaligned access. BUG=chrome-os-partner:30785 BRANCH=None TEST=Compiles successfully and address verified during boot Change-Id: I4820efad2b408ebd3930943f7771805a7bbb62e9 Signed-off-by: Furquan Shaikh Reviewed-on: https://chromium-review.googlesource.com/216374 Tested-by: Furquan Shaikh Reviewed-by: Aaron Durbin Commit-Queue: Furquan Shaikh --- src/lib/rmodule.ld | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/rmodule.ld b/src/lib/rmodule.ld index 009caa6835..f27f61c313 100644 --- a/src/lib/rmodule.ld +++ b/src/lib/rmodule.ld @@ -53,11 +53,11 @@ SECTIONS *(.bs_init) _bs_init_end = .; - . = ALIGN(4); + . = ALIGN(8); *(.rodata); *(.rodata.*); - . = ALIGN(4); + . = ALIGN(8); /* The parameters section can be used to pass parameters * to a module, however there has to be an prior agreement @@ -71,7 +71,7 @@ SECTIONS _sdata = .; *(.data); *(.data.*); - . = ALIGN(4); + . = ALIGN(8); _edata = .; . = ALIGN(8);