]> Git Repo - linux.git/commitdiff
arm64: Only select ARM64_MODULE_PLTS if MODULES=y
authorCatalin Marinas <[email protected]>
Tue, 26 Jul 2016 17:16:55 +0000 (10:16 -0700)
committerCatalin Marinas <[email protected]>
Tue, 26 Jul 2016 23:20:32 +0000 (00:20 +0100)
Selecting CONFIG_RANDOMIZE_BASE=y and CONFIG_MODULES=n fails to build
the module PLTs support:

  CC      arch/arm64/kernel/module-plts.o
/work/Linux/linux-2.6-aarch64/arch/arm64/kernel/module-plts.c: In function ‘module_emit_plt_entry’:
/work/Linux/linux-2.6-aarch64/arch/arm64/kernel/module-plts.c:32:49: error: dereferencing pointer to incomplete type ‘struct module’

This patch selects ARM64_MODULE_PLTS conditionally only if MODULES is
enabled.

Fixes: f80fb3a3d508 ("arm64: add support for kernel ASLR")
Cc: <[email protected]> # 4.6+
Reported-by: Jeff Vander Stoep <[email protected]>
Acked-by: Ard Biesheuvel <[email protected]>
Acked-by: Mark Rutland <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
arch/arm64/Kconfig

index ac4746f454ed9265887228b6453ed31eeab04806..effc9f33ade0992ca8cdbf6c06ad065e62ef4605 100644 (file)
@@ -886,7 +886,7 @@ config RELOCATABLE
 
 config RANDOMIZE_BASE
        bool "Randomize the address of the kernel image"
-       select ARM64_MODULE_PLTS
+       select ARM64_MODULE_PLTS if MODULES
        select RELOCATABLE
        help
          Randomizes the virtual address at which the kernel image is
This page took 0.058441 seconds and 4 git commands to generate.