* mach-o.c (bfd_mach_o_close_and_cleanup): Don't call
authorAlan Modra <amodra@gmail.com>
Tue, 6 Nov 2012 06:44:01 +0000 (06:44 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 6 Nov 2012 06:44:01 +0000 (06:44 +0000)
_bfd_generic_close_and_cleanup for mach_o_fat archives.

bfd/ChangeLog
bfd/mach-o.c

index 6e6937c..cea4177 100644 (file)
@@ -1,5 +1,10 @@
 2012-11-06  Alan Modra  <amodra@gmail.com>
 
+       * mach-o.c (bfd_mach_o_close_and_cleanup): Don't call
+       _bfd_generic_close_and_cleanup for mach_o_fat archives.
+
+2012-11-06  Alan Modra  <amodra@gmail.com>
+
        * coff-tic4x.c (tic4x_coff0_vec, tic4x_coff0_beh_vec,
        tic4x_coff1_vec, tic4x_coff1_beh_vec, tic4x_coff2_vec,
        tic4x_coff2_beh_vec): Allow SEC_CODE and SEC_READONLY in
index 0379f4f..9a003e8 100644 (file)
@@ -4864,6 +4864,9 @@ bfd_mach_o_close_and_cleanup (bfd *abfd)
         }
     }
 
+  if (bfd_get_format (abfd) == bfd_archive
+      && abfd->xvec == &mach_o_fat_vec)
+    return TRUE;
   return _bfd_generic_close_and_cleanup (abfd);
 }