linux/arch/arm64
Nick Desaulniers 57a88e44b5 arm64: link with -z norelro regardless of CONFIG_RELOCATABLE
commit 3b92fa7485 upstream.

With CONFIG_EXPERT=y, CONFIG_KASAN=y, CONFIG_RANDOMIZE_BASE=n,
CONFIG_RELOCATABLE=n, we observe the following failure when trying to
link the kernel image with LD=ld.lld:

error: section: .exit.data is not contiguous with other relro sections

ld.lld defaults to -z relro while ld.bfd defaults to -z norelro. This
was previously fixed, but only for CONFIG_RELOCATABLE=y.

Fixes: 3bbd3db864 ("arm64: relocatable: fix inconsistencies in linker script and options")
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20201016175339.2429280-1-ndesaulniers@google.com
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-01 12:01:02 +01:00
..
boot arm64: dts: zynqmp: Remove additional compatible string for i2c IPs 2020-10-29 09:58:00 +01:00
configs
crypto
include KVM: arm64: Assume write fault on S1PTW permission fault on instruction fetch 2020-10-01 13:18:25 +02:00
kernel arm64: Run ARCH_WORKAROUND_2 enabling code on all CPUs 2020-11-01 12:01:02 +01:00
kvm KVM: arm64: Assume write fault on S1PTW permission fault on instruction fetch 2020-10-01 13:18:25 +02:00
lib
mm arm64: acpi: Make apei_claim_sea() synchronise with APEI's irq work 2020-10-01 13:18:02 +02:00
net
xen
Kbuild
Kconfig
Kconfig.debug
Kconfig.platforms
Makefile arm64: link with -z norelro regardless of CONFIG_RELOCATABLE 2020-11-01 12:01:02 +01:00