Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update.
2003-02-26  Ulrich Drepper  <drepper@redhat.com>

	* init.c (__pthread_initialize_minimal_internal): Set
	GL(dl_error_catch_tsd) to __libc_dl_error_tsd.
	* Versions (libc:GLIBC_PRIVATE): Export __libc_dl_error_tsd.
  • Loading branch information
Ulrich Drepper committed Feb 27, 2003
1 parent d4a763f commit b153118
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nptl/ChangeLog
@@ -1,3 +1,9 @@
2003-02-26 Ulrich Drepper <drepper@redhat.com>

* init.c (__pthread_initialize_minimal_internal): Set
GL(dl_error_catch_tsd) to __libc_dl_error_tsd.
* Versions (libc:GLIBC_PRIVATE): Export __libc_dl_error_tsd.

2003-02-24 Ulrich Drepper <drepper@redhat.com>

* sem_open.c (sem_open): Fix handling of O_CREAT without O_EXCL.
Expand Down
10 changes: 10 additions & 0 deletions nptl/init.c
Expand Up @@ -160,6 +160,10 @@ sigcancel_handler (int sig __attribute ((unused)))
}


/* When using __thread for this, we do it in libc so as not
to give libpthread its own TLS segment just for this. */
extern void **__libc_dl_error_tsd (void) __attribute__ ((const));


void
__pthread_initialize_minimal_internal (void)
Expand Down Expand Up @@ -231,6 +235,12 @@ __pthread_initialize_minimal_internal (void)
__static_tls_align = STACK_ALIGN;
__static_tls_size = roundup (__static_tls_size, __static_tls_align);

#ifdef SHARED
/* Transfer the old value from the dynamic linker's internal location. */
*__libc_dl_error_tsd () = *(*GL(dl_error_catch_tsd)) ();
GL(dl_error_catch_tsd) = &__libc_dl_error_tsd;
#endif

/* Register the fork generation counter with the libc. */
__libc_pthread_init (&__fork_generation, __reclaim_stacks,
ptr_pthread_functions);
Expand Down

0 comments on commit b153118

Please sign in to comment.