[libffi/f21] Add patch to fix issues on aarch64 (rhbz 1174037)

Peter Robinson pbrobinson at fedoraproject.org
Thu Jan 15 03:11:21 UTC 2015


commit 4d6c708a331c532913723185ccaebe5541c3b1be
Author: Peter Robinson <pbrobinson at gmail.com>
Date:   Thu Jan 15 02:37:57 2015 +0000

    Add patch to fix issues on aarch64 (rhbz 1174037)

 libffi-aarch64-rhbz1174037.patch |   11 +++++++++++
 libffi.spec                      |    7 ++++++-
 2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/libffi-aarch64-rhbz1174037.patch b/libffi-aarch64-rhbz1174037.patch
new file mode 100644
index 0000000..dbf6308
--- /dev/null
+++ b/libffi-aarch64-rhbz1174037.patch
@@ -0,0 +1,11 @@
+--- libffi-3.1/src/aarch64/ffi.c.orig	2014-04-25 18:45:13.000000000 +0100
++++ libffi-3.1/src/aarch64/ffi.c	2015-01-15 02:36:56.314906455 +0000
+@@ -728,7 +728,7 @@
+ 	      state.ngrn = N_X_ARG_REG;
+ 
+ 	      memcpy (allocate_to_stack (&state, stack, ty->alignment,
+-					 ty->size), ecif->avalue + i, ty->size);
++					 ty->size), ecif->avalue[i], ty->size);
+ 	    }
+ 	  break;
+ 
diff --git a/libffi.spec b/libffi.spec
index a9f8a2c..b2df579 100644
--- a/libffi.spec
+++ b/libffi.spec
@@ -2,7 +2,7 @@
 
 Name:		libffi
 Version:	3.1
-Release:	6%{?dist}
+Release:	7%{?dist}
 Summary:	A portable foreign function interface library
 
 Group:		System Environment/Libraries
@@ -13,6 +13,7 @@ Source1:	ffi-multilib.h
 Source2:	ffitarget-multilib.h
 Patch0:		libffi-3.1-fix-include-path.patch
 Patch1:		libffi-3.1-fix-exec-stack.patch
+Patch2:		libffi-aarch64-rhbz1174037.patch
 
 %description
 Compilers for high level languages generate code that follow certain
@@ -59,6 +60,7 @@ developing applications that use %{name}.
 %setup -q
 %patch0 -p1 -b .fixpath
 %patch1 -p1 -b .execstack
+%patch2 -p1 -b .aarch64
 
 
 %build
@@ -120,6 +122,9 @@ fi
 %{_infodir}/libffi.info.gz
 
 %changelog
+* Thu Jan 15 2015 Peter Robinson <pbrobinson at fedoraproject.org> 3.1-7
+- Add patch to fix issues on aarch64 (rhbz 1174037)
+
 * Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.1-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 


More information about the scm-commits mailing list