diff options
Diffstat (limited to 'arch/mips/Makefile')
| -rw-r--r-- | arch/mips/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 23cb94806fbc..58076472bdd8 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile | |||
| @@ -93,6 +93,15 @@ LDFLAGS_vmlinux += -G 0 -static -n -nostdlib | |||
| 93 | KBUILD_AFLAGS_MODULE += -mlong-calls | 93 | KBUILD_AFLAGS_MODULE += -mlong-calls |
| 94 | KBUILD_CFLAGS_MODULE += -mlong-calls | 94 | KBUILD_CFLAGS_MODULE += -mlong-calls |
| 95 | 95 | ||
| 96 | # | ||
| 97 | # pass -msoft-float to GAS if it supports it. However on newer binutils | ||
| 98 | # (specifically newer than 2.24.51.20140728) we then also need to explicitly | ||
| 99 | # set ".set hardfloat" in all files which manipulate floating point registers. | ||
| 100 | # | ||
| 101 | ifneq ($(call as-option,-Wa$(comma)-msoft-float,),) | ||
| 102 | cflags-y += -DGAS_HAS_SET_HARDFLOAT -Wa,-msoft-float | ||
| 103 | endif | ||
| 104 | |||
| 96 | cflags-y += -ffreestanding | 105 | cflags-y += -ffreestanding |
| 97 | 106 | ||
| 98 | # | 107 | # |
