OSDN Git Service

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 387234b..c1ffd2e 100644 (file)
@@ -1,3 +1,5 @@
+.fpu vfp
+
 .global fegetround
 .type fegetround,%function
 fegetround:
index 2bdebff..8a705e1 100644 (file)
@@ -1,3 +1,4 @@
+.fpu vfp
 .text
 .global fabs
 .type   fabs,%function
index 35c720f..2c7beb6 100644 (file)
@@ -1,3 +1,4 @@
+.fpu vfp
 .text
 .global fabsf
 .type   fabsf,%function
index 99fe64b..90f74a9 100644 (file)
@@ -1,3 +1,4 @@
+.fpu vfp
 .text
 .global sqrt
 .type   sqrt,%function
index 9ea519f..91d8ad6 100644 (file)
@@ -1,3 +1,4 @@
+.fpu vfp
 .text
 .global sqrtf
 .type   sqrtf,%function