aboutsummaryrefslogtreecommitdiff
path: root/bfd/mach-o.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2012-11-06 06:44:01 +0000
committerAlan Modra <amodra@gmail.com>2012-11-06 06:44:01 +0000
commit8c746b9642c607a2fd41a8670a2e375be117b130 (patch)
treee8d7e8a5dc6bfa7e0309fdc0291f1ce295550afd /bfd/mach-o.c
parent0df8acdee931c0c97d12b1edff2b3d44162ed7c9 (diff)
downloadgdb-8c746b9642c607a2fd41a8670a2e375be117b130.zip
gdb-8c746b9642c607a2fd41a8670a2e375be117b130.tar.gz
gdb-8c746b9642c607a2fd41a8670a2e375be117b130.tar.bz2
* mach-o.c (bfd_mach_o_close_and_cleanup): Don't call
_bfd_generic_close_and_cleanup for mach_o_fat archives.
Diffstat (limited to 'bfd/mach-o.c')
-rw-r--r--bfd/mach-o.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/mach-o.c b/bfd/mach-o.c
index 0379f4f..9a003e8 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);
}