m68knommu: allow elf_fdpic loader to be selected
authorGreg Ungerer <gerg@linux-m68k.org>
Wed, 27 Apr 2022 13:42:46 +0000 (23:42 +1000)
committerGreg Ungerer <gerg@linux-m68k.org>
Mon, 16 May 2022 03:18:30 +0000 (13:18 +1000)
The m68k architecture code is capable of supporting the binfmt_elf_fdpic
loader, so allow it to be configured. It is restricted to nommu
configurations at this time due to the MMU context structures/code not
supporting everything elf_fdpic needs when MMU is enabled.

Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
fs/Kconfig.binfmt

index 21c6332..fb325b3 100644 (file)
@@ -58,7 +58,7 @@ config ARCH_USE_GNU_PROPERTY
 config BINFMT_ELF_FDPIC
        bool "Kernel support for FDPIC ELF binaries"
        default y if !BINFMT_ELF
-       depends on (ARM || (SUPERH && !MMU))
+       depends on ARM || ((M68K || SUPERH) && !MMU)
        select ELFCORE
        help
          ELF FDPIC binaries are based on ELF, but allow the individual load