[Bug debugedit/33111] during find-debuginfo/debugedit, "Unhandled relocation 6 at [0] for .debug_info section" for gcc "offload" libraries
mark at klomp dot org
sourceware-bugzilla@sourceware.org
Thu Jun 26 20:35:23 GMT 2025
https://sourceware.org/bugzilla/show_bug.cgi?id=33111
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at klomp dot org
Status|NEW |ASSIGNED
Assignee|unassigned at sourceware dot org |mark at klomp dot org
--- Comment #2 from Mark Wielaard <mark at klomp dot org> ---
Quick and dirty patch based on
https://releases.llvm.org/8.0.0/docs/AMDGPUUsage.html
diff --git a/tools/debugedit.c b/tools/debugedit.c
index fcf8f7d6564b..c94e39dfdc26 100644
--- a/tools/debugedit.c
+++ b/tools/debugedit.c
@@ -713,6 +713,16 @@ setup_relbuf (DSO *dso, debug_section *sec)
goto fail;
break;
#endif
+#ifndef EM_AMDGPU
+#define EM_AMDGPU 224
+#endif
+#ifndef R_AMDGPU_ABS32
+#define R_AMDGPU_ABS32 6
+#endif
+ case EM_AMDGPU:
+ if (rtype != R_AMDGPU_ABS32)
+ goto fail;
+ break;
default:
fail:
error (1, 0, "%s: Unhandled relocation %d at [%d] for %s section",
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Debugedit
mailing list