public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: - handle aarch64 debug_info relocations in debugedit (#974860)
@ 2026-11-23  9:28 Panu Matilainen
  0 siblings, 0 replies; only message in thread
From: Panu Matilainen @ 2026-11-23  9:28 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : 17960b66b23480b17e903bab85b3e43c23fd9a46
Author : Panu Matilainen <pmatilai@redhat.com>
Date   : 2013-06-17T10:12:11+03:00
Stats  : +34/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/17960b66b23480b17e903bab85b3e43c23fd9a46?branch=pmatilai-v6

Log:
- handle aarch64 debug_info relocations in debugedit (#974860)

---
diff --git a/rpm-4.11.x-aarch64-debugedit.patch b/rpm-4.11.x-aarch64-debugedit.patch
new file mode 100644
index 0000000..419e579
--- /dev/null
+++ b/rpm-4.11.x-aarch64-debugedit.patch
@@ -0,0 +1,27 @@
+commit 389d260ca41a277de49ca0154966d549945d8635
+Author: Kyle McMartin <kmcmarti@redhat.com>
+Date:   Sun Jun 16 12:48:46 2013 -0400
+
+    debugedit: handle aarch64 debug_info relocations (RhBug:974860)
+    
+    AArch64 generates a relocation which must be handled similar to other
+    architectures. Adding this patch allows debugedit to run against the
+    kernel debuginfo.
+    
+    Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
+
+diff --git a/tools/debugedit.c b/tools/debugedit.c
+index a658d5b..434bab0 100644
+--- a/tools/debugedit.c
++++ b/tools/debugedit.c
+@@ -1158,6 +1158,10 @@ edit_dwarf2 (DSO *dso)
+ 		  if (rtype != R_ALPHA_REFLONG)
+ 		    goto fail;
+ 		  break;
++		case EM_AARCH64:
++		  if (rtype != R_AARCH64_ABS32)
++		    goto fail;
++		  break;
+ 		default:
+ 		fail:
+ 		  error (1, 0, "%s: Unhandled relocation %d in .debug_info section",

diff --git a/rpm.spec b/rpm.spec
index 2ece24f..e88c945 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -22,7 +22,7 @@
 Summary: The RPM package management system
 Name: rpm
 Version: %{rpmver}
-Release: %{?snapver:0.%{snapver}.}3%{?dist}
+Release: %{?snapver:0.%{snapver}.}4%{?dist}
 Group: System Environment/Base
 Url: http://www.rpm.org/
 Source0: http://rpm.org/releases/testing/%{name}-%{srcver}.tar.bz2
@@ -51,6 +51,8 @@ Patch6: rpm-4.9.0-armhfp-logic.patch
 Patch100: rpm-4.11.x-filter-soname-deps.patch
 # Fix regression on addressing main package by its name
 Patch101: rpm-4.11.1-rc1-lookup-mainpkg.patch
+# handle aarch64 debug_info relocations
+Patch102: rpm-4.11.x-aarch64-debugedit.patch
 
 # These are not yet upstream
 Patch301: rpm-4.6.0-niagara.patch
@@ -231,6 +233,7 @@ packages on a system.
 
 %patch100 -p1 -b .filter-soname-deps
 %patch101 -p1 -b .lookup-mainpkg
+%patch102 -p1 -b .aarch64-debugedit
 
 %patch301 -p1 -b .niagara
 %patch302 -p1 -b .geode
@@ -464,6 +467,9 @@ exit 0
 %doc COPYING doc/librpm/html/*
 
 %changelog
+* Mon Jun 17 2013 Panu Matilainen <pmatilai@redhat.com> - 4.11.1-0.rc1.4
+- handle aarch64 debug_info relocations in debugedit (#974860)
+
 * Tue Jun 11 2013 Panu Matilainen <pmatilai@redhat.com> - 4.11.1-0.rc1.3
 - disable autoconf config.site processing in builds (#962837)
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-23  9:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23  9:28 [rpms/rpm] pmatilai-v6: - handle aarch64 debug_info relocations in debugedit (#974860) Panu Matilainen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox