Skip to content

Commit 6e944ae

Browse files
hramrachmpe
authored andcommitted
powerpc/64: Make COMPAT user-selectable disabled on littleendian by default.
On bigendian ppc64 it is common to have 32bit legacy binaries but much less so on littleendian. Signed-off-by: Michal Suchanek <[email protected]> Reviewed-by: Christophe Leroy <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/41393d6e895b0d3a47ee62f8f51e1cf888ad6226.1584699455.git.msuchanek@suse.de
1 parent 0a7601b commit 6e944ae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arch/powerpc/Kconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,9 @@ config PANIC_TIMEOUT
264264
default 180
265265

266266
config COMPAT
267-
bool
268-
default y if PPC64
267+
bool "Enable support for 32bit binaries"
268+
depends on PPC64
269+
default y if !CPU_LITTLE_ENDIAN
269270
select COMPAT_BINFMT_ELF
270271
select ARCH_WANT_OLD_COMPAT_IPC
271272
select COMPAT_OLD_SIGACTION

0 commit comments

Comments
 (0)