* [hurd,commited] hurd: Avoid local PLT in libpthread
@ 2018-04-03 0:57 Samuel Thibault
0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2018-04-03 0:57 UTC (permalink / raw)
To: libc-alpha; +Cc: Samuel Thibault
* htl/pt-exit.c: Include <pthreadP.h>.
(__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 <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>
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 <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);
--
2.16.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-04-03 0:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-03 0:57 [hurd,commited] hurd: Avoid local PLT in libpthread Samuel Thibault
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).