powerpc/64: Make COMPAT user-selectable disabled on littleendian by default.
authorMichal Suchanek <msuchanek@suse.de>
Fri, 20 Mar 2020 10:20:17 +0000 (11:20 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 2 Apr 2020 13:10:00 +0000 (00:10 +1100)
On bigendian ppc64 it is common to have 32bit legacy binaries but much
less so on littleendian.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Reviewed-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/41393d6e895b0d3a47ee62f8f51e1cf888ad6226.1584699455.git.msuchanek@suse.de
arch/powerpc/Kconfig

index 497b7d0b2d7edf7cbefe4c1a86f678502c3fd8dc..29d00b3959b9c9e808daf5bdd9a265490a54f41a 100644 (file)
@@ -264,8 +264,9 @@ config PANIC_TIMEOUT
        default 180
 
 config COMPAT
-       bool
-       default y if PPC64
+       bool "Enable support for 32bit binaries"
+       depends on PPC64
+       default y if !CPU_LITTLE_ENDIAN
        select COMPAT_BINFMT_ELF
        select ARCH_WANT_OLD_COMPAT_IPC
        select COMPAT_OLD_SIGACTION