diff --git a/0001-add-sw_64-support.patch b/0001-add-sw_64-support.patch new file mode 100644 index 0000000000000000000000000000000000000000..0f50b35d5a8b35dff4d9ccffbc5a9d97887c6a54 --- /dev/null +++ b/0001-add-sw_64-support.patch @@ -0,0 +1,24 @@ +From 95f7bcffccc73eb2a3a3b0dde63670eb6f8fdc3c Mon Sep 17 00:00:00 2001 +From: dongchuanjian +Date: Mon, 19 May 2025 10:22:50 +0800 +Subject: [PATCH] add-sw_64-support + + +diff --git a/tools/debugedit.c b/tools/debugedit.c +index beefd65..04fcff6 100644 +--- a/tools/debugedit.c ++++ b/tools/debugedit.c +@@ -672,6 +672,10 @@ setup_relbuf (DSO *dso, debug_section *sec) + if (rtype != R_X86_64_32) + goto fail; + break; ++ case EM_SW_64: ++ if (rtype != R_SW_64_REFLONG) ++ goto fail; ++ break; + case EM_ALPHA: + if (rtype != R_ALPHA_REFLONG) + goto fail; +-- +2.41.0 + diff --git a/debugedit.spec b/debugedit.spec index d255765abe0e4b9fc0d156334bb86a024a0694e6..f1d166ef2d74b4ac38eea46b26c0e472bcc39fad 100644 --- a/debugedit.spec +++ b/debugedit.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %global _hardened_build 1 Summary: Tools and scripts for creating debuginfo and source file distributions, collect build-ids and rewrite source paths in DWARF data for debugging, tracing and profiling. @@ -26,6 +26,8 @@ Patch2: 0001-find-debuginfo-Fix-skip_mini-.gnu_debugdata-handling.patch # https://sourceware.org/git?p=debugedit.git;a=commit;h=b9a4cbf363946b3d27a3cacd556618378e42b5ca Patch3: 0001-find-debuginfo-Make-return-from-do_file-explicit.patch +Patch4: 0001-add-sw_64-support.patch + %description %{name} is a tool used for debugging programs in Linux. It allows developers to view and modify debugging information associated with @@ -44,7 +46,14 @@ BuildArch: noarch The %{name}-doc package contains documentation files for %{name}. %prep -%autosetup -p1 +#%autosetup -p1 +%setup -q +%patch 1 -p1 +%patch 2 -p1 +%patch 3 -p1 +%ifarch sw_64 +%patch 4 -p1 +%endif %build autoreconf -ivf @@ -81,6 +90,9 @@ ln -s find-debuginfo find-debuginfo.sh %doc README %changelog +* Mon May 19 2025 Dong Chuanjian - 5.1-2 +- Add sw_64 support + * Fri Feb 28 2025 Zhao Hang - 5.1-1 - Update to 5.1-1 from 5.0-7 - Migrated to SPDX license