summaryrefslogtreecommitdiff
path: root/bfd/cache.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2012-01-10 11:51:08 +0000
committerTristan Gingold <gingold@adacore.com>2012-01-10 11:51:08 +0000
commit820fa842eb511073bd54fb735d185296a0b15a0b (patch)
treea2717262048a4076134c091b45531070bad9df17 /bfd/cache.c
parent1188b0aacf3b411444bcdf5992fcb1cc23cf8709 (diff)
downloadbinutils-redhat-820fa842eb511073bd54fb735d185296a0b15a0b.tar.gz
2012-01-10 Tristan Gingold <gingold@adacore.com>
* bfdio.c (bfd_tell): Handle nested archives. (bfd_seek): Ditto. * cache.c (bfd_cache_lookup_worker): Ditto. * archive.c (_bfd_get_elt_at_filepos): Remove code dealing with nested archives. (bfd_generic_openr_next_archived_file): Likewise.
Diffstat (limited to 'bfd/cache.c')
-rw-r--r--bfd/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/cache.c b/bfd/cache.c
index 5ddbbe470a..3842f517d1 100644
--- a/bfd/cache.c
+++ b/bfd/cache.c
@@ -198,7 +198,7 @@ bfd_cache_lookup_worker (bfd *abfd, enum cache_flag flag)
if ((abfd->flags & BFD_IN_MEMORY) != 0)
abort ();
- if (abfd->my_archive)
+ while (abfd->my_archive)
abfd = abfd->my_archive;
if (abfd->iostream != NULL)