0003-libffi-enable-hardfloat-in-the-MIPS-assembly-code.patch 1006 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From 48bc37fabbc685b1e3293055bd33ca66c619305e Mon Sep 17 00:00:00 2001
  2. From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
  3. Date: Wed, 13 Jan 2016 14:49:59 +0000
  4. Subject: [PATCH] libffi: enable hardfloat in the MIPS assembly code
  5. This way it will be possible to build it for soft-float. This is only a
  6. temporary fix. The package needs to be fixed properly.
  7. Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
  8. ---
  9. src/mips/n32.S | 1 +
  10. src/mips/o32.S | 1 +
  11. 2 files changed, 2 insertions(+)
  12. diff --git a/src/mips/n32.S b/src/mips/n32.S
  13. index c6985d3..dc842d5 100644
  14. --- a/src/mips/n32.S
  15. +++ b/src/mips/n32.S
  16. @@ -44,6 +44,7 @@
  17. .abicalls
  18. #endif
  19. .set mips4
  20. + .set hardfloat
  21. .text
  22. .align 2
  23. .globl ffi_call_N32
  24. diff --git a/src/mips/o32.S b/src/mips/o32.S
  25. index eb27981..b653daf 100644
  26. --- a/src/mips/o32.S
  27. +++ b/src/mips/o32.S
  28. @@ -42,6 +42,7 @@
  29. #define RA_OFF (SIZEOF_FRAME - 1 * FFI_SIZEOF_ARG)
  30. .abicalls
  31. + .set hardfloat
  32. .text
  33. .align 2
  34. .globl ffi_call_O32
  35. --
  36. 2.4.10