aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRick Chen <rick@andestech.com>2018-05-28 19:06:37 +0800
committerAndes <uboot@andestech.com>2018-05-29 14:43:12 +0800
commit6836adbe753b241499430812ec5ef41ba61bdd83 (patch)
treebd91c1e2b9d9b4624f0f232d4f659c6da97bfcec /arch
parent0979f7ce1eea73c80e6f858a803106660507d1e3 (diff)
downloadu-boot-6836adbe753b241499430812ec5ef41ba61bdd83.zip
u-boot-6836adbe753b241499430812ec5ef41ba61bdd83.tar.gz
u-boot-6836adbe753b241499430812ec5ef41ba61bdd83.tar.bz2
efi_loader: Enable RISC-V support
We have almost all pieces needed to support RISC-V UEFI binaries in place already. The only missing piece are ELF relocations for runtime code and data. This patch adds respective support in the linker script and the runtime relocation code. It also allows users to enable the EFI_LOADER configuration switch on RISC-V platforms. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/riscv/cpu/nx25/u-boot.lds16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/riscv/cpu/nx25/u-boot.lds b/arch/riscv/cpu/nx25/u-boot.lds
index 86ebc9f..c53829a 100644
--- a/arch/riscv/cpu/nx25/u-boot.lds
+++ b/arch/riscv/cpu/nx25/u-boot.lds
@@ -39,6 +39,22 @@ SECTIONS
. = ALIGN(4);
+ .efi_runtime : {
+ __efi_runtime_start = .;
+ *(efi_runtime_text)
+ *(efi_runtime_data)
+ __efi_runtime_stop = .;
+ }
+
+ .efi_runtime_rel : {
+ __efi_runtime_rel_start = .;
+ *(.relaefi_runtime_text)
+ *(.relaefi_runtime_data)
+ __efi_runtime_rel_stop = .;
+ }
+
+ . = ALIGN(4);
+
/DISCARD/ : { *(.rela.plt*) }
.rela.dyn : {
__rel_dyn_start = .;