aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-close.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-close.c')
-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 bbbeed8..0851e20 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;