diff --git a/0002-libffi-add-sw.patch b/0002-libffi-add-sw.patch index 5ef66f0b6a274a7e234535f3e980700a04d0990e..e7b162af2ed3c784e987bc280a051f4a82c19d13 100644 --- a/0002-libffi-add-sw.patch +++ b/0002-libffi-add-sw.patch @@ -429,10 +429,10 @@ index 0000000..7f14278 + return FFI_BAD_ABI; + + tramp = (unsigned int *) &closure->tramp[0]; -+ tramp[0] = 0x47fb0401; /* mov $27,$1 */ -+ tramp[1] = 0xa77b0010; /* ldq $27,16($27) */ -+ tramp[2] = 0x6bfb0000; /* jmp $31,($27),0 */ -+ tramp[3] = 0x47ff041f; /* nop */ ++ tramp[0] = 0x43fb0741; /* mov $27,$1 */ ++ tramp[1] = 0x8f7b0010; /* ldl $27,16($27) */ ++ tramp[2] = 0x0ffb0000; /* jmp $31,($27),0 */ ++ tramp[3] = 0x43ff075f; /* nop */ + *(void **) &tramp[4] = ffi_closure_osf; + + closure->cif = cif; diff --git a/libffi.spec b/libffi.spec index fdfc566be778c5ebee38496da4510ff5b05905ed..a80d5c7566b3ad76a34b39df5909bf4f37f51472 100644 --- a/libffi.spec +++ b/libffi.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.4 +%define anolis_release .0.5 %global multilib_arches %{ix86} ppc ppc64 ppc64p7 s390 s390x x86_64 @@ -149,6 +149,9 @@ fi %{_infodir}/libffi.info.gz %changelog +* Tue Apr 23 2024 wxiat - 3.1-23.0.5 +- Fixed a bug in code instrumentation + * Tue Jun 27 2023 wxiat - 3.1-23.0.4 - add sw patch