public inbox for debugedit@sourceware.org
 help / color / mirror / Atom feed
* 0001-debugedit-Add-support-for-loongarch
@ 2023-01-10  6:21 代凡
  2023-01-12 14:48 ` 0001-debugedit-Add-support-for-loongarch Mark Wielaard
  0 siblings, 1 reply; 2+ messages in thread
From: 代凡 @ 2023-01-10  6:21 UTC (permalink / raw)
  To: debugedit

[-- Attachment #1: Type: text/plain, Size: 911 bytes --]

From 60e47e45ced1e4c112dc043e438ca05ab1bef30b Mon Sep 17 00:00:00 2001
From: daifan <daifan@uniontech.com&gt;
Date: Tue, 10 Jan 2023 12:04:39 +0800
Subject: [PATCH] debugedit: Add support for loongarch


	* tools/debugedit.c (setup_relbuf): Handle EM_LOONGARCH
---
&nbsp;tools/debugedit.c | 6 ++++++
&nbsp;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)
&nbsp;	&nbsp; if (rtype != R_E2K_32_ABS)
&nbsp;		&nbsp; goto fail;
&nbsp;	&nbsp; break;
+#endif
+#if defined(EM_LOONGARCH) &amp;&amp; defined(R_LARCH_32)
+&nbsp; case EM_LOONGARCH:
+&nbsp; &nbsp; if (rtype != R_LARCH_32)
+&nbsp; &nbsp; &nbsp; goto fail;
+&nbsp; &nbsp; break;
&nbsp;#endif
&nbsp;	default:
&nbsp;	fail:
--&nbsp;
2.20.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 0001-debugedit-Add-support-for-loongarch
  2023-01-10  6:21 0001-debugedit-Add-support-for-loongarch 代凡
@ 2023-01-12 14:48 ` Mark Wielaard
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Wielaard @ 2023-01-12 14:48 UTC (permalink / raw)
  To: 代凡, debugedit

Hi daifan,

On Tue, 2023-01-10 at 06:21 +0000, 代凡 wrote:
> 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

Thanks, that looks good. Pushed.

Cheers,

Mark

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-12 14:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-10  6:21 0001-debugedit-Add-support-for-loongarch 代凡
2023-01-12 14:48 ` 0001-debugedit-Add-support-for-loongarch Mark Wielaard

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).