[Rpm-maint] [PATCH] debugedit: handle RISC-V relocation

Andreas Schwab schwab at suse.de
Mon Mar 5 11:01:48 UTC 2018


---
 tools/debugedit.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tools/debugedit.c b/tools/debugedit.c
index e0b1d98d99..57cd83030f 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",
-- 
2.16.2


-- 
Andreas Schwab, SUSE Labs, schwab at suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


More information about the Rpm-maint mailing list