提交 16a522ba 编写于 作者: R Rich Felker

fix unintended linking dependency of pthread_key_create on __synccall

commit 84d061d5 attempted to do this
already, but omitted from pthread_key_create.c the weak definition of
__pthread_key_delete_synccall, so that the definition provided by
pthread_key_delete.c was always pulled in.

based on patch by Markus Wichmann, but with a weak alias rather than
weak reference for consistency/policy about dependence on tooling
features.
上级 de7dc131
......@@ -35,6 +35,12 @@ static void clean_dirty_tsd_callback(void *p)
if (args->caller == self) args->ret = 0;
}
static void dummy2(void (*f)(void *), void *p)
{
}
weak_alias(dummy2, __pthread_key_delete_synccall);
static int clean_dirty_tsd(void)
{
struct cleanup_args args = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册