]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/commitdiff
debugedit: Add support for aarch64 relocations
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 28 Oct 2016 13:35:13 +0000 (15:35 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 28 Oct 2016 13:35:13 +0000 (15:35 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
debugedit/debugedit.nm
debugedit/patches/debugedit-5.3.5-support-aarch64.patch [new file with mode: 0644]

index 83f67a8fa8a8a592c41f050821a81726664cd628..c1d6474d2d634f3662e185f0ab1e7bfea0f7862a 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = debugedit
 version    = 5.3.5
-release    = 1
+release    = 2
 
 groups     = Development/Tools
 url        = http://www.rpm5.org/
diff --git a/debugedit/patches/debugedit-5.3.5-support-aarch64.patch b/debugedit/patches/debugedit-5.3.5-support-aarch64.patch
new file mode 100644 (file)
index 0000000..d7e92b6
--- /dev/null
@@ -0,0 +1,30 @@
+From 389d260ca41a277de49ca0154966d549945d8635 Mon Sep 17 00:00:00 2001
+From: Kyle McMartin <kmcmarti@redhat.com>
+Date: Sun, 16 Jun 2013 12:48:46 -0400
+Subject: [PATCH] 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>
+---
+ debugedit.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/debugedit.c b/debugedit.c
+index a658d5b..434bab0 100644
+--- a/debugedit.c
++++ b/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",