* [PATCH] debugedit: Fix 'Unhandled relocation 0 in .debug_info section' on e2k
@ 2021-04-14 16:39 Vitaly Chikunov
2021-04-14 17:24 ` Mark Wielaard
0 siblings, 1 reply; 2+ messages in thread
From: Vitaly Chikunov @ 2021-04-14 16:39 UTC (permalink / raw)
To: debugedit; +Cc: Vitaly Chikunov
Fix handling of Elbrus ELF relocatables:
/usr/lib/rpm/debugedit: ./lib/modules/5.4.58-elbrus-def-alt1/misc/xt_so.ko: Unhandled relocation 0 in .debug_info section
Reported-by: Michael Shigorin <mike@altlinux.org>
Tested-by: Andrey Savchenko <bircoph@altlinux.org>
Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
---
tools/debugedit.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tools/debugedit.c b/tools/debugedit.c
index 917c59b..4527a08 100644
--- a/tools/debugedit.c
+++ b/tools/debugedit.c
@@ -617,6 +617,12 @@ setup_relbuf (DSO *dso, debug_section *sec, int *reltype)
goto fail;
break;
#endif
+#if defined(EM_MCST_ELBRUS) && defined(R_E2K_32_ABS)
+ case EM_MCST_ELBRUS:
+ if (rtype != R_E2K_32_ABS)
+ goto fail;
+ break;
+#endif
default:
fail:
error (1, 0, "%s: Unhandled relocation %d in %s section",
--
2.11.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] debugedit: Fix 'Unhandled relocation 0 in .debug_info section' on e2k
2021-04-14 16:39 [PATCH] debugedit: Fix 'Unhandled relocation 0 in .debug_info section' on e2k Vitaly Chikunov
@ 2021-04-14 17:24 ` Mark Wielaard
0 siblings, 0 replies; 2+ messages in thread
From: Mark Wielaard @ 2021-04-14 17:24 UTC (permalink / raw)
To: Vitaly Chikunov; +Cc: debugedit
Hi Vitaly,
On Wed, Apr 14, 2021 at 07:39:08PM +0300, Vitaly Chikunov wrote:
> Fix handling of Elbrus ELF relocatables:
>
> /usr/lib/rpm/debugedit: ./lib/modules/5.4.58-elbrus-def-alt1/misc/xt_so.ko: Unhandled relocation 0 in .debug_info section
I cannot test this myself, and I see glibc elf.h doesn't contain any
of the Elbrus relocations (but does know about EM_MCST_ELBRUS). But it
looks obviously correct and won't affect builds on other
systems. Pushed to main.
Thanks,
Mark
> Reported-by: Michael Shigorin <mike@altlinux.org>
> Tested-by: Andrey Savchenko <bircoph@altlinux.org>
> Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
> ---
> tools/debugedit.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/tools/debugedit.c b/tools/debugedit.c
> index 917c59b..4527a08 100644
> --- a/tools/debugedit.c
> +++ b/tools/debugedit.c
> @@ -617,6 +617,12 @@ setup_relbuf (DSO *dso, debug_section *sec, int *reltype)
> goto fail;
> break;
> #endif
> +#if defined(EM_MCST_ELBRUS) && defined(R_E2K_32_ABS)
> + case EM_MCST_ELBRUS:
> + if (rtype != R_E2K_32_ABS)
> + goto fail;
> + break;
> +#endif
> default:
> fail:
> error (1, 0, "%s: Unhandled relocation %d in %s section",
> --
> 2.11.0
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-14 17:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-14 16:39 [PATCH] debugedit: Fix 'Unhandled relocation 0 in .debug_info section' on e2k Vitaly Chikunov
2021-04-14 17:24 ` 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).