diff --git a/0006-Add-sw_64-arch-support.patch b/0006-Add-sw_64-arch-support.patch new file mode 100644 index 0000000000000000000000000000000000000000..3adb492a320608c219d8a30cdf24947abc410853 --- /dev/null +++ b/0006-Add-sw_64-arch-support.patch @@ -0,0 +1,28 @@ +From 6e9b89111ff7009dc0e2aace99115074af8e9b0d Mon Sep 17 00:00:00 2001 +From: zhuyunfei +Date: Fri, 7 Mar 2025 11:27:45 +0800 +Subject: [PATCH] Add sw_64 arch support + +Signed-off-by: zhuyunfei +--- + tools/debugedit.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/tools/debugedit.c b/tools/debugedit.c +index 911e84e..22b9071 100644 +--- a/tools/debugedit.c ++++ b/tools/debugedit.c +@@ -598,6 +598,10 @@ setup_relbuf (DSO *dso, debug_section *sec, int *reltype) + 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 8033049f1dfa592e949ef425d6b05963c53adf27..8980aebc707ab14e2dafc0ff74f30f45cb08fa33 100644 --- a/debugedit.spec +++ b/debugedit.spec @@ -1,4 +1,4 @@ -%define anolis_release 7 +%define anolis_release 8 %global _hardened_build 1 Summary: Tools for debuginfo creation @@ -17,6 +17,7 @@ Patch0004: 0002-configure.ac-Use-AC_LINK_IFELSE-for-gz-none-check.patch Patch0005: 0003-configure.ac-Use-AC_LANG_PROGRAM-for-AC_LINK_IFELSE-.patch Patch0006: 0004-scripts-find-debuginfo.in-Add-q-quiet.patch Patch0007: 0005-add-loongarch-support-for-debugedit.patch +Patch0008: 0006-Add-sw_64-arch-support.patch BuildRequires: make, gcc > 12.0, help2man, dwz, autoconf, automake BuildRequires: pkgconfig(libelf), pkgconfig(libdw) @@ -81,6 +82,9 @@ ln -s find-debuginfo find-debuginfo.sh %doc README %changelog +* Fri Mar 7 2025 zhuyunfei - 5.0-8 +- Add sw_64 arch support + * Fri Nov 10 2023 Wenlong Zhang - 5.0-7 - disable check for loongarch64