1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

* 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.
This commit is contained in:
Roland McGrath
2002-08-12 06:25:47 +00:00
parent 7a8bdff02c
commit e6f526809d
7 changed files with 35 additions and 6 deletions

View File

@ -429,7 +429,6 @@ __pthread_initialize_minimal(void)
part of the TLS allocation. We have to initialize the data
structure by hand. This initialization must mirror the struct
definition above. */
self->p_header.data.self = self;
self->p_nextlive = self->p_prevlive = self;
self->p_tid = PTHREAD_THREADS_MAX;
self->p_lock = &__pthread_handles[0].h_lock;
@ -633,6 +632,7 @@ int __pthread_initialize_manager(void)
}
/* Initialize the descriptor. */
tcb->p_header.data.tcb = tcb;
tcb->p_header.data.self = tcb;
tcb->p_lock = &__pthread_handles[1].h_lock;
# ifndef HAVE___THREAD