mirror of git://sourceware.org/git/glibc.git
(pthread_functions): Don't add .ptr_wait_lookup_done here. (__pthread_initialize_minimal_internal): Initialize _dl_wait_lookup_done pointer in _rtld_global directly.
This commit is contained in:
parent
2c9718f3b3
commit
7adefea85d
|
|
@ -117,8 +117,7 @@ static const struct pthread_functions pthread_functions =
|
||||||
.ptr__nptl_deallocate_tsd = __nptl_deallocate_tsd,
|
.ptr__nptl_deallocate_tsd = __nptl_deallocate_tsd,
|
||||||
.ptr__nptl_setxid = __nptl_setxid,
|
.ptr__nptl_setxid = __nptl_setxid,
|
||||||
/* For now only the stack cache needs to be freed. */
|
/* For now only the stack cache needs to be freed. */
|
||||||
.ptr_freeres = __free_stack_cache,
|
.ptr_freeres = __free_stack_cache
|
||||||
.ptr_wait_lookup_done = __wait_lookup_done
|
|
||||||
};
|
};
|
||||||
# define ptr_pthread_functions &pthread_functions
|
# define ptr_pthread_functions &pthread_functions
|
||||||
#else
|
#else
|
||||||
|
|
@ -366,6 +365,8 @@ __pthread_initialize_minimal_internal (void)
|
||||||
|
|
||||||
GL(dl_init_static_tls) = &__pthread_init_static_tls;
|
GL(dl_init_static_tls) = &__pthread_init_static_tls;
|
||||||
|
|
||||||
|
GL(dl_wait_lookup_done) = &__wait_lookup_done;
|
||||||
|
|
||||||
/* Register the fork generation counter with the libc. */
|
/* Register the fork generation counter with the libc. */
|
||||||
#ifndef TLS_MULTIPLE_THREADS_IN_TCB
|
#ifndef TLS_MULTIPLE_THREADS_IN_TCB
|
||||||
__libc_multiple_threads_ptr =
|
__libc_multiple_threads_ptr =
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue