about summary refs log tree commit diff
path: root/sysdeps/generic/dl-tls.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-05-03 07:39:22 +0000
committerUlrich Drepper <drepper@redhat.com>2002-05-03 07:39:22 +0000
commit38a7d8baf498dd46f81ff49ea28eb3b3b7775544 (patch)
tree9ab47cc3c0a86d3239957903d475564d28cdc5db /sysdeps/generic/dl-tls.c
parent3dbbe24e84fe0f5f87e274ffdba56d6bfd552244 (diff)
downloadglibc-38a7d8baf498dd46f81ff49ea28eb3b3b7775544.tar.gz
glibc-38a7d8baf498dd46f81ff49ea28eb3b3b7775544.tar.xz
glibc-38a7d8baf498dd46f81ff49ea28eb3b3b7775544.zip
Update.
2002-05-02  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
	* sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
	__moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
	* sysdeps/ia64/ia64libgcc.S: New file.

2002-05-02  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.

	* malloc/memusage.c: Distinguish anonymous mmap.
Diffstat (limited to 'sysdeps/generic/dl-tls.c')
-rw-r--r--sysdeps/generic/dl-tls.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/sysdeps/generic/dl-tls.c b/sysdeps/generic/dl-tls.c
index 8d98786fd5..0d6fcec0e5 100644
--- a/sysdeps/generic/dl-tls.c
+++ b/sysdeps/generic/dl-tls.c
@@ -23,7 +23,6 @@
 #include <unistd.h>
 #include <sys/param.h>
 
-#include <abort-instr.h>
 #include <tls.h>
 
 /* We don't need any of this if TLS is not supported.  */
@@ -42,21 +41,7 @@ static void
 __attribute__ ((__noreturn__))
 oom (void)
 {
-  static const char msg[] = "\
-cannot allocate memory for thread-local data: ABORT\n";
-
-  __libc_write (STDERR_FILENO, msg, sizeof (msg) - 1);
-
-  /* Kill ourself.  */
-  __kill (__getpid (), SIGKILL);
-
-  /* Just in case something goes wrong with the kill.  */
-  while (1)
-    {
-#  ifdef ABORT_INSTRUCTION
-      ABORT_INSTRUCTION;
-#  endif
-    }
+  _dl_fatal_printf ("cannot allocate memory for thread-local data: ABORT\n");
 }
 # endif