]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: Avoid local PLT in libpthread
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 3 Apr 2018 00:56:35 +0000 (02:56 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 3 Apr 2018 00:56:35 +0000 (02:56 +0200)
* htl/pt-exit.c: Include <pthreadP.h>.
(__pthread_exit): Call ___pthread_get_cleanup_stack instead of
__pthread_get_cleanup_stack.

ChangeLog
htl/pt-exit.c

index 0b54ed73b575a322301a71c866b8b8a13b21020c..8f4aa359ef9a23930dcc32ec08ce3ee4ddfb01fe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
        (pthread_detach): New strong alias.
        (__pthread_detach): Call __pthread_cond_broadcast instead of
        pthread_cond_broadcast.
-       * htl/pt-exit.c (__pthread_exit): Call __pthread_setcancelstate
-       instead of pthread_setcancelstate.
+       * htl/pt-exit.c: Include <pthreadP.h>.
+       (__pthread_exit): Call __pthread_setcancelstate and
+       ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
+       __pthread_get_cleanup_stack.
        * htl/pt-testcancel.c: Include <pthreadP.h>.
        (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
        * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
index 0815dbcd98f5d8e6cbbffe9cffbb1fecf10447ee..cb62f474fa82924c1811f18398ab85900c4b959f 100644 (file)
@@ -22,6 +22,7 @@
 #include <stdlib.h>
 
 #include <pt-internal.h>
+#include <pthreadP.h>
 
 #include <atomic.h>
 
@@ -40,7 +41,7 @@ __pthread_exit (void *status)
      disabled.  */
   __pthread_setcancelstate (PTHREAD_CANCEL_DISABLE, &oldstate);
 
-  for (handlers = __pthread_get_cleanup_stack ();
+  for (handlers = ___pthread_get_cleanup_stack ();
        *handlers != NULL;
        *handlers = (*handlers)->__next)
     (*handlers)->__handler ((*handlers)->__arg);