summaryrefslogtreecommitdiffstats
path: root/arch/mips/Kconfig
diff options
context:
space:
mode:
authorPaul Burton2018-11-08 00:14:09 +0100
committerPaul Burton2018-11-09 19:23:18 +0100
commitea6a37373f9aca4ecb98ea3a298fda57177ee6a5 (patch)
tree8a374d55b08308d32052936e3d30496d21da6acf /arch/mips/Kconfig
parentMIPS: signal: Remove FP context support when CONFIG_MIPS_FP_SUPPORT=n (diff)
downloadkernel-qcow2-linux-ea6a37373f9aca4ecb98ea3a298fda57177ee6a5.tar.gz
kernel-qcow2-linux-ea6a37373f9aca4ecb98ea3a298fda57177ee6a5.tar.xz
kernel-qcow2-linux-ea6a37373f9aca4ecb98ea3a298fda57177ee6a5.zip
MIPS: Avoid FP ELF checks when CONFIG_MIPS_FP_SUPPORT=n
When CONFIG_MIPS_FP_SUPPORT=n we don't support floating point, so we can avoid needless checks of ELF headers specifying the FP ABI or NaN encoding to use. Deselect CONFIG_ARCH_BINFMT_ELF_STATE in this case to avoid the need for our arch_elf_pt_proc() & arch_check_elf() functions, and stub out the mips_set_personality_nan() & mips_set_personality_fp() functions such that SET_PERSONALITY() doesn't need to worry about any of this. Signed-off-by: Paul Burton <paul.burton@mips.com> Patchwork: https://patchwork.linux-mips.org/patch/21011/ Cc: linux-mips@linux-mips.org
Diffstat (limited to 'arch/mips/Kconfig')
-rw-r--r--arch/mips/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 5ea3dc4770ed..378379c098c9 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -2,7 +2,7 @@
config MIPS
bool
default y
- select ARCH_BINFMT_ELF_STATE
+ select ARCH_BINFMT_ELF_STATE if MIPS_FP_SUPPORT
select ARCH_CLOCKSOURCE_DATA
select ARCH_DISCARD_MEMBLOCK
select ARCH_HAS_ELF_RANDOMIZE