From: Joel Brobecker Date: Tue, 16 Oct 2012 22:47:03 +0000 (+0000) Subject: Dangling bfd pointer in archive cache. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e3f9f6d81805e5f43a8275edc52d2d34069015d4;p=binutils-gdb.git Dangling bfd pointer in archive cache. This dandling pointer eventually leads to a crash when trying to run on ppc-aix a program using threading... bfd/ChangeLog: * coff-rs6000.c (rs6000coff_vec): Set _close_and_cleanup field to _bfd_archive_close_and_cleanup. (pmac_xcoff_vec): Likewise. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 29cb5c67976..da4262b7ae2 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2012-10-16 Joel Brobecker + + * coff-rs6000.c (rs6000coff_vec): Set _close_and_cleanup + field to _bfd_archive_close_and_cleanup. + (pmac_xcoff_vec): Likewise. + 2012-10-16 Sofiane Naci * elf64-aarch64.c (elf64_aarch64_tls_howto_table): Fix shift value for diff --git a/bfd/coff-rs6000.c b/bfd/coff-rs6000.c index edbef95e156..0945aca0ef7 100644 --- a/bfd/coff-rs6000.c +++ b/bfd/coff-rs6000.c @@ -4076,7 +4076,7 @@ const bfd_target rs6000coff_vec = }, /* Generic */ - bfd_true, + _bfd_archive_close_and_cleanup, bfd_true, coff_new_section_hook, _bfd_generic_get_section_contents, @@ -4332,7 +4332,7 @@ const bfd_target pmac_xcoff_vec = }, /* Generic */ - bfd_true, + _bfd_archive_close_and_cleanup, bfd_true, coff_new_section_hook, _bfd_generic_get_section_contents,