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