Re: [PATCH 1/2] elfclassify: Add --any-ar-member option to classify archive member

2025-08-28 Thread Aaron Merey
Hi Mark, On Thu, Aug 28, 2025 at 12:44 PM Mark Wielaard wrote: > > To determine whether an ELF archive contains a member of a particular > type add a new input option to eu-elfclassify --any-ar-member. > eu-elfclassify will match if a given file is an ELF archive and the > classification options

[PATCH 2/2] elfclassify: Add --has-debug-sections classification option

2025-08-28 Thread Mark Wielaard
There is --unstripped but that is whether the ELF file can be stripped (further) by removing any .[z]debug_* sections or symbol table (.symtab section). The --has-debug-sections option only checks whether there are .[z]debug sections present. * src/elfclassify.c (is_has_debug_sections): N

[PATCH 1/2] elfclassify: Add --any-ar-member option to classify archive member

2025-08-28 Thread Mark Wielaard
To determine whether an ELF archive contains a member of a particular type add a new input option to eu-elfclassify --any-ar-member. eu-elfclassify will match if a given file is an ELF archive and the classification options apply to at least one of the members. This can be used for example to chec

Re: [RFC] elfclassify: Add --ar-member option to classify archive member

2025-08-28 Thread Aaron Merey
Hi Mark, On Thu, Aug 28, 2025 at 4:22 AM Mark Wielaard wrote: > > > > ‘__builtin___sprintf_chk’ argument 5 overlaps destination object > > ‘current_path’ [-Werror=restrict] > > [...] > > elfclassify.c: In function ‘check_ar_members’: > > elfclassify.c:47:14: note: destination object referenced by

Re: [RFC] elfclassify: Add --ar-member option to classify archive member

2025-08-28 Thread Mark Wielaard
Hi Aaron, On Wed, Aug 27, 2025 at 06:51:36PM -0400, Aaron Merey wrote: > On Tue, Aug 26, 2025 at 6:46 PM Frank Ch. Eigler wrote: > > > RFC: Is the option name --ar-member clear? Do we also want a variant > > > (--all-ar-members) that checks whether all members match? Do we want > > > this to work

Re: [RFC] elfclassify: Add --ar-member option to classify archive member

2025-08-28 Thread Mark Wielaard
Hi Frank, On Tue, Aug 26, 2025 at 06:46:04PM -0400, Frank Ch. Eigler wrote: > > This can be used for example to check whether an ELF archive file > > contains ELF members that can be stripped by using: > > eu-classify --ar-member --unstripped > > So one could immediately put this into debugedi

[Bug tools/33329] eu-ar --map mode

2025-08-28 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=33329 Mark Wielaard changed: What|Removed |Added CC||mark at klomp dot org --- Comment #1