summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--elf/dl-close.c1
-rw-r--r--linuxthreads/ChangeLog2
2 files changed, 2 insertions, 1 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;
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog
index 66847d4416..45d06abc6c 100644
--- a/linuxthreads/ChangeLog
+++ b/linuxthreads/ChangeLog
@@ -1,7 +1,7 @@
 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
 
 	* sysdeps/i386/i686/pt-machine.h (testandset): Add memory clobber.
-	* sysdeps/i386/pt-machine.h: Likewise
+	* sysdeps/i386/pt-machine.h: Likewise.
 	Suggested by Roland McGrath.
 
 1998-08-28 13:58  Ulrich Drepper  <drepper@cygnus.com>