m68k: define TLS_DTV_UNALLOCATED
authorAndreas Schwab <schwab@linux-m68k.org>
Mon, 11 Apr 2011 10:59:31 +0000 (12:59 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Mon, 11 Apr 2011 14:03:18 +0000 (16:03 +0200)
ChangeLog.m68k
sysdeps/m68k/dl-tls.h

index ad78ade..f54a74c 100644 (file)
@@ -1,3 +1,7 @@
+2011-04-11  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Define.
+
 2011-04-03  Andreas Schwab  <schwab@linux-m68k.org>
 
        * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Update comments.
index f2ce998..cebdc2d 100644 (file)
@@ -1,5 +1,5 @@
 /* Thread-local storage handling in the ELF dynamic linker.  M68K version.
-   Copyright (C) 2010 Free Software Foundation, Inc.
+   Copyright (C) 2010, 2011 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Maxim Kuvyrkov <maxim@codesourcery.com>, 2010.
 
@@ -44,5 +44,8 @@ typedef struct
 
 extern void *__tls_get_addr (tls_index *ti);
 
-#define GET_ADDR_OFFSET                (ti->ti_offset + TLS_DTV_OFFSET)
+#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)