[Bug debugedit/32760] debugedit should handle .a static ar archive
fche at redhat dot com
sourceware-bugzilla@sourceware.org
Wed Jun 18 18:44:43 GMT 2025
https://sourceware.org/bugzilla/show_bug.cgi?id=32760
Frank Ch. Eigler <fche at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #2 from Frank Ch. Eigler <fche at redhat dot com> ---
commit eaf5bfc1a67652530efc2a2037ca80ec63aba0f8
Author: Frank Ch. Eigler <fche@redhat.com>
Date: Wed Jun 18 14:40:59 2025 -0400
PR32760: find-debuginfo: handle static libraries
Formerly, static .a libraries with debuginfo were ignored by
find-debuginfo. If unstripped, then the raw build-directory paths in
them would leak into the downstream package. New code in
find-debuginfo looks for archive ".a" files in the build tree, and
runs debugedit only to enumerate and rewrite source paths. This
allows ultimate users of the .a files to link in object files with all
the debuginfo, except with usable (and debuginfod-resolvable) source
file paths.
This works by having find-debuginfo find .a files, extracting all
the .o files one at a time, running debugedit, then repacking the
files back into the .a. do_file() delegates to do_ar_file(),
doing rather less work than for .so/exec files.
New autotest case covers duplicate-member-name functionality,
including with cruelly whitespace named members. Defaults off
& skips testing unless ar support "O" (binutils > v2.31).
Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Debugedit
mailing list