This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [RFC/RFA] dangling bfd pointer in archive cache...
On Wed, 3 Oct 2012, Alan Modra wrote:
> On Tue, Oct 02, 2012 at 07:14:06AM -0700, Joel Brobecker wrote:
> > * opncls.c (bfd_close); Add call to _bfd_archive_close_and_cleanup.
>
> No, we should already be calling _bfd_archive_close_and_cleanup via
>
> > --- a/bfd/opncls.c
> > +++ b/bfd/opncls.c
> > @@ -719,6 +719,17 @@ bfd_close (bfd *abfd)
> > if (! BFD_SEND (abfd, _close_and_cleanup, (abfd)))
>
> this call. The problem is in coff-rs6000.c (and coff64-rs6000.c)
> where the bfd_target vector just uses bfd_true for close_and_cleanup.
Could there be a similar problem for a.out as well, that
_bfd_archive_close_and_cleanup isn't called?
Yep, I still see
Running /tmp/hpautotest-binutils/bsrc/src/binutils/testsuite/binutils-all/ar.exp ...
FAIL: ar long file names (bfdtest1)
FAIL: ar thin archive (bfdtest1)
for cris-elf and cris-linux, which erroneously default to
cris_aout_vec (should be bfd_elf32_us_cris_vec and
bfd_elf32_cris_vec respectively, haven't got around to fix that
and the likely fallout).
brgds, H-P