From 06ef79a4176653df6f8169c93b2e50d1c41791b7 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 16 May 2016 20:39:36 -0400 Subject: [PATCH] libffi: Patch for building with clang on arm --- packages/libffi/src-arm-sysv.S.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 packages/libffi/src-arm-sysv.S.patch diff --git a/packages/libffi/src-arm-sysv.S.patch b/packages/libffi/src-arm-sysv.S.patch new file mode 100644 index 000000000..3ef602284 --- /dev/null +++ b/packages/libffi/src-arm-sysv.S.patch @@ -0,0 +1,17 @@ +Patch to allow building libffi using clang: + https://github.com/libffi/libffi/issues/191 + +Can be dropped after the next libffi release. + +diff -u -r ../libffi-3.2.1/src/arm/sysv.S ./src/arm/sysv.S +--- ../libffi-3.2.1/src/arm/sysv.S 2014-11-08 07:47:24.000000000 -0500 ++++ ./src/arm/sysv.S 2016-05-16 20:37:25.684302345 -0400 +@@ -396,7 +396,7 @@ + beq LSYM(Lepilogue_vfp) + + cmp r3, #FFI_TYPE_SINT64 +- stmeqia r2, {r0, r1} ++ stmiaeq r2, {r0, r1} + beq LSYM(Lepilogue_vfp) + + cmp r3, #FFI_TYPE_FLOAT