https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89093
--- Comment #25 from Bernd Edlinger <bernd.edlinger at hotmail dot de> --- you might consider adding something like that to your patch: Index: elf.h =================================================================== --- elf.h (revision 268337) +++ elf.h (working copy) @@ -64,7 +64,7 @@ %{mapcs-*:-mapcs-%*} \ %(subtarget_asm_float_spec) \ %{mthumb-interwork:-mthumb-interwork} \ -%{mfloat-abi=*} %{!mfpu=auto: %{mfpu=*}} \ +%{mfloat-abi=*} %{!mfpu=auto: %{!mfpu=none: %{mfpu=*}}} \ %(subtarget_extra_asm_spec)" #endif otherwise using -mfpu=none won't work on the command line. becuse gas does not understand it.