mips compat: don't bother with ELF_ET_DYN_BASE
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 14 Jun 2020 03:37:24 +0000 (23:37 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 6 Jan 2021 13:42:47 +0000 (08:42 -0500)
normal mips one is just fine - it's only used after we'd done
SET_PERSONALITY2() and by that point TASK_SIZE will yield the
right value

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/mips/include/asm/elf.h
arch/mips/kernel/binfmt_elfn32.c
arch/mips/kernel/binfmt_elfo32.c

index 71c7622025d12cfe564f795a046c58001a6b1164..d29e43e4f9b14f786075d80ee3243fb8ca2d1dbc 100644 (file)
@@ -469,9 +469,7 @@ extern const char *__elf_base_platform;
    the loader. We need to make sure that it is out of the way of the program
    that it will "exec", and that there is sufficient room for the brk. */
 
-#ifndef ELF_ET_DYN_BASE
 #define ELF_ET_DYN_BASE                (TASK_SIZE / 3 * 2)
-#endif
 
 /* update AT_VECTOR_SIZE_ARCH if the number of NEW_AUX_ENT entries changes */
 #define ARCH_DLINFO                                                    \
index 4c5544ae8fa4e116aca89d93979bf07d5d078a80..08bc05fd988265d304198a6c004b0bbdf48e2efd 100644 (file)
@@ -34,10 +34,6 @@ typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
  */
 #define elf_check_arch elfn32_check_arch
 
-#define TASK32_SIZE            0x7fff8000UL
-#undef ELF_ET_DYN_BASE
-#define ELF_ET_DYN_BASE                (TASK32_SIZE / 3 * 2)
-
 #include <asm/processor.h>
 #include <linux/elfcore.h>
 #include <linux/compat.h>
index 6ba7501e7079225d27a90548af993458527618e2..f5ee6b43b49c53dab8e42a71946067127821ad02 100644 (file)
@@ -34,14 +34,6 @@ typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
  */
 #define elf_check_arch elfo32_check_arch
 
-#ifdef CONFIG_KVM_GUEST
-#define TASK32_SIZE            0x3fff8000UL
-#else
-#define TASK32_SIZE            0x7fff8000UL
-#endif
-#undef ELF_ET_DYN_BASE
-#define ELF_ET_DYN_BASE                (TASK32_SIZE / 3 * 2)
-
 #include <asm/processor.h>
 
 #include <linux/elfcore.h>