git-libpthread_plt
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Wed, 30 Apr 2025 01:01:35 +0000 (09:01 +0800)
committerSean Whitton <spwhitton@spwhitton.name>
Wed, 30 Apr 2025 01:01:35 +0000 (09:01 +0800)
Commited for 2.33

commit 7c331116971d38e57703af4097ed13ab6bef91d0
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
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
htl/pt-detach.c
sysdeps/htl/pthreadP.h

index 0b3237f46a0a4ec09fb7f85640cbba391a271cb5..5ba04c196728a15d6c227d218da0924c503a69ef 100644 (file)
@@ -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.  */
index 3d8e3ad0fe8c4e77795aee6776647b57e7cea022..6327b45ce2d38eca2d0030ce848a2ca6adcacea1 100644 (file)
@@ -78,3 +78,4 @@ __pthread_detach (pthread_t thread)
   return err;
 }
 strong_alias (__pthread_detach, pthread_detach)
+hidden_def (__pthread_detach)
index affe7cdf53a652f632fdcdd459f614ca361c99c5..43208dd396340b00147855e1cc4160bdcd044215 100644 (file)
@@ -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)