[PATCH v3 10/18] BFD: Unset the format on releasing a BFD's objalloc memory

Jan Beulich jbeulich@suse.com
Tue Dec 9 14:16:17 GMT 2025


On 20.11.2025 11:56, Maciej W. Rozycki wrote:
> --- binutils-gdb.orig/bfd/opncls.c
> +++ binutils-gdb/bfd/opncls.c
> @@ -195,6 +195,7 @@ _bfd_free_cached_info (bfd *abfd)
>    abfd->outsymbols = NULL;
>    abfd->tdata.any = NULL;
>    abfd->usrdata = NULL;
> +  abfd->format = bfd_unknown;
>  
>    return true;
>  }

In exchange, shouldn't the identical assignment in bfd_make_readable() be dropped
then?

Jan


More information about the Binutils mailing list