cannelloni: needs dynamic library
[buildroot-gz.git] / package / libffi / 0003-libffi-enable-hardfloat-in-the-MIPS-assembly-code.patch
blob776990df65afb177e15e86fae05be15dce341fb2
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
6 This way it will be possible to build it for soft-float. This is only a
7 temporary fix. The package needs to be fixed properly.
9 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
10 ---
11 src/mips/n32.S | 1 +
12 src/mips/o32.S | 1 +
13 2 files changed, 2 insertions(+)
15 diff --git a/src/mips/n32.S b/src/mips/n32.S
16 index c6985d3..dc842d5 100644
17 --- a/src/mips/n32.S
18 +++ b/src/mips/n32.S
19 @@ -44,6 +44,7 @@
20 .abicalls
21 #endif
22 .set mips4
23 + .set hardfloat
24 .text
25 .align 2
26 .globl ffi_call_N32
27 diff --git a/src/mips/o32.S b/src/mips/o32.S
28 index eb27981..b653daf 100644
29 --- a/src/mips/o32.S
30 +++ b/src/mips/o32.S
31 @@ -42,6 +42,7 @@
32 #define RA_OFF (SIZEOF_FRAME - 1 * FFI_SIZEOF_ARG)
34 .abicalls
35 + .set hardfloat
36 .text
37 .align 2
38 .globl ffi_call_O32
39 --
40 2.4.10