From ddd9b2178994cb46c1c8b65ff09b76a569fa11ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=B7=E5=90=8E=E9=93=B6?= <@kanghou-silver> Date: Tue, 23 Apr 2024 11:03:41 +0800 Subject: [PATCH] Fixed a bug in code instrumentation --- 0002-libffi-add-sw.patch | 8 ++++---- libffi.spec | 5 ++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/0002-libffi-add-sw.patch b/0002-libffi-add-sw.patch index 5ef66f0..e7b162a 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 fdfc566..a80d5c7 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 -- Gitee