From 3dd90163bb9ecb7d8b6c7a2f7d6bc746571a7ea9 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 24 Mar 1998 17:03:23 +0000 Subject: Update. * elf/dl-close.c (_dl_close): Replace questionable memcpy by loop. 1998-03-24 Thorsten Kukuk * libc.map: Add more rpc auth functions/variables. * nscd/nscd.c: Add -g option to argp options. 1998-03-24 Ulrich Drepper * configure.in: Be prepared for gcc 2.9.10 and up. * configure.in: Add missing disabling of quote characters in compiler version check. Reported by HJ Lu. 1998-03-24 Andreas Jaeger * malloc/mtrace.c: Include elf/ldsodefs.h instead of link.h. 1998-03-24 Ulrich Drepper * intl/locale.alias: Fix spelling of romanian. --- elf/dl-close.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'elf/dl-close.c') diff --git a/elf/dl-close.c b/elf/dl-close.c index ad84f94..566e345 100644 --- a/elf/dl-close.c +++ b/elf/dl-close.c @@ -95,8 +95,11 @@ _dl_close (struct link_map *map) do --tail; while (*tail != imap); - memcpy (tail, tail + 1, - (char *) _dl_global_scope_end - (char *) tail); + while (tail <= _dl_global_scope_end) + { + tail[0] = tail[1]; + ++tail; + } --_dl_global_scope_end; } -- cgit v1.1