declare fpu usage to the assembler in arm hard-float asm files
authorSzabolcs Nagy <nsz@port70.net>
Mon, 19 Oct 2015 06:05:58 +0000 (02:05 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 19 Oct 2015 06:05:58 +0000 (02:05 -0400)
Some armhf gcc toolchains (built with --with-float=hard but without
--with-fpu=vfp*) do not pass -mfpu=vfp to the assembler and then
binutils rejects the UAL mnemonics for VFP unless there is an .fpu vfp
directive in the asm source.

src/fenv/armhf/fenv.s
src/math/armhf/fabs.s
src/math/armhf/fabsf.s
src/math/armhf/sqrt.s
src/math/armhf/sqrtf.s

index 387234bc2d012b14aef9ffc9d281067e7be049ad..c1ffd2e49ae24b429775f7442df21a4b7968c64a 100644 (file)
@@ -1,3 +1,5 @@
+.fpu vfp
+
 .global fegetround
 .type fegetround,%function
 fegetround:
index 2bdebff5aeff1825c291bac59b7fdbb58131aa5c..8a705e1baca09e544b4c69bd4f67a4f217f0623f 100644 (file)
@@ -1,3 +1,4 @@
+.fpu vfp
 .text
 .global fabs
 .type   fabs,%function
index 35c720fab81db08bbc5c03adef629a5e38a3e457..2c7beb6ca1e6c15884c6282cc13e07c62e52f304 100644 (file)
@@ -1,3 +1,4 @@
+.fpu vfp
 .text
 .global fabsf
 .type   fabsf,%function
index 99fe64b90b8439f6a16922e48e193cbb3a4cb7da..90f74a92b67a51d247b532ac4aca1a7c94490356 100644 (file)
@@ -1,3 +1,4 @@
+.fpu vfp
 .text
 .global sqrt
 .type   sqrt,%function
index 9ea519f600a1c70660022a5f26e74e0dff729192..91d8ad6db8c8cbe1387d04b777add93adb013124 100644 (file)
@@ -1,3 +1,4 @@
+.fpu vfp
 .text
 .global sqrtf
 .type   sqrtf,%function