+2002-05-04 Bob Byrnes <byrnes@curl.com>
+
+ * size.c (display_archive): Add last_arfile and code to close archives.
+
2002-05-01 Alan Modra <amodra@bigpond.net.au>
* nm.c (print_symbol): Check returned filename from
bfd *file;
{
bfd *arfile = (bfd *) NULL;
+ bfd *last_arfile = (bfd *) NULL;
for (;;)
{
}
display_bfd (arfile);
- /* Don't close the archive elements; we need them for next_archive. */
+
+ if (last_arfile != NULL)
+ bfd_close (last_arfile);
+ last_arfile = arfile;
}
+
+ if (last_arfile != NULL)
+ bfd_close (last_arfile);
}
static void