htl: Add hidden def for __pthread_create/detach

to avoid a PLT.
This commit is contained in:
Samuel Thibault 2020-12-03 12:21:47 +01:00
parent e960d8313d
commit 7c33111697
3 changed files with 4 additions and 0 deletions

View File

@ -97,6 +97,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. */

View File

@ -78,3 +78,4 @@ __pthread_detach (pthread_t thread)
return err;
}
weak_alias (__pthread_detach, pthread_detach)
hidden_def (__pthread_detach)

View 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)