0001-debugedit-Add-support-for-loongarch
代凡
daifan@uniontech.com
Tue Jan 10 06:21:15 GMT 2023
From 60e47e45ced1e4c112dc043e438ca05ab1bef30b Mon Sep 17 00:00:00 2001
From: daifan <daifan@uniontech.com>
Date: Tue, 10 Jan 2023 12:04:39 +0800
Subject: [PATCH] debugedit: Add support for loongarch
* tools/debugedit.c (setup_relbuf): Handle EM_LOONGARCH
---
tools/debugedit.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tools/debugedit.c b/tools/debugedit.c
index 9cb5775..b3422d7 100644
--- a/tools/debugedit.c
+++ b/tools/debugedit.c
@@ -612,6 +612,12 @@ setup_relbuf (DSO *dso, debug_section *sec, int *reltype)
if (rtype != R_E2K_32_ABS)
goto fail;
break;
+#endif
+#if defined(EM_LOONGARCH) && defined(R_LARCH_32)
+ case EM_LOONGARCH:
+ if (rtype != R_LARCH_32)
+ goto fail;
+ break;
#endif
default:
fail:
--
2.20.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/debugedit/attachments/20230110/066ae096/attachment.htm>
More information about the Debugedit
mailing list