From 58abf3bc741dd735cb7570fb151cfc1a63eb8e33 Mon Sep 17 00:00:00 2001 From: Nils Andreas Svee Date: Tue, 19 Dec 2017 16:04:38 +0100 Subject: main/libffi: add patch fixing compilation issue with mips softfloat Taken from upstream: https://github.com/libffi/libffi/commit/7a0d2c83bf2b0422e2d0ed297f847fc1eeb88bb3 --- main/libffi/APKBUILD | 4 +- main/libffi/mips-softfloat.patch | 158 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 161 insertions(+), 1 deletion(-) create mode 100644 main/libffi/mips-softfloat.patch (limited to 'main/libffi') diff --git a/main/libffi/APKBUILD b/main/libffi/APKBUILD index 24125f7706..a9a767a60a 100644 --- a/main/libffi/APKBUILD +++ b/main/libffi/APKBUILD @@ -16,6 +16,7 @@ source="ftp://sourceware.org/pub/$pkgname/$pkgname-$pkgver.tar.gz gnu-linux-define.patch pax-dlmmap.patch use-stdc-compatible-linux-define.patch + mips-softfloat.patch " builddir="$srcdir"/$pkgname-$pkgver @@ -48,4 +49,5 @@ package() { sha512sums="980ca30a8d76f963fca722432b1fe5af77d7a4e4d2eac5144fbc5374d4c596609a293440573f4294207e1bdd9fda80ad1e1cafb2ffb543df5a275bc3bd546483 libffi-3.2.1.tar.gz 264af568ae5388d50f647f891a406945c73cc358692266f65ad341787c0bf5f6bf31203b86c39fa1b338101c1a6d2f4fec60f95a90d379951ff5153f8f9e178f gnu-linux-define.patch 72486b389db16055ae4d7d33ba0cb05840537e28fe7a86aa89e2cb922592125d99c18c26c5df7ffde6282742e79f2b9126353e58b58f091f0486589e14dd6474 pax-dlmmap.patch -d15aaf7ecf6fe7a1532695a515a496d462c3930a50ec3e2a019713ecfc810a112250563c41f018834323f201f1c814e7c94d296f167706af300907264ee80924 use-stdc-compatible-linux-define.patch" +d15aaf7ecf6fe7a1532695a515a496d462c3930a50ec3e2a019713ecfc810a112250563c41f018834323f201f1c814e7c94d296f167706af300907264ee80924 use-stdc-compatible-linux-define.patch +e306a6cf0a3084e0ab519c291b70c57ab6d62d20879c224860d9a8969015877077b5180607fd407d8b80a0d2ce28239fc5f899a64305554eb7cf2f1f0792ce95 mips-softfloat.patch" diff --git a/main/libffi/mips-softfloat.patch b/main/libffi/mips-softfloat.patch new file mode 100644 index 0000000000..bf2ac5d34d --- /dev/null +++ b/main/libffi/mips-softfloat.patch @@ -0,0 +1,158 @@ +diff --git a/src/mips/n32.S b/src/mips/n32.S +index b402c88c..edc6905c 100644 +--- a/src/mips/n32.S ++++ b/src/mips/n32.S +@@ -112,6 +112,16 @@ loadregs: + + REG_L t6, 3*FFI_SIZEOF_ARG($fp) # load the flags word into t6. + ++#ifdef __mips_soft_float ++ REG_L a0, 0*FFI_SIZEOF_ARG(t9) ++ REG_L a1, 1*FFI_SIZEOF_ARG(t9) ++ REG_L a2, 2*FFI_SIZEOF_ARG(t9) ++ REG_L a3, 3*FFI_SIZEOF_ARG(t9) ++ REG_L a4, 4*FFI_SIZEOF_ARG(t9) ++ REG_L a5, 5*FFI_SIZEOF_ARG(t9) ++ REG_L a6, 6*FFI_SIZEOF_ARG(t9) ++ REG_L a7, 7*FFI_SIZEOF_ARG(t9) ++#else + and t4, t6, ((1<