linux/arch/arm64
Ard Biesheuvel c16173fa56 arm64/efi: efistub: cover entire static mem footprint in PE/COFF .text
The static memory footprint of a kernel Image at boot is larger than the
Image file itself. Things like .bss data and initial page tables are allocated
statically but populated dynamically so their content is not contained in the
Image file.

However, if EFI (or GRUB) has loaded the Image at precisely the desired offset
of base of DRAM + TEXT_OFFSET, the Image will be booted in place, and we have
to make sure that the allocation done by the PE/COFF loader is large enough.

Fix this by growing the PE/COFF .text section to cover the entire static
memory footprint. The part of the section that is not covered by the payload
will be zero initialised by the PE/COFF loader.

Acked-by: Mark Salter <msalter@redhat.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Leif Lindholm <leif.lindholm@linaro.org>
Tested-by: Leif Lindholm <leif.lindholm@linaro.org>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
2014-09-08 14:39:18 +01:00
..
boot dts: Add bindings for APM X-Gene SoC ethernet driver 2014-08-11 11:50:33 -07:00
configs arm64: configs: Enable X-Gene SATA and ethernet in defconfig 2014-08-19 19:26:09 +01:00
crypto arm64/crypto: remove redundant update of data 2014-08-26 11:42:22 +01:00
include arm64: add helper functions to read I-cache attributes 2014-09-08 14:39:18 +01:00
kernel arm64/efi: efistub: cover entire static mem footprint in PE/COFF .text 2014-09-08 14:39:18 +01:00
kvm arm/arm64: KVM: Complete WFI/WFE instructions 2014-08-29 11:53:53 +02:00
lib arm64: lib: Implement optimized string length routines 2014-05-23 15:17:12 +01:00
mm arm64: ignore DT memreserve entries when booting in UEFI mode 2014-08-19 20:22:03 +01:00
xen arm: xen: implement multicall hypercall support. 2014-04-24 13:09:46 +01:00
Kconfig lib/scatterlist: make ARCH_HAS_SG_CHAIN an actual Kconfig 2014-08-08 15:57:26 -07:00
Kconfig.debug arm64: Enable TEXT_OFFSET fuzzing 2014-07-10 12:36:58 +01:00
Makefile arm64: align randomized TEXT_OFFSET on 4 kB boundary 2014-08-19 19:26:09 +01:00