rfc patch PR32760: find-debuginfo for static libraries

Florian Weimer fweimer@redhat.com
Mon Mar 10 14:52:04 GMT 2025


* Frank Ch. Eigler:

> 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.

I think you get this if you use “ar r” with files of the same name in
different directories because ar removes the directory names.

Maybe we need something in elfutils that uses a shell script to
transform every archive member?

Thanks,
Florian



More information about the Debugedit mailing list