From: GNU Libc Maintainers Date: Tue, 5 Jan 2021 05:47:42 +0000 (+0000) Subject: git-libpthread_plt X-Git-Tag: archive/raspbian/2.31-9+rpi1^2~71 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7fff54ab1ea7828016e7adb42b4b5b455c158fb2;p=glibc.git 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 --- diff --git a/htl/pt-create.c b/htl/pt-create.c index 0b3237f46..5ba04c196 100644 --- a/htl/pt-create.c +++ b/htl/pt-create.c @@ -80,6 +80,7 @@ __pthread_create (pthread_t * thread, const pthread_attr_t * attr, return err; } strong_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 3d8e3ad0f..6327b45ce 100644 --- a/htl/pt-detach.c +++ b/htl/pt-detach.c @@ -78,3 +78,4 @@ __pthread_detach (pthread_t thread) return err; } strong_alias (__pthread_detach, pthread_detach) +hidden_def (__pthread_detach) diff --git a/sysdeps/htl/pthreadP.h b/sysdeps/htl/pthreadP.h index affe7cdf5..43208dd39 100644 --- a/sysdeps/htl/pthreadP.h +++ b/sysdeps/htl/pthreadP.h @@ -70,6 +70,8 @@ int __pthread_attr_getstack (const pthread_attr_t *, void **, size_t *); struct __pthread_cancelation_handler **___pthread_get_cleanup_stack (void) attribute_hidden; #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)