diff mbox series

[hurd,commited] htl: Add hidden def for __pthread_create/detach

Message ID 20201203113021.1904217-1-samuel.thibault@ens-lyon.org
State New
Headers show
Series [hurd,commited] htl: Add hidden def for __pthread_create/detach | expand

Commit Message

Samuel Thibault Dec. 3, 2020, 11:30 a.m. UTC
to avoid a PLT.
---
 htl/pt-create.c        | 1 +
 htl/pt-detach.c        | 1 +
 sysdeps/htl/pthreadP.h | 2 ++
 3 files changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/htl/pt-create.c b/htl/pt-create.c
index 9364c40453..fc2f8d4ad0 100644
--- a/htl/pt-create.c
+++ b/htl/pt-create.c
@@ -97,6 +97,7 @@  __pthread_create (pthread_t * thread, const pthread_attr_t * attr,
   return err;
 }
 weak_alias (__pthread_create, pthread_create)
+hidden_def (__pthread_create)
 
 /* Internal version of pthread_create.  See comment in
    pt-internal.h.  */
diff --git a/htl/pt-detach.c b/htl/pt-detach.c
index 175560667a..e842a3d3d7 100644
--- a/htl/pt-detach.c
+++ b/htl/pt-detach.c
@@ -78,3 +78,4 @@  __pthread_detach (pthread_t thread)
   return err;
 }
 weak_alias (__pthread_detach, pthread_detach)
+hidden_def (__pthread_detach)
diff --git a/sysdeps/htl/pthreadP.h b/sysdeps/htl/pthreadP.h
index 0eb969ea1a..bf00f7d2f0 100644
--- a/sysdeps/htl/pthreadP.h
+++ b/sysdeps/htl/pthreadP.h
@@ -97,6 +97,8 @@  int __pthread_attr_getstack (const pthread_attr_t *, void **, size_t *);
 void __pthread_testcancel (void);
 
 #if IS_IN (libpthread)
+hidden_proto (__pthread_create)
+hidden_proto (__pthread_detach)
 hidden_proto (__pthread_key_create)
 hidden_proto (__pthread_getspecific)
 hidden_proto (__pthread_setspecific)