Hide internal __tdestroy function [BZ #18822]
Hide internal __tdestroy function to allow direct access within libc.so and libc.a without using GOT nor PLT. [BZ #18822] * include/search.h (__tdestroy): Add libc_hidden_proto. * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
This commit is contained in:
parent
048dd6813f
commit
fe84fed048
|
@ -1,3 +1,9 @@
|
||||||
|
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
[BZ #18822]
|
||||||
|
* include/search.h (__tdestroy): Add libc_hidden_proto.
|
||||||
|
* misc/tsearch.c (__tdestroy): Add libc_hidden_def.
|
||||||
|
|
||||||
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
|
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
[BZ #18822]
|
[BZ #18822]
|
||||||
|
|
|
@ -24,5 +24,6 @@ libc_hidden_proto (__tdelete)
|
||||||
extern void __twalk (const void *__root, __action_fn_t action);
|
extern void __twalk (const void *__root, __action_fn_t action);
|
||||||
libc_hidden_proto (__twalk)
|
libc_hidden_proto (__twalk)
|
||||||
extern void __tdestroy (void *__root, __free_fn_t freefct);
|
extern void __tdestroy (void *__root, __free_fn_t freefct);
|
||||||
|
libc_hidden_proto (__tdestroy)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -745,4 +745,5 @@ __tdestroy (void *vroot, __free_fn_t freefct)
|
||||||
if (root != NULL)
|
if (root != NULL)
|
||||||
tdestroy_recurse (root, freefct);
|
tdestroy_recurse (root, freefct);
|
||||||
}
|
}
|
||||||
|
libc_hidden_def (__tdestroy)
|
||||||
weak_alias (__tdestroy, tdestroy)
|
weak_alias (__tdestroy, tdestroy)
|
||||||
|
|
Loading…
Reference in New Issue