diff options
author | Roland McGrath <roland@hack.frob.com> | 2014-11-12 14:50:09 -0800 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2014-11-12 14:52:31 -0800 |
commit | c6aab2cb524a9c54613f0a4f8310fc1ab48658a8 (patch) | |
tree | d71c37549eca9cc596632e3985942cbcbf582d1a /nptl | |
parent | 24f4f8253f177f8a1f5a6cd5f59be1cf766be284 (diff) | |
download | glibc-c6aab2cb524a9c54613f0a4f8310fc1ab48658a8.tar.gz glibc-c6aab2cb524a9c54613f0a4f8310fc1ab48658a8.tar.xz glibc-c6aab2cb524a9c54613f0a4f8310fc1ab48658a8.zip |
NPTL: Move __libc_multiple_threads_ptr defn to nptl-init.c
Diffstat (limited to 'nptl')
-rw-r--r-- | nptl/createthread.c | 6 | ||||
-rw-r--r-- | nptl/nptl-init.c | 5 |
2 files changed, 5 insertions, 6 deletions
diff --git a/nptl/createthread.c b/nptl/createthread.c index 0980a7748b..49442d9f23 100644 --- a/nptl/createthread.c +++ b/nptl/createthread.c @@ -36,12 +36,6 @@ #endif -#ifndef TLS_MULTIPLE_THREADS_IN_TCB -/* Pointer to the corresponding variable in libc. */ -int *__libc_multiple_threads_ptr attribute_hidden; -#endif - - static int do_clone (struct pthread *pd, const struct pthread_attr *attr, int clone_flags, int (*fct) (void *), STACK_VARIABLES_PARMS, diff --git a/nptl/nptl-init.c b/nptl/nptl-init.c index b7d2197b3e..831d762a70 100644 --- a/nptl/nptl-init.c +++ b/nptl/nptl-init.c @@ -37,6 +37,11 @@ #include <kernel-features.h> +#ifndef TLS_MULTIPLE_THREADS_IN_TCB +/* Pointer to the corresponding variable in libc. */ +int *__libc_multiple_threads_ptr attribute_hidden; +#endif + /* Size and alignment of static TLS block. */ size_t __static_tls_size; size_t __static_tls_align_m1; |