summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2018-02-26 10:34:26 +0100
committerFlorian Festi <ffesti@redhat.com>2018-03-05 12:26:22 +0100
commit86ec4c03de2b7cc6af6ba5b10dd686002e0b588c (patch)
tree73213999643abff83cb063104660dd4e46a6a427 /tools
parentfd937ca2ee0a93583c1b895de04816ce66d2b14d (diff)
downloadrpm-86ec4c03de2b7cc6af6ba5b10dd686002e0b588c.tar.gz
debugedit: handle RISC-V relocation
Resolves #407
Diffstat (limited to 'tools')
-rw-r--r--tools/debugedit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/debugedit.c b/tools/debugedit.c
index e0b1d98d9..57cd83030 100644
--- a/tools/debugedit.c
+++ b/tools/debugedit.c
@@ -1947,6 +1947,12 @@ edit_dwarf2 (DSO *dso)
if (rtype != R_68K_32)
goto fail;
break;
+#if defined(EM_RISCV) && defined(R_RISCV_32)
+ case EM_RISCV:
+ if (rtype != R_RISCV_32)
+ goto fail;
+ break;
+#endif
default:
fail:
error (1, 0, "%s: Unhandled relocation %d in .debug_info section",