소스 검색

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.
Szabolcs Nagy 9 년 전
부모
커밋
7557a8462e
5개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/fenv/armhf/fenv.s
  2. 1 0
      src/math/armhf/fabs.s
  3. 1 0
      src/math/armhf/fabsf.s
  4. 1 0
      src/math/armhf/sqrt.s
  5. 1 0
      src/math/armhf/sqrtf.s

+ 2 - 0
src/fenv/armhf/fenv.s

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

+ 1 - 0
src/math/armhf/fabs.s

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

+ 1 - 0
src/math/armhf/fabsf.s

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

+ 1 - 0
src/math/armhf/sqrt.s

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

+ 1 - 0
src/math/armhf/sqrtf.s

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