rfc patch PR32760: find-debuginfo for static libraries

Frank Ch. Eigler fche@redhat.com
Mon Mar 10 12:27:33 GMT 2025


Hi, Florian -

> > +If -a is given, then static libraries will be ignored.  Otherwise,
> > +they receive only with source-path rewriting and collection.  They are
> > +not stripped, since they have no persistent build-ids to accommodate
> > +eventual reunification.
> 
> I have trouble understanding the “they receive only with” part.

Sorry, s/with //.


> > +# Handle ELF archives
> [...]
> 
> I don't think this is able to handle duplicate file names inside the
> archive.  I expect ld not to care about file names, so this could
> corrupt static archives.

Interesting point.  While the normal way of using ar is
  % ar r FOO.a BAR.o
preventing member name duplication, it is theoretically possible to
use other modes.  There appears to be no ar function to extract
individual members from duplicated name sets, so we'd be stuck writing
some new code to handle this.  Instead of that, find-debuginfo could
identify and ignore such archives.

- FChE



More information about the Debugedit mailing list