diff --git a/fix-AARCH64EB-support.patch b/fix-AARCH64EB-support.patch new file mode 100644 index 0000000000000000000000000000000000000000..93bfbdd464dd9de45e557d78bc393cebe2a5b1bc --- /dev/null +++ b/fix-AARCH64EB-support.patch @@ -0,0 +1,28 @@ +From f34e5ab850b1d1d3cceedd6e409a07a051f5ee55 Mon Sep 17 00:00:00 2001 +From: Xin Shi +Date: Thu, 25 May 2023 14:38:06 +0800 +Subject: [PATCH] fix AARCH64EB support + +Signed-off-by: Xin Shi +--- + src/aarch64/ffi.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/aarch64/ffi.c b/src/aarch64/ffi.c +index 6544ac0..0111aa6 100644 +--- a/src/aarch64/ffi.c ++++ b/src/aarch64/ffi.c +@@ -758,6 +758,10 @@ ffi_call_int (ffi_cif *cif, void (*fn)(void), void *orig_rvalue, + } + state.nsrn = N_V_ARG_REG; + dest = allocate_to_stack (&state, stack, ty->alignment, s); ++#ifdef __AARCH64EB__ ++ if (t == FFI_TYPE_FLOAT) ++ dest = dest + 4; ++#endif + } + } + else if (s > 16) +-- +2.27.0 + diff --git a/libffi.spec b/libffi.spec index 1502a034a1bbeb595a75626420a6e959f1f5461e..cbc288d7f21c5a1a3bb487148d6c6484d448d65a 100644 --- a/libffi.spec +++ b/libffi.spec @@ -1,6 +1,6 @@ Name: libffi Version: 3.4.4 -Release: 2 +Release: 3 Summary: A Portable Foreign Function Interface Library License: MIT URL: http://sourceware.org/libffi @@ -9,6 +9,7 @@ Source1: ffi-multilib.h Source2: ffitarget-multilib.h Patch0: backport-Fix-signed-vs-unsigned-comparison.patch +Patch1: fix-AARCH64EB-support.patch BuildRequires: gcc gcc-c++ dejagnu BuildRequires: make @@ -54,6 +55,7 @@ The help package contains man files. %prep %setup -q %patch0 -p1 +%patch1 -p1 %build %configure \ @@ -97,6 +99,12 @@ fi %{_infodir}/libffi.info.gz %changelog +* Thu May 25 2023 shixin - 3.4.4-3 +- Type:bugfix +- ID:NA +- SUG:NA +- DSEC:Fix AARCH64EB support + * Thu Mar 23 2023 fuanan -3.4.4-2 - backport patches from upstream