]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: ELF: Set FP mode according to .MIPS.abiflags
authorPaul Burton <paul.burton@imgtec.com>
Thu, 11 Sep 2014 07:30:22 +0000 (08:30 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 24 Nov 2014 06:45:07 +0000 (07:45 +0100)
commit1f76a3fd97a94a132596702b4c882d157ab0b34c
tree8aba4b7cdc422b89f378bd38cf85aa266a322f64
parent0e1e686c53065cf3f7a97f4af5770d39e4e02c94
MIPS: ELF: Set FP mode according to .MIPS.abiflags

This patch reads the .MIPS.abiflags section when it is present, and sets
the FP mode of the task accordingly. Any loaded ELF files which do not
contain a .MIPS.abiflags section will continue to observe the previous
behaviour, that is FR=1 if EF_MIPS_FP64 is set else FR=0.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/7681/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/Kconfig
arch/mips/include/asm/elf.h
arch/mips/kernel/Makefile
arch/mips/kernel/elf.c [new file with mode: 0644]