summaryrefslogtreecommitdiff
path: root/src/math
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2015-10-19 02:05:58 -0400
committerRich Felker <dalias@aerifal.cx>2015-10-19 02:05:58 -0400
commit7557a8462e3c973466ce082211520182f243dc2a (patch)
treea08dcfbea329b904a81fffbf6380afe7154adbfe /src/math
parent53cd8c5a29b57ef3776ce152e00544752f3ce790 (diff)
downloadmusl-7557a8462e3c973466ce082211520182f243dc2a.tar.gz
musl-7557a8462e3c973466ce082211520182f243dc2a.tar.bz2
musl-7557a8462e3c973466ce082211520182f243dc2a.tar.xz
musl-7557a8462e3c973466ce082211520182f243dc2a.zip
declare fpu usage to the assembler in arm hard-float asm files
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.
Diffstat (limited to 'src/math')
-rw-r--r--src/math/armhf/fabs.s1
-rw-r--r--src/math/armhf/fabsf.s1
-rw-r--r--src/math/armhf/sqrt.s1
-rw-r--r--src/math/armhf/sqrtf.s1
4 files changed, 4 insertions, 0 deletions
diff --git a/src/math/armhf/fabs.s b/src/math/armhf/fabs.s
index 2bdebff5..8a705e1b 100644
--- a/src/math/armhf/fabs.s
+++ b/src/math/armhf/fabs.s
@@ -1,3 +1,4 @@
+.fpu vfp
.text
.global fabs
.type fabs,%function
diff --git a/src/math/armhf/fabsf.s b/src/math/armhf/fabsf.s
index 35c720fa..2c7beb6c 100644
--- a/src/math/armhf/fabsf.s
+++ b/src/math/armhf/fabsf.s
@@ -1,3 +1,4 @@
+.fpu vfp
.text
.global fabsf
.type fabsf,%function
diff --git a/src/math/armhf/sqrt.s b/src/math/armhf/sqrt.s
index 99fe64b9..90f74a92 100644
--- a/src/math/armhf/sqrt.s
+++ b/src/math/armhf/sqrt.s
@@ -1,3 +1,4 @@
+.fpu vfp
.text
.global sqrt
.type sqrt,%function
diff --git a/src/math/armhf/sqrtf.s b/src/math/armhf/sqrtf.s
index 9ea519f6..91d8ad6d 100644
--- a/src/math/armhf/sqrtf.s
+++ b/src/math/armhf/sqrtf.s
@@ -1,3 +1,4 @@
+.fpu vfp
.text
.global sqrtf
.type sqrtf,%function