diff options
author | Roland McGrath <roland@gnu.org> | 2002-08-12 06:25:47 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-08-12 06:25:47 +0000 |
commit | e6f526809dbca3e772147b7bdedc3ebca8aff30e (patch) | |
tree | 8d01638a6124709150e9dd99bdd2073c1da27378 /linuxthreads/manager.c | |
parent | 7a8bdff02c8bc80d5068eadf83302595d11f46d4 (diff) | |
download | glibc-e6f526809dbca3e772147b7bdedc3ebca8aff30e.zip glibc-e6f526809dbca3e772147b7bdedc3ebca8aff30e.tar.gz glibc-e6f526809dbca3e772147b7bdedc3ebca8aff30e.tar.bz2 |
* elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
of the TLS macros, otherwise the compiler might not have initialized
the PIC register yet when we use the PLT via asm.
* elf/tst-tlsmod3.c (in_dso2): Likewise.
* elf/tst-tlsmod2.c (in_dso): Likewise.
Diffstat (limited to 'linuxthreads/manager.c')
-rw-r--r-- | linuxthreads/manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linuxthreads/manager.c b/linuxthreads/manager.c index 8ad9eb5..655c7d6 100644 --- a/linuxthreads/manager.c +++ b/linuxthreads/manager.c @@ -644,6 +644,7 @@ static int pthread_handle_create(pthread_t *thread, const pthread_attr_t *attr, /* Initialize the thread descriptor. Elements which have to be initialized to zero already have this value. */ new_thread->p_header.data.tcb = new_thread; + new_thread->p_header.data.self = new_thread; new_thread->p_tid = new_thread_id; new_thread->p_lock = &(__pthread_handles[sseg].h_lock); new_thread->p_cancelstate = PTHREAD_CANCEL_ENABLE; @@ -655,7 +656,6 @@ static int pthread_handle_create(pthread_t *thread, const pthread_attr_t *attr, #endif new_thread->p_guardaddr = guardaddr; new_thread->p_guardsize = guardsize; - new_thread->p_header.data.self = new_thread; new_thread->p_nr = sseg; new_thread->p_inheritsched = attr ? attr->__inheritsched : 0; /* Initialize the thread handle */ |