|
@@ -794,7 +794,7 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
|
|
|
* default mmap base, as well as whatever program they
|
|
|
* might try to exec. This is because the brk will
|
|
|
* follow the loader, and is not movable. */
|
|
|
-#if defined(CONFIG_X86) || defined(CONFIG_ARM)
|
|
|
+#ifdef CONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE
|
|
|
/* Memory randomization might have been switched off
|
|
|
* in runtime via sysctl.
|
|
|
* If that is the case, retain the original non-zero
|