Update.
2002-12-11 Ulrich Drepper <drepper@redhat.com> * init.c (__pthread_initialize_minimal): Fix initialization in static lib by preventing gcc from being too clever.
This commit is contained in:
parent
70a8ca6d89
commit
85631c8ecf
@ -1,3 +1,8 @@
|
||||
2002-12-11 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* init.c (__pthread_initialize_minimal): Fix initialization in
|
||||
static lib by preventing gcc from being too clever.
|
||||
|
||||
2002-12-10 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* init.c (__pthread_initialize_minimal): Remove unneccesary
|
||||
|
@ -104,6 +104,12 @@ __pthread_initialize_minimal (void)
|
||||
/* Unlike in the dynamically linked case the dynamic linker has not
|
||||
taken care of initializing the TLS data structures. */
|
||||
__libc_setup_tls (TLS_TCB_SIZE, TLS_TCB_ALIGN);
|
||||
|
||||
/* We must prevent gcc from being clever and move any of the
|
||||
following code ahead of the __libc_setup_tls call. This function
|
||||
will initialize the thread register which is subsequently
|
||||
used. */
|
||||
__asm __volatile ("");
|
||||
#endif
|
||||
|
||||
/* Minimal initialization of the thread descriptor. */
|
||||
|
Loading…
Reference in New Issue
Block a user