From 15af7396f761aa69c0ce5fdc6a149d5c0dba5205 Mon Sep 17 00:00:00 2001 From: GNU Libc Maintainers Date: Sun, 19 Sep 2021 19:46:59 +0100 Subject: [PATCH] git-libpthread_plt Commited for 2.33 commit 7c331116971d38e57703af4097ed13ab6bef91d0 Author: Samuel Thibault Date: Thu Dec 3 12:21:47 2020 +0100 htl: Add hidden def for __pthread_create/detach to avoid a PLT. Gbp-Pq: Topic hurd-i386 Gbp-Pq: Name git-libpthread_plt.diff --- htl/pt-create.c | 1 + htl/pt-detach.c | 1 + sysdeps/htl/pthreadP.h | 2 ++ 3 files changed, 4 insertions(+) diff --git a/htl/pt-create.c b/htl/pt-create.c index 7ac875cbf..61d99a380 100644 --- a/htl/pt-create.c +++ b/htl/pt-create.c @@ -91,6 +91,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 175560667..e842a3d3d 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 0eb969ea1..bf00f7d2f 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) -- 2.30.2