[PATCH v2] Add debugedit-classify-ar and use it before running do_ar_file

Florian Weimer fweimer@redhat.com
Wed Sep 3 10:28:37 GMT 2025


* Mark Wielaard:

> do_ar_file in find-debuginfo can be somewhat slow extracting archive
> members and adding them to a new ar file after debugedit processing.
>
> debugedit-classify-ar is a new helper that checks if an ar file has to
> be processed, so no unnecessary work is done. It checks that the given
> file is a regular archive containing ELF members that have .debug
> sections and that no errors occur while reading the archive and
> members. It can also check that there is a maximum number of members.
>
> Use this in debuginfo with a limit of 768 members.

We have ~2200 members in libc.a, and yet we want this type of
processing.

Could we get a tool instead that iterates through an ar file (perhaps
even in parallel) and applies another command to its contents?
Operating on files in a temporary directory.

Thanks,
Florian



More information about the Debugedit mailing list