about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-12-20 08:49:27 +0000
committerUlrich Drepper <drepper@redhat.com>2002-12-20 08:49:27 +0000
commit676fde70c8940888bed31881ec9d0fd5c34f9dc0 (patch)
treebd680e1d2a7b269e51f1ffca66922ff4f2935bb4 /elf
parent057c823fbef95bf0ddb2a33c109b82488390ecec (diff)
downloadglibc-676fde70c8940888bed31881ec9d0fd5c34f9dc0.tar.gz
glibc-676fde70c8940888bed31881ec9d0fd5c34f9dc0.tar.xz
glibc-676fde70c8940888bed31881ec9d0fd5c34f9dc0.zip
Update.
2002-12-20  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
	builds add "tls" in the search path.
	* elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
	(path_hwcap): Recognize "tls".

	* sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
	__waitpid instead of waitpid.
Diffstat (limited to 'elf')
-rw-r--r--elf/ldconfig.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/elf/ldconfig.c b/elf/ldconfig.c
index 7e813d46d4..1b501e66a6 100644
--- a/elf/ldconfig.c
+++ b/elf/ldconfig.c
@@ -158,6 +158,11 @@ is_hwcap_platform (const char *name)
   if (hwcap_idx != -1)
     return 1;
 
+#ifdef USE_TLS
+  if (strcmp (name, "tls") == 0)
+    return 1;
+#endif
+
   return 0;
 }
 
@@ -190,7 +195,14 @@ path_hwcap (const char *path)
 	{
 	  h = _dl_string_platform (ptr + 1);
 	  if (h == (uint64_t) -1)
-	    break;
+	    {
+#ifdef USE_TLS
+	      if (strcmp (ptr + 1, "tls") == 0)
+		h = 63;
+	      else
+#endif
+		break;
+	    }
 	}
       hwcap += 1ULL << h;