aboutsummaryrefslogtreecommitdiff
path: root/bfd/opncls.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2012-08-09 06:25:53 +0000
committerAlan Modra <amodra@gmail.com>2012-08-09 06:25:53 +0000
commiteeb1f9aea6773f39b281b43600d38ec0aa3fed6d (patch)
treed361dc01b6b1cfa93f129aab36f4c8a75d5a58bd /bfd/opncls.c
parent2588feef114cd2dc404453c36827e32b40ccc143 (diff)
downloadgdb-eeb1f9aea6773f39b281b43600d38ec0aa3fed6d.zip
gdb-eeb1f9aea6773f39b281b43600d38ec0aa3fed6d.tar.gz
gdb-eeb1f9aea6773f39b281b43600d38ec0aa3fed6d.tar.bz2
* archive.c (SECTION Archives): Update documentation.
(_bfd_delete_archive_data): Remove. (_bfd_add_bfd_to_archive_cache): Set 'parent_cache' and 'key'. (archive_close_worker, _bfd_archive_close_and_cleanup): New functions. * libbfd-in.h (struct areltdata <parent_cache, key>): New fields. (_bfd_delete_archive_data): Don't declare. (_bfd_archive_close_and_cleanup): Declare. (_bfd_generic_close_and_cleanup): Redefine. * libbfd.h: Rebuild. * opncls.c (_bfd_delete_bfd): Don't call _bfd_delete_archive_data. (bfd_close): Don't close nested thin archives here.
Diffstat (limited to 'bfd/opncls.c')
-rw-r--r--bfd/opncls.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c
index e538981..b2ed9be 100644
--- a/bfd/opncls.c
+++ b/bfd/opncls.c
@@ -130,9 +130,6 @@ _bfd_new_bfd_contained_in (bfd *obfd)
static void
_bfd_delete_bfd (bfd *abfd)
{
- if (abfd->format == bfd_archive)
- _bfd_delete_archive_data (abfd);
-
if (abfd->memory)
{
bfd_hash_table_free (&abfd->section_htab);
@@ -711,8 +708,6 @@ bfd_boolean
bfd_close (bfd *abfd)
{
bfd_boolean ret;
- bfd *nbfd;
- bfd *next;
if (bfd_write_p (abfd))
{
@@ -720,13 +715,6 @@ bfd_close (bfd *abfd)
return FALSE;
}
- /* Close nested archives (if this bfd is a thin archive). */
- for (nbfd = abfd->nested_archives; nbfd; nbfd = next)
- {
- next = nbfd->archive_next;
- bfd_close (nbfd);
- }
-
if (! BFD_SEND (abfd, _close_and_cleanup, (abfd)))
return FALSE;