about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-close.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/elf/dl-close.c b/elf/dl-close.c
index bbbeed8e58..0851e20193 100644
--- a/elf/dl-close.c
+++ b/elf/dl-close.c
@@ -144,6 +144,7 @@ _dl_close (struct link_map *map)
 	  /* We will unlink the first object only if this is a statically
 	     linked program.  */
 	  assert (imap->l_prev != NULL);
+	  imap->l_prev->l_next = imap->l_next;
 #else
 	  if (imap->l_prev != NULL)
 	    imap->l_prev->l_next = imap->l_next;