]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
arm64: Revert "arm64: kaslr: fix breakage with CONFIG_MODVERSIONS=y"
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 6 Feb 2017 15:02:42 +0000 (15:02 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 23 Mar 2017 13:15:20 +0000 (13:15 +0000)
This reverts commit 9c0e83c371cf4696926c95f9c8c77cd6ea803426, which
is no longer needed now that the modversions code plays nice with
relocatable PIE kernels.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/module.h

index 06ff7fd9e81feab27bb67f1a4af971ddc0ebf4cc..e12af6754634b3d2aa031ae23ce25228dc766cfb 100644 (file)
@@ -17,7 +17,6 @@
 #define __ASM_MODULE_H
 
 #include <asm-generic/module.h>
-#include <asm/memory.h>
 
 #define MODULE_ARCH_VERMAGIC   "aarch64"
 
@@ -33,10 +32,6 @@ u64 module_emit_plt_entry(struct module *mod, const Elf64_Rela *rela,
                          Elf64_Sym *sym);
 
 #ifdef CONFIG_RANDOMIZE_BASE
-#ifdef CONFIG_MODVERSIONS
-#define ARCH_RELOCATES_KCRCTAB
-#define reloc_start            (kimage_vaddr - KIMAGE_VADDR)
-#endif
 extern u64 module_alloc_base;
 #else
 #define module_alloc_base      ((u64)_etext - MODULES_VSIZE)