From: Christoph Hellwig Date: Mon, 10 Jul 2006 11:45:38 +0000 (-0700) Subject: [PATCH] disallow modular binfmt_elf32 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=289fbc21ea5ac445dfb4326090b1912387e849b5;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [PATCH] disallow modular binfmt_elf32 Currently most architectures either always build binfmt_elf32 in the kernel image or make it a boolean option. Only sparc64 and s390 allow to build it modularly. This patch turns the option into a boolean aswell because elf requires various symbols that shouldn't be available to modules. The most urgent one is tasklist_lock whos export this patch series kills, but there are others like force_sgi aswell. Note that sparc doesn't allow a modular 32bit a.out handler either, and that would be the more useful case as only few people want 32bit sunos compatibility and 99.9% of all sparc64 users need 32bit linux native elf support. Signed-off-by: Christoph Hellwig Acked-by: "David S. Miller" Cc: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index 224fbff7996..4dc9b2d14b9 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig @@ -119,7 +119,7 @@ config SYSVIPC_COMPAT default y config BINFMT_ELF32 - tristate "Kernel support for 31 bit ELF binaries" + bool "Kernel support for 31 bit ELF binaries" depends on COMPAT help This allows you to run 32-bit Linux/ELF binaries on your zSeries diff --git a/arch/sparc64/Kconfig b/arch/sparc64/Kconfig index a7a111db25b..8a36ba8868d 100644 --- a/arch/sparc64/Kconfig +++ b/arch/sparc64/Kconfig @@ -334,7 +334,7 @@ config COMPAT default y config BINFMT_ELF32 - tristate "Kernel support for 32-bit ELF binaries" + bool "Kernel support for 32-bit ELF binaries" depends on SPARC32_COMPAT help This allows you to run 32-bit Linux/ELF binaries on your Ultra.