]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(_dl_close): Update _dl_loaded if the first object on the list is
authorUlrich Drepper <drepper@redhat.com>
Mon, 31 Aug 1998 17:24:17 +0000 (17:24 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 31 Aug 1998 17:24:17 +0000 (17:24 +0000)
removed.

elf/dl-close.c

index 4d9a06fa69e51ac5f715d3a3bc4e61933869d87b..ee35c6d5087c37c832aa85e12b865cf079121254 100644 (file)
@@ -116,6 +116,8 @@ _dl_close (struct link_map *map)
          /* Finally, unlink the data structure and free it.  */
          if (imap->l_prev)
            imap->l_prev->l_next = imap->l_next;
+         else
+           _dl_loaded = imap->l_next;
          if (imap->l_next)
            imap->l_next->l_prev = imap->l_prev;
          if (imap->l_searchlist && imap->l_searchlist != list)