summaryrefslogtreecommitdiff
path: root/arch/arm/boot/compressed/vmlinux.lds.S
diff options
context:
space:
mode:
authorRoy Franz <roy.franz@linaro.org>2015-09-23 20:17:54 -0700
committerard <ard.biesheuvel@linaro.org>2015-12-14 10:38:21 +0100
commit81a0bc39ea1960bbf8ece6a895d7cfd2d9efa28a (patch)
tree58f4c5c73cc4292b242dce2e0018511f9e18e39e /arch/arm/boot/compressed/vmlinux.lds.S
parentda58fb6571bf40e5b2287d6aa3bbca04965f5677 (diff)
ARM: add UEFI stub support
This patch adds EFI stub support for the ARM Linux kernel. The EFI stub operates similarly to the x86 and arm64 stubs: it is a shim between the EFI firmware and the normal zImage entry point, and sets up the environment that the zImage is expecting. This includes optionally loading the initrd and device tree from the system partition based on the kernel command line. Signed-off-by: Roy Franz <roy.franz@linaro.org> Tested-by: Ryan Harkin <ryan.harkin@linaro.org> Reviewed-by: Matt Fleming <matt@codeblueprint.co.uk> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'arch/arm/boot/compressed/vmlinux.lds.S')
-rw-r--r--arch/arm/boot/compressed/vmlinux.lds.S7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/boot/compressed/vmlinux.lds.S b/arch/arm/boot/compressed/vmlinux.lds.S
index 2b60b843ac5e..81c493156ce8 100644
--- a/arch/arm/boot/compressed/vmlinux.lds.S
+++ b/arch/arm/boot/compressed/vmlinux.lds.S
@@ -48,6 +48,13 @@ SECTIONS
*(.rodata)
*(.rodata.*)
}
+ .data : {
+ /*
+ * The EFI stub always executes from RAM, and runs strictly before the
+ * decompressor, so we can make an exception for its r/w data, and keep it
+ */
+ *(.data.efistub)
+ }
.piggydata : {
*(.piggydata)
}