diff options
Diffstat (limited to 'elf')
-rw-r--r-- | elf/dl-close.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/elf/dl-close.c b/elf/dl-close.c index f215503..a782452 100644 --- a/elf/dl-close.c +++ b/elf/dl-close.c @@ -95,10 +95,9 @@ _dl_close (struct link_map *map) do --tail; while (*tail != imap); + memcpy (tail, tail + 1, + (char *) _dl_global_scope_end - (char *) tail); --_dl_global_scope_end; - memcpy (tail, tail + 1, _dl_global_scope_end - tail); - _dl_global_scope_end[0] = NULL; - _dl_global_scope_end[1] = NULL; } /* We can unmap all the maps at once. We just have to determine |