git-libpthread_plt
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sun, 19 Sep 2021 18:46:59 +0000 (19:46 +0100)
committerAurelien Jarno <aurel32@debian.org>
Sun, 19 Sep 2021 18:46:59 +0000 (19:46 +0100)
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 7ac875cbf7b74aad8d8858f12a3a6083da85e8b4..61d99a380217610f7a0eb9423fe09bce0b3ec159 100644 (file)
@@ -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.  */
index 175560667a34dbfc254adc48b624b9ab94ce74ab..e842a3d3d76ccf3d7bb0c1fc5ec3efba9e9d0d8d 100644 (file)
@@ -78,3 +78,4 @@ __pthread_detach (pthread_t thread)
   return err;
 }
 weak_alias (__pthread_detach, pthread_detach)
+hidden_def (__pthread_detach)
index 0eb969ea1a3f5608d37569ffd5b927bad7a92370..bf00f7d2f0228434ca5a006861f230fbacc3f46c 100644 (file)
@@ -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)