summaryrefslogtreecommitdiff
path: root/src/lib/rmodule.ld
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2014-08-26 15:01:41 -0700
committerFurquan Shaikh <furquan@google.com>2014-09-23 22:27:10 +0200
commit9ceca503554ba585a49e298ff4b1d2e017c6ef5b (patch)
tree071c96d47eb2bcbd7bb0c50253337cc24a724de3 /src/lib/rmodule.ld
parentb237c108991c46f9ed67130b57828bef1b1f423a (diff)
downloadcoreboot-9ceca503554ba585a49e298ff4b1d2e017c6ef5b.tar.xz
rmodule: Fix rmodule.ld for 64-bit
Fix the alignment for 64-bit systems Change-Id: I7fcb1683d760b96307759b7d44d8770dd49a02e3 Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://chromium-review.googlesource.com/214326 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Commit-Queue: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/6953 Reviewed-by: Aaron Durbin <adurbin@google.com> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/lib/rmodule.ld')
-rw-r--r--src/lib/rmodule.ld10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/rmodule.ld b/src/lib/rmodule.ld
index 84323ce894..06458def18 100644
--- a/src/lib/rmodule.ld
+++ b/src/lib/rmodule.ld
@@ -30,26 +30,30 @@ SECTIONS
__CTOR_LIST__ = .;
*(.ctors);
LONG(0);
+ LONG(0);
__CTOR_END__ = .;
/* The driver sections are to allow linking coreboot's
* ramstage with the rmodule linker. Any changes made in
* ramstage.ld should be made here as well. */
+ . = ALIGN(8);
pci_drivers = . ;
*(.rodata.pci_driver)
epci_drivers = . ;
+ . = ALIGN(8);
cpu_drivers = . ;
*(.rodata.cpu_driver)
ecpu_drivers = . ;
+ . = ALIGN(8);
_bs_init_begin = .;
*(.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
@@ -63,7 +67,7 @@ SECTIONS
_sdata = .;
*(.data);
*(.data.*);
- . = ALIGN(4);
+ . = ALIGN(8);
_edata = .;
. = ALIGN(8);