]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: Avoid PLTs for __pthread_get/setspecific
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 8 Aug 2018 23:26:19 +0000 (01:26 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 8 Aug 2018 23:28:55 +0000 (01:28 +0200)
* sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
__pthread_setspecific): Add hidden proto.
* sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
* sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.

ChangeLog
sysdeps/htl/pt-getspecific.c
sysdeps/htl/pt-setspecific.c
sysdeps/htl/pthreadP.h

index 37fe532a68f35f8d54e5ad606297776888523dfc..26c7ef067a1932a26b570b887ed1431733c53cd0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 
        * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
        symbols.
+       * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
+       __pthread_setspecific): Add hidden proto.
+       * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
+       * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
 
 2018-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
 
index a0227a67f61cb83d4adb7825e3181b0697577a7c..64ddf9551a852f536c19259b542f54ea4681abe3 100644 (file)
@@ -36,3 +36,4 @@ __pthread_getspecific (pthread_key_t key)
   return self->thread_specifics[key];
 }
 strong_alias (__pthread_getspecific, pthread_getspecific);
+hidden_def (__pthread_getspecific)
index a46a12f157a17ad47148f36dcf80afe329bd9076..02aff417efcdac8679163493effb52334bd0196f 100644 (file)
@@ -48,3 +48,4 @@ __pthread_setspecific (pthread_key_t key, const void *value)
   return 0;
 }
 strong_alias (__pthread_setspecific, pthread_setspecific);
+hidden_def (__pthread_setspecific)
index 132ac1718eafc059b3857da91764d03905590f1a..71c2fcd9c6509c24c50726a2e5b6956b281fddc8 100644 (file)
@@ -68,6 +68,8 @@ struct __pthread_cancelation_handler **___pthread_get_cleanup_stack (void) attri
 
 #if IS_IN (libpthread)
 hidden_proto (__pthread_key_create)
+hidden_proto (__pthread_getspecific)
+hidden_proto (__pthread_setspecific)
 hidden_proto (_pthread_mutex_init)
 #endif