Re: [PATCH 2/7] elf_getarhdr: Replace per-archive Elf_Arhdr storage with per-member storage

2025-07-15 Thread Mark Wielaard
Hi Aaron, On Tue, 2025-07-15 at 00:25 -0400, Aaron Merey wrote: > Currently each archive descriptor maintains a single Elf_Arhdr for the > current archive member (as determined by elf_next or elf_rand) which is > returned by elf_getarhdr. > > A single per-archive Elf_Arhdr is not ideal since elf_

Re: [PATCH 1/7] elf_getaroff: Fix elf_getaroff error return value

2025-07-15 Thread Mark Wielaard
Hi Aaron, On Tue, 2025-07-15 at 00:25 -0400, Aaron Merey wrote: > elf_getaroff currently returns ELF_C_NULL (0) to indicate that an error > occured (ex. the Elf descriptor is not associated with an archive). > > However elf_getaroff is intended to return -1 if an error occurs. > eu-ar assumes -1