dangling pointer in coff64-rs6000 archive cache.
authorJoel Brobecker <brobecker@gnat.com>
Tue, 16 Oct 2012 22:56:55 +0000 (22:56 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Tue, 16 Oct 2012 22:56:55 +0000 (22:56 +0000)
bfd/ChangeLog:

        * coff64-rs6000.c (rs6000coff64_vec): Set _close_and_cleanup
        field to _bfd_archive_close_and_cleanup.
        (aix5coff64_vec): Likewise.

bfd/coff64-rs6000.c

index 0821b6ff1774e334bc74633078a662c0fa12e681..5f4a502c5f4639d58e0ac57388a76d083c24b417 100644 (file)
@@ -2668,7 +2668,7 @@ const bfd_target rs6000coff64_vec =
     },
 
     /* Generic */
-    bfd_true,
+    _bfd_archive_close_and_cleanup,
     bfd_true,
     coff_new_section_hook,
     _bfd_generic_get_section_contents,
@@ -2926,7 +2926,7 @@ const bfd_target aix5coff64_vec =
     },
 
     /* Generic */
-    bfd_true,
+    _bfd_archive_close_and_cleanup,
     bfd_true,
     coff_new_section_hook,
     _bfd_generic_get_section_contents,