From: Sami Tolvanen Date: Fri, 10 Nov 2017 22:00:24 +0000 (-0800) Subject: FROMLIST: arm64: disable RANDOMIZE_MODULE_REGION_FULL with LTO_CLANG X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=10dd8c281cb5adabef002984d6d5fe48fee6f2d2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git FROMLIST: arm64: disable RANDOMIZE_MODULE_REGION_FULL with LTO_CLANG RANDOMIZE_MODULE_REGION_FULL results in "overflow in relocation type 275" when loading a module linked with GNU gold. As a workaround, disable when LTO_CLANG is selected. Bug: 62093296 Bug: 67506682 Change-Id: I6af3de0dc2e6a5053c527d7cb7fb45cb249b68b3 (am from https://patchwork.kernel.org/patch/10060337/) Signed-off-by: Sami Tolvanen --- diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 4126a91a48f4..3d8edf2bfb8c 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -1047,7 +1047,7 @@ config RANDOMIZE_BASE config RANDOMIZE_MODULE_REGION_FULL bool "Randomize the module region independently from the core kernel" - depends on RANDOMIZE_BASE + depends on RANDOMIZE_BASE && !LTO_CLANG default y help Randomizes the location of the module region without considering the