aboutsummaryrefslogtreecommitdiffstats
path: root/htl
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-06-16 01:22:43 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-06-16 01:37:42 +0200
commit57e1651557e833744d345deff0cd595b31e621ff (patch)
treeb5ef98de554bd8a2430860f5bc2591893c437f7d /htl
parentfaf7bbc2d051f7351af5761e3f84f1c3c8b6479f (diff)
downloadtermbaud-57e1651557e833744d345deff0cd595b31e621ff.tar.gz
termbaud-57e1651557e833744d345deff0cd595b31e621ff.tar.xz
termbaud-57e1651557e833744d345deff0cd595b31e621ff.zip
hurd: Avoid PLT ref for __pthread_get_cleanup_stack
* htl/pt-cleanup.c (___pthread_get_cleanup_stack): Rename to __pthread_get_cleanup_stack. (__pthread_get_cleanup_stack): Remove alias, add hidden def. * htl/pt-exit.c (__pthread_exit): Use __pthread_get_cleanup_stack instead of ___pthread_get_cleanup_stack. * sysdeps/htl/pthread-functions.h [libpthread] (__pthread_get_cleanup_stack): Add hidden proto. * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Remove prototype.
Diffstat (limited to 'htl')
-rw-r--r--htl/pt-cleanup.c4
-rw-r--r--htl/pt-exit.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/htl/pt-cleanup.c b/htl/pt-cleanup.c
index 1b860c7bf7c..b4a9834dc1c 100644
--- a/htl/pt-cleanup.c
+++ b/htl/pt-cleanup.c
@@ -21,8 +21,8 @@
#include <pt-internal.h>
struct __pthread_cancelation_handler **
-___pthread_get_cleanup_stack (void)
+__pthread_get_cleanup_stack (void)
{
return &_pthread_self ()->cancelation_handlers;
}
-strong_alias (___pthread_get_cleanup_stack, __pthread_get_cleanup_stack)
+libc_hidden_def (__pthread_get_cleanup_stack)
diff --git a/htl/pt-exit.c b/htl/pt-exit.c
index cb62f474fa8..823e09e26e0 100644
--- a/htl/pt-exit.c
+++ b/htl/pt-exit.c
@@ -41,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);