From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 50490 invoked by alias); 3 Apr 2018 00:57:21 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 50479 invoked by uid 89); 3 Apr 2018 00:57:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_HELO_PASS,SPF_NEUTRAL autolearn=ham version=3.3.2 spammy= X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd,commited] hurd: Avoid local PLT in libpthread Date: Tue, 03 Apr 2018 00:57:00 -0000 Message-Id: <20180403005715.22031-1-samuel.thibault@ens-lyon.org> X-SW-Source: 2018-04/txt/msg00048.txt.bz2 * htl/pt-exit.c: Include . (__pthread_exit): Call ___pthread_get_cleanup_stack instead of __pthread_get_cleanup_stack. --- ChangeLog | 6 ++++-- htl/pt-exit.c | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0b54ed73b5..8f4aa359ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -249,8 +249,10 @@ (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 . + (__pthread_exit): Call __pthread_setcancelstate and + ___pthread_get_cleanup_stack instead of pthread_setcancelstate and + __pthread_get_cleanup_stack. * htl/pt-testcancel.c: Include . (pthread_testcancel): Call __pthread_exit instead of pthread_exit. * sysdeps/htl/pt-attr-getstack.c: Include diff --git a/htl/pt-exit.c b/htl/pt-exit.c index 0815dbcd98..cb62f474fa 100644 --- a/htl/pt-exit.c +++ b/htl/pt-exit.c @@ -22,6 +22,7 @@ #include #include +#include #include @@ -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); -- 2.16.2