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 <furquan@google.com>
Reviewed-on: https://chromium-review.googlesource.com/216374
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Commit-Queue: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
Furquan Shaikh 2014-09-02 10:52:19 -07:00 committed by chrome-internal-fetch
commit fd43067047

View file

@ -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);