]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Avoid FP ELF checks when CONFIG_MIPS_FP_SUPPORT=n
authorPaul Burton <paul.burton@mips.com>
Wed, 7 Nov 2018 23:14:09 +0000 (23:14 +0000)
committerPaul Burton <paul.burton@mips.com>
Fri, 9 Nov 2018 18:23:18 +0000 (10:23 -0800)
commitee69c9d6717c46b413780544d8f0ee78a18ac4de
tree8a374d55b08308d32052936e3d30496d21da6acf
parent25db5e44d5f764ba3a8cc0838ab0383fc0a7046a
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
arch/mips/Kconfig
arch/mips/include/asm/elf.h
arch/mips/kernel/elf.c