rfc patch PR32760: find-debuginfo for static libraries

Frank Ch. Eigler fche@redhat.com
Mon Mar 10 15:38:25 GMT 2025


Hi -

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

Goofy!  

% ar r foo.a foo.o
% ar r foo.a bar/foo.o

results in foo.a with one foo.o member (the second replacing the
first), but

% ar r foo.a foo.o bar/foo.o

results in foo.a with two members named foo.o.

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

Will keep searching for a solution.

- FChE



More information about the Debugedit mailing list