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)
This commit is contained in:
Furquan Shaikh 2014-08-26 15:01:41 -07:00
parent b237c10899
commit 9ceca50355
1 changed files with 7 additions and 3 deletions

View File

@ -30,26 +30,30 @@ SECTIONS
__CTOR_LIST__ = .; __CTOR_LIST__ = .;
*(.ctors); *(.ctors);
LONG(0); LONG(0);
LONG(0);
__CTOR_END__ = .; __CTOR_END__ = .;
/* The driver sections are to allow linking coreboot's /* The driver sections are to allow linking coreboot's
* ramstage with the rmodule linker. Any changes made in * ramstage with the rmodule linker. Any changes made in
* ramstage.ld should be made here as well. */ * ramstage.ld should be made here as well. */
. = ALIGN(8);
pci_drivers = . ; pci_drivers = . ;
*(.rodata.pci_driver) *(.rodata.pci_driver)
epci_drivers = . ; epci_drivers = . ;
. = ALIGN(8);
cpu_drivers = . ; cpu_drivers = . ;
*(.rodata.cpu_driver) *(.rodata.cpu_driver)
ecpu_drivers = . ; ecpu_drivers = . ;
. = ALIGN(8);
_bs_init_begin = .; _bs_init_begin = .;
*(.bs_init) *(.bs_init)
_bs_init_end = .; _bs_init_end = .;
. = ALIGN(4); . = ALIGN(8);
*(.rodata); *(.rodata);
*(.rodata.*); *(.rodata.*);
. = ALIGN(4); . = ALIGN(8);
/* The parameters section can be used to pass parameters /* The parameters section can be used to pass parameters
* to a module, however there has to be an prior agreement * to a module, however there has to be an prior agreement
@ -63,7 +67,7 @@ SECTIONS
_sdata = .; _sdata = .;
*(.data); *(.data);
*(.data.*); *(.data.*);
. = ALIGN(4); . = ALIGN(8);
_edata = .; _edata = .;
. = ALIGN(8); . = ALIGN(8);