* archive.c (_bfd_write_archive_contents): Once we've found an

object, don't bother to look for more when deciding whether to
	build a map.
	(compute_and_write_armap): After adding the symbols for a BFD,
	call bfd_free_cached_info on it.
This commit is contained in:
Ian Lance Taylor
1994-04-01 22:12:00 +00:00
parent 5c8444f8f8
commit dfe09c4926
2 changed files with 45 additions and 1 deletions

View File

@@ -1476,7 +1476,7 @@ _bfd_write_archive_contents (arch)
(char *) arch_hdr (current)));
}
if (makemap)
if (makemap && ! hasobjects)
{ /* don't bother if we won't make a map! */
if ((bfd_check_format (current, bfd_object))
#if 0 /* FIXME -- these are not set correctly */
@@ -1705,6 +1705,11 @@ compute_and_write_armap (arch, elength)
}
}
}
/* Now ask the BFD to free up any cached information, so we
don't fill all of memory with symbol tables. */
if (! bfd_free_cached_info (current))
goto error_return;
}
}