From 8c746b9642c607a2fd41a8670a2e375be117b130 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 6 Nov 2012 06:44:01 +0000 Subject: [PATCH] * mach-o.c (bfd_mach_o_close_and_cleanup): Don't call _bfd_generic_close_and_cleanup for mach_o_fat archives. --- bfd/ChangeLog | 5 +++++ bfd/mach-o.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 6e6937ceb0e..cea4177ecd5 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2012-11-06 Alan Modra + + * 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 * coff-tic4x.c (tic4x_coff0_vec, tic4x_coff0_beh_vec, diff --git a/bfd/mach-o.c b/bfd/mach-o.c index 0379f4f8e97..9a003e8f546 100644 --- a/bfd/mach-o.c +++ b/bfd/mach-o.c @@ -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); } -- 2.30.2