Michael Schröder
c6221a580a
- debugedit-riscv.patch: handle RISC-V relocation in debugedit OBS-URL: https://build.opensuse.org/request/show/582613 OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=450
28 lines
754 B
Diff
28 lines
754 B
Diff
From 86ec4c03de2b7cc6af6ba5b10dd686002e0b588c Mon Sep 17 00:00:00 2001
|
|
From: Andreas Schwab <schwab@suse.de>
|
|
Date: Mon, 26 Feb 2018 10:34:26 +0100
|
|
Subject: [PATCH] debugedit: handle RISC-V relocation
|
|
|
|
Resolves #407
|
|
---
|
|
tools/debugedit.c | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
Index: tools/debugedit.c
|
|
===================================================================
|
|
--- tools/debugedit.c.orig
|
|
+++ tools/debugedit.c
|
|
@@ -1985,6 +1985,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",
|