!64 [sync] PR-63: fix support for riscv64
From: @openeuler-sync-bot Reviewed-by: @zhujianwei001 Signed-off-by: @zhujianwei001
This commit is contained in:
commit
99cc675fbd
@ -1,7 +1,7 @@
|
||||
Name: libunwind
|
||||
Epoch: 2
|
||||
Version: 1.7.2
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: Libunwind provides a C ABI to determine the call-chain of a program
|
||||
License: BSD
|
||||
URL: http://savannah.nongnu.org/projects/libunwind
|
||||
@ -11,6 +11,7 @@ Patch1: 0001-fix-byte_order_is_valid-function-logic.patch
|
||||
Patch2: backport-aarch64-unw_step-validates-address-before-calling-dwarf_get.patch
|
||||
Patch3: backport-avoid-calling-printf-because-OE-glibc-2.34-used-mno-.patch
|
||||
Patch4: backport-fix-run-ptrace-mapper-test-case-failed.patch
|
||||
Patch9000: riscv.patch
|
||||
|
||||
ExclusiveArch: aarch64 %{ix86} x86_64 riscv64 ppc64le loongarch64
|
||||
|
||||
@ -88,6 +89,9 @@ make check || true
|
||||
%{_mandir}/*/*
|
||||
|
||||
%changelog
|
||||
* Thu Apr 11 2024 shafeipaozi <sunbo.oerv@isrc.iscas.ac.cn> - 2:1.7.2-3
|
||||
- add support riscv64
|
||||
|
||||
* Mon Feb 26 2024 doupengda <doupengda@loongson.cn> - 2:1.7.2-2
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
|
||||
13
riscv.patch
Normal file
13
riscv.patch
Normal file
@ -0,0 +1,13 @@
|
||||
Index: libunwind-1.8.1/src/riscv/Gis_signal_frame.c
|
||||
===================================================================
|
||||
--- libunwind-1.8.1.orig/src/riscv/Gis_signal_frame.c
|
||||
+++ libunwind-1.8.1/src/riscv/Gis_signal_frame.c
|
||||
@@ -57,7 +57,7 @@ unw_is_signal_frame (unw_cursor_t *curso
|
||||
|
||||
ip = c->dwarf.ip;
|
||||
|
||||
- if (!ip || !a->access_mem || (ip & (sizeof(unw_word_t) - 1)))
|
||||
+ if (!ip || !a->access_mem)
|
||||
return 0;
|
||||
|
||||
if ((ret = (*a->access_mem) (as, ip, &i0, 0, arg)) < 0)
|
||||
Loading…
x
Reference in New Issue
Block a user