diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/errno.h | 2 | ||||
-rw-r--r-- | include/link.h | 10 | ||||
-rw-r--r-- | include/tls.h | 3 |
3 files changed, 6 insertions, 9 deletions
diff --git a/include/errno.h b/include/errno.h index fe8bca44c5..80c7b6ec13 100644 --- a/include/errno.h +++ b/include/errno.h @@ -19,7 +19,7 @@ extern int rtld_errno attribute_hidden; # else -# include <tls.h> /* Defines USE_TLS. */ +# include <tls.h> # if USE___THREAD # undef errno diff --git a/include/link.h b/include/link.h index 80eff3a677..b45deabf7f 100644 --- a/include/link.h +++ b/include/link.h @@ -42,7 +42,7 @@ extern unsigned int la_objopen (struct link_map *__map, Lmid_t __lmid, #include <stddef.h> #include <bits/linkmap.h> #include <dl-lookupcfg.h> -#include <tls.h> /* Defines USE_TLS. */ +#include <tls.h> #include <bits/libc-lock.h> #include <rtld-lowlevel.h> @@ -261,7 +261,6 @@ struct link_map const ElfW(Sym) *ret; } l_lookup_cache; -#ifdef USE_TLS /* Thread-local storage related info. */ /* Start of the initialization image. */ @@ -274,14 +273,13 @@ struct link_map size_t l_tls_align; /* Offset of first byte module alignment. */ size_t l_tls_firstbyte_offset; -# ifndef NO_TLS_OFFSET -# define NO_TLS_OFFSET 0 -# endif +#ifndef NO_TLS_OFFSET +# define NO_TLS_OFFSET 0 +#endif /* For objects present at startup time: offset in the static TLS block. */ ptrdiff_t l_tls_offset; /* Index of the module in the dtv array. */ size_t l_tls_modid; -#endif /* Information used to change permission after the relocations are done. */ diff --git a/include/tls.h b/include/tls.h index ffd3e4e70c..1642456a73 100644 --- a/include/tls.h +++ b/include/tls.h @@ -5,8 +5,7 @@ #include_next <tls.h> -#if USE_TLS && HAVE___THREAD \ - && (!defined NOT_IN_libc || defined IS_IN_libpthread) +#if HAVE___THREAD && (!defined NOT_IN_libc || defined IS_IN_libpthread) # define USE___THREAD 1 |