From 220cc6770d511ab89dec44ae42cfb9bcc4107bb3 Mon Sep 17 00:00:00 2001 From: Kyle McMartin 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 --- tools/debugedit.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/debugedit.c b/tools/debugedit.c index 2385c21..8150e04 100644 --- a/tools/debugedit.c +++ b/tools/debugedit.c @@ -1155,6 +1155,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",