This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Define TLS_DTV_UNALLOCATED in dl-tls.h
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: libc-ports at sourceware dot org
- Date: Mon, 11 Apr 2011 13:32:24 +0000 (UTC)
- Subject: Define TLS_DTV_UNALLOCATED in dl-tls.h
A recent libc change involves all dl-tls.h headers defining
TLS_DTV_UNALLOCATED. I've applied these changes for ARM and MIPS; other
ports headers (Alpha, PA, M68K) will need similar changes.
diff --git a/ChangeLog.arm b/ChangeLog.arm
index 31f478e..9db4a34 100644
--- a/ChangeLog.arm
+++ b/ChangeLog.arm
@@ -1,3 +1,7 @@
+2011-04-11 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Define.
+
2011-04-01 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Rename open_by_handle
diff --git a/ChangeLog.mips b/ChangeLog.mips
index 01703e8..453774f 100644
--- a/ChangeLog.mips
+++ b/ChangeLog.mips
@@ -1,3 +1,7 @@
+2011-04-11 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Define.
+
2011-04-01 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Rename open_by_handle
diff --git a/sysdeps/arm/dl-tls.h b/sysdeps/arm/dl-tls.h
index 02285a7..694d11d 100644
--- a/sysdeps/arm/dl-tls.h
+++ b/sysdeps/arm/dl-tls.h
@@ -1,5 +1,5 @@
/* Thread-local storage handling in the ELF dynamic linker. ARM version.
- Copyright (C) 2005 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -27,3 +27,6 @@ typedef struct dl_tls_index
extern void *__tls_get_addr (tls_index *ti);
+
+/* Value used for dtv entries for which the allocation is delayed. */
+#define TLS_DTV_UNALLOCATED ((void *) -1l)
diff --git a/sysdeps/mips/dl-tls.h b/sysdeps/mips/dl-tls.h
index 6d3ed6f..75facb0 100644
--- a/sysdeps/mips/dl-tls.h
+++ b/sysdeps/mips/dl-tls.h
@@ -1,5 +1,5 @@
/* Thread-local storage handling in the ELF dynamic linker. MIPS version.
- Copyright (C) 2005 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -44,3 +44,6 @@ extern void *__tls_get_addr (tls_index *ti);
# define GET_ADDR_OFFSET (ti->ti_offset + TLS_DTV_OFFSET)
# define __TLS_GET_ADDR(__ti) (__tls_get_addr (__ti) - TLS_DTV_OFFSET)
+
+/* Value used for dtv entries for which the allocation is delayed. */
+#define TLS_DTV_UNALLOCATED ((void *) -1l)
--
Joseph S. Myers
joseph@codesourcery.com