ARM: decompressor: move GOT into .data for EFI enabled builds
authorArd Biesheuvel <ardb@kernel.org>
Mon, 13 Apr 2020 16:21:34 +0000 (18:21 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 19 May 2020 16:23:22 +0000 (18:23 +0200)
commit35d57d1215ed0da3349180275b845f0c2ee62d08
tree5fc4b10bd370d91fa1f3e6dfc36afdd88a857c3f
parentf1f012b033e6651cd5c5b43d1722976cf6baf973
ARM: decompressor: move GOT into .data for EFI enabled builds

We will be running the decompressor in place after a future patch,
instead of copying it around first. This means we no longer have to
disable and re-enable the MMU and caches either. However, this means
we will be loaded with the restricted permissions set by the UEFI
firmware, which means that we have to move the GOT table into the
data section in order for the contents to be writable by the code
itself.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Nicolas Pitre <nico@fluxnic.net>
arch/arm/boot/compressed/vmlinux.lds.S