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:
parent
c11c7287f5
commit
fd43067047
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue