From: Ulrich Drepper Date: Mon, 31 Aug 1998 17:24:17 +0000 (+0000) Subject: (_dl_close): Update _dl_loaded if the first object on the list is X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f35ba0fd8dd0d9819528bf06b6a160b7ebab2a67;p=thirdparty%2Fglibc.git (_dl_close): Update _dl_loaded if the first object on the list is removed. --- diff --git a/elf/dl-close.c b/elf/dl-close.c index 4d9a06fa69e..ee35c6d5087 100644 --- a/elf/dl-close.c +++ b/elf/dl-close.c @@ -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)