From 7c9b3a2f2516f0a5a6ff14e8a94978f963a1c863 Mon Sep 17 00:00:00 2001 From: doupengda Date: Mon, 5 Jun 2023 16:10:58 +0800 Subject: [PATCH] Add loongarch64 support for debugedit --- 0001-debugedit-add-loongarch-support.patch | 26 ++++++++++++++++++++++ rpm.spec | 5 ++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 0001-debugedit-add-loongarch-support.patch diff --git a/0001-debugedit-add-loongarch-support.patch b/0001-debugedit-add-loongarch-support.patch new file mode 100644 index 0000000..363ebfd --- /dev/null +++ b/0001-debugedit-add-loongarch-support.patch @@ -0,0 +1,26 @@ +From f5449c5534d9bfb526541d49b3caec4f76e12d1d Mon Sep 17 00:00:00 2001 +From: Huang Yang +Date: Mon, 20 Feb 2023 20:03:41 -0500 +Subject: [PATCH] debugedit add loongarch support + +--- + tools/debugedit.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/tools/debugedit.c b/tools/debugedit.c +index 4ec431f..fb0325b 100644 +--- a/tools/debugedit.c ++++ b/tools/debugedit.c +@@ -597,6 +597,10 @@ setup_relbuf (DSO *dso, debug_section *sec, int *reltype) + goto fail; + break; + #endif ++ case EM_LOONGARCH: ++ if ((rtype != R_LARCH_32) && (rtype != R_LARCH_64)) ++ goto fail; ++ break; + default: + fail: + error (1, 0, "%s: Unhandled relocation %d in %s section", +-- +2.27.0 diff --git a/rpm.spec b/rpm.spec index 34fcaea..f3d6740 100644 --- a/rpm.spec +++ b/rpm.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.1 +%define anolis_release .0.2 %define _legacy_common_support 1 # build against xz? %bcond_without xz @@ -699,6 +699,9 @@ make check || cat tests/rpmtests.log %doc doc/librpm/html/* %changelog +* Mon Jun 5 2023 doupengda - 4.14.3-24.0.2 +- Add loongarch64 support for debugedit + * Fri Oct 28 2022 Liwei Ge - 4.14.3-24.0.1 - Rebrand for Anolis OS - Fix gcc10 -fno-common compile issue for compatible with gcc10 build -- Gitee