about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-04-12 20:32:01 +0000
committerUlrich Drepper <drepper@redhat.com>2003-04-12 20:32:01 +0000
commit177d1ad3ac9aab9b8ae7e7f70c2c66b6bdb876ee (patch)
tree14a7365c1e51d7195303a37d0b8fc17677a5b831 /sysdeps
parent68107ec092e7cc3fcd1f56edf9da8085cffed00d (diff)
downloadglibc-177d1ad3ac9aab9b8ae7e7f70c2c66b6bdb876ee.tar.gz
glibc-177d1ad3ac9aab9b8ae7e7f70c2c66b6bdb876ee.tar.xz
glibc-177d1ad3ac9aab9b8ae7e7f70c2c66b6bdb876ee.zip
Update.
2003-04-12  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/x86_64/tls.h (THREAD_SETMEM): Word around compiler bug
	which mishandles loading of global object addresses in PIC.
	(THREAD_SETMEM_NC): Likewise.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/dl-tls.c2
-rw-r--r--sysdeps/unix/sysv/linux/kernel-features.h5
2 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/generic/dl-tls.c b/sysdeps/generic/dl-tls.c
index 19cf0aa072..746d9a20bc 100644
--- a/sysdeps/generic/dl-tls.c
+++ b/sysdeps/generic/dl-tls.c
@@ -370,7 +370,7 @@ _dl_allocate_tls_init (void *result)
 	  assert (map->l_tls_modid == cnt);
 	  assert (map->l_tls_blocksize >= map->l_tls_initimage_size);
 # if TLS_TCB_AT_TP
-	  assert (map->l_tls_offset >= map->l_tls_blocksize);
+	  assert ((size_t) map->l_tls_offset >= map->l_tls_blocksize);
 	  dest = (char *) result - map->l_tls_offset;
 # elif TLS_DTV_AT_TP
 	  dest = (char *) result + map->l_tls_offset;
diff --git a/sysdeps/unix/sysv/linux/kernel-features.h b/sysdeps/unix/sysv/linux/kernel-features.h
index 168715e665..56b68ffb5a 100644
--- a/sysdeps/unix/sysv/linux/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/kernel-features.h
@@ -289,3 +289,8 @@
 # define __ASSUME_NETLINK_SUPPORT	1
 #endif
 
+/* For x86, support for the sysenter instruction was available in
+   2.5.53.  */
+#if __LINUX_KERNEL_VERSION >= 132405 && defined __i386__
+# define __ASSUME_VSYSCALL	1
+#endif