-
- Downloads
MIPS: Fix build with binutils 2.24.51+
Starting with version 2.24.51.20140728 MIPS binutils complain loudly about mixing soft-float and hard-float object files, leading to this build failure since GCC is invoked with "-msoft-float" on MIPS: {standard input}: Warning: .gnu_attribute 4,3 requires `softfloat' LD arch/mips/alchemy/common/built-in.o mipsel-softfloat-linux-gnu-ld: Warning: arch/mips/alchemy/common/built-in.o uses -msoft-float (set by arch/mips/alchemy/common/prom.o), arch/mips/alchemy/common/sleeper.o uses -mhard-float To fix this, we detect if GAS is new enough to support "-msoft-float" command option, and if it does, we can let GCC pass it to GAS; but then we also need to sprinkle the files which make use of floating point registers with the necessary ".set hardfloat" directives. Signed-off-by:Manuel Lauss <manuel.lauss@gmail.com> Cc: Linux-MIPS <linux-mips@linux-mips.org> Cc: Matthew Fortune <Matthew.Fortune@imgtec.com> Cc: Markos Chandras <Markos.Chandras@imgtec.com> Cc: Maciej W. Rozycki <macro@linux-mips.org> Patchwork: https://patchwork.linux-mips.org/patch/8355/ Signed-off-by:
Ralf Baechle <ralf@linux-mips.org>
Showing
- arch/mips/Makefile 9 additions, 0 deletionsarch/mips/Makefile
- arch/mips/include/asm/asmmacro-32.h 6 additions, 0 deletionsarch/mips/include/asm/asmmacro-32.h
- arch/mips/include/asm/asmmacro.h 18 additions, 0 deletionsarch/mips/include/asm/asmmacro.h
- arch/mips/include/asm/fpregdef.h 14 additions, 0 deletionsarch/mips/include/asm/fpregdef.h
- arch/mips/include/asm/fpu.h 2 additions, 2 deletionsarch/mips/include/asm/fpu.h
- arch/mips/include/asm/mipsregs.h 10 additions, 1 deletionarch/mips/include/asm/mipsregs.h
- arch/mips/kernel/branch.c 2 additions, 6 deletionsarch/mips/kernel/branch.c
- arch/mips/kernel/genex.S 1 addition, 0 deletionsarch/mips/kernel/genex.S
- arch/mips/kernel/r2300_fpu.S 6 additions, 0 deletionsarch/mips/kernel/r2300_fpu.S
- arch/mips/kernel/r2300_switch.S 5 additions, 0 deletionsarch/mips/kernel/r2300_switch.S
- arch/mips/kernel/r4k_fpu.S 25 additions, 2 deletionsarch/mips/kernel/r4k_fpu.S
- arch/mips/kernel/r4k_switch.S 14 additions, 1 deletionarch/mips/kernel/r4k_switch.S
- arch/mips/kernel/r6000_fpu.S 5 additions, 0 deletionsarch/mips/kernel/r6000_fpu.S
- arch/mips/math-emu/cp1emu.c 1 addition, 5 deletionsarch/mips/math-emu/cp1emu.c
Loading
Please register or sign in to comment