From: 代凡 <daifan@uniontech.com>
To: debugedit <debugedit@sourceware.org>
Subject: 0001-debugedit-Add-support-for-loongarch
Date: Tue, 10 Jan 2023 06:21:15 +0000 [thread overview]
Message-ID: <tencent_398539125B6FB26304EA3933@qq.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 911 bytes --]
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 reply other threads:[~2023-01-10 6:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-10 6:21 代凡 [this message]
2023-01-12 14:48 ` 0001-debugedit-Add-support-for-loongarch Mark Wielaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tencent_398539125B6FB26304EA3933@qq.com \
--to=daifan@uniontech.com \
--cc=debugedit@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).