[Bug debugedit/33111] New: during find-debuginfo/debugedit, "Unhandled relocation 6 at [0] for .debug_info section" for gcc "offload" libraries

fche at redhat dot com sourceware-bugzilla@sourceware.org
Thu Jun 26 20:05:42 GMT 2025


https://sourceware.org/bugzilla/show_bug.cgi?id=33111

            Bug ID: 33111
           Summary: during find-debuginfo/debugedit, "Unhandled relocation
                    6 at [0] for .debug_info section" for gcc "offload"
                    libraries
           Product: debugedit
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: debugedit
          Assignee: unassigned at sourceware dot org
          Reporter: fche at redhat dot com
                CC: debugedit at sourceware dot org
  Target Milestone: ---

Created attachment 16149
  --> https://sourceware.org/bugzilla/attachment.cgi?id=16149&action=edit
archive, obj-offload-amdgcn-amdhsa/amdgcn-amdhsa/gfx908/newlib/ during
gcc-15.1.1-2.fc42 src.rpm rebuild

gcc 15 builds some "offload" static libraries for non-x86-64 targets during its
fedora .src.rpm rebuild.  With the recent find-debuginfo extensions for
static-library processing, this results in diagnostic messages:

% RPM_PACKAGE_NAME=foo RPM_BUILD_DIR=`pwd` RPM_BUILD_ROOT=`pwd`
....../find-debuginfo   --strict-build-id -m -i --build-id-seed FOOBAR
--unique-debug-suffix -FOOFOOBARBAR --unique-debug-src-base FOOFOOBARBAR
--run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S
debugsourcefiles.list `pwd`    
find-debuginfo: starting
Extracting debug info from 1 files
ar: creating /var/tmp/find-debuginfo.aWu8bF/38_349392857-output.a
debugedit:
/var/tmp/find-debuginfo.aWu8bF/38_349392857-archive-member/libc_a-wcstoul.o:
Unhandled relocation 6 at [0] for .debug_info section
Creating .debug symlinks for symlinks to ELF files
find-debuginfo: done

The supplied FOO.a file contains the libc_a-wcxtoul.o file from the build's
gcc-15.1.1-20250521/obj-offload-amdgcn-amdhsa/amdgcn-amdhsa/gfx908/newlib/libc.a
file.

As a result of the diagnostic, the .a file appears untouched, in the sense that
it is reconstituted in the usual new .a-iteration way, but the contents appear
unmodified.  That means that the embedded source file paths are not rewritten.
Note that according to a "bash -x find-debuginfo" invocation, the debugedit
process exits with rc=1 for this file.

% file  libc_a-wcstoul.o
libc_a-wcstoul.o: ELF 64-bit LSB relocatable, AMD GPU architecture version 1,
with debug_info, not stripped

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Debugedit mailing list