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.
This commit is contained in:
Szabolcs Nagy 2015-10-19 02:05:58 -04:00 committed by Rich Felker
parent 53cd8c5a29
commit 7557a8462e
5 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,5 @@
.fpu vfp
.global fegetround
.type fegetround,%function
fegetround:

View File

@ -1,3 +1,4 @@
.fpu vfp
.text
.global fabs
.type fabs,%function

View File

@ -1,3 +1,4 @@
.fpu vfp
.text
.global fabsf
.type fabsf,%function

View File

@ -1,3 +1,4 @@
.fpu vfp
.text
.global sqrt
.type sqrt,%function

View File

@ -1,3 +1,4 @@
.fpu vfp
.text
.global sqrtf
.type sqrtf,%function