From 0776d576c9516a0b71f68c23fbb3e28957a739dd Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 25 Jul 2023 13:57:43 +0800 Subject: [PATCH] conditional set relbuf for loongarch debugedit Signed-off-by: Liwei Ge --- 0001-debugedit-add-loongarch-support.patch | 4 +++- rpm.spec | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/0001-debugedit-add-loongarch-support.patch b/0001-debugedit-add-loongarch-support.patch index 363ebfd..f75846c 100644 --- a/0001-debugedit-add-loongarch-support.patch +++ b/0001-debugedit-add-loongarch-support.patch @@ -11,14 +11,16 @@ 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) +@@ -597,6 +597,12 @@ setup_relbuf (DSO *dso, debug_section *sec, int *reltype) goto fail; break; #endif ++#if defined(EM_LOONGARCH) + case EM_LOONGARCH: + if ((rtype != R_LARCH_32) && (rtype != R_LARCH_64)) + goto fail; + break; ++#endif default: fail: error (1, 0, "%s: Unhandled relocation %d in %s section", diff --git a/rpm.spec b/rpm.spec index b4d463e..261dc07 100644 --- a/rpm.spec +++ b/rpm.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.2 +%define anolis_release .0.3 %define _legacy_common_support 1 # build against xz? %bcond_without xz @@ -721,6 +721,9 @@ rpm -q rpm 2>&1 | grep bdb && rpmdb --rebuilddb %doc doc/librpm/html/* %changelog +* Tue Jul 25 2023 Liwei Ge - 4.14.4-26.0.3 +- conditional set relbuf for loongarch debugedit + * Thu Jun 29 2023 forrest_ly - 4.14.4-26.0.2 - Support and switch rpmdb to sqlite -- Gitee