From Ilya Golubev <gin@mo.msk.ru>:

* solib.c (clear_solib): Call `remove_target_sections' to fix
	stale pointers in `struct target_ops'.
	* irix5-nat.c (clear_solib): Likewise.
	* osfsolib.c (clear_solib): Likewise.
This commit is contained in:
Kevin Buettner
2001-09-27 05:03:08 +00:00
parent 5e10630696
commit 15a1b8bebf
4 changed files with 12 additions and 0 deletions

View File

@@ -1061,6 +1061,7 @@ clear_solib (void)
}
if (so_list_head->abfd)
{
remove_target_sections (so_list_head->abfd);
bfd_filename = bfd_get_filename (so_list_head->abfd);
if (!bfd_close (so_list_head->abfd))
warning ("cannot close \"%s\": %s",