diff --git a/gmp-6.2.1-arm64-invert_limb.patch b/gmp-6.2.1-arm64-invert_limb.patch new file mode 100644 index 0000000..53e5afc --- /dev/null +++ b/gmp-6.2.1-arm64-invert_limb.patch @@ -0,0 +1,14 @@ +--- mpn/arm64/invert_limb.asm.orig 2020-12-09 08:22:02.101836933 +0100 ++++ mpn/arm64/invert_limb.asm 2020-12-09 08:22:55.774456637 +0100 +@@ -41,9 +41,9 @@ + ASM_START() + PROLOGUE(mpn_invert_limb) + lsr x2, x0, #54 +- LEA_HI( x1, approx_tab) ++ adrp x1, approx_tab + and x2, x2, #0x1fe +- LEA_LO( x1, approx_tab) ++ add x1, x1, :lo12:approx_tab + ldrh w3, [x1,x2] + lsr x4, x0, #24 + add x4, x4, #1 diff --git a/gmp.changes b/gmp.changes index 726453f..18bae67 100644 --- a/gmp.changes +++ b/gmp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Dec 9 07:24:19 UTC 2020 - Richard Biener + +- Add gmp-6.2.1-arm64-invert_limb.patch [bsc#1179751] + ------------------------------------------------------------------- Thu Dec 3 12:54:56 UTC 2020 - Andreas Stieger diff --git a/gmp.spec b/gmp.spec index 7dc7c15..63e940d 100644 --- a/gmp.spec +++ b/gmp.spec @@ -27,6 +27,8 @@ Source0: https://gmplib.org/download/%{name}/%{name}-%{version}.tar.xz Source1: https://gmplib.org/download/%{name}/%{name}-%{version}.tar.xz.sig Source2: %{name}.keyring Source3: baselibs.conf +# revert change causing bsc#1179751 +Patch1: gmp-6.2.1-arm64-invert_limb.patch BuildRequires: gcc-c++ BuildRequires: m4 BuildRequires: pkgconfig @@ -73,6 +75,7 @@ huge numbers (integer and floating point). %prep %setup -q +%patch1 -p0 %build export CFLAGS="%{optflags} -fexceptions"