about summary refs log tree commit diff
path: root/misc
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-01 16:06:43 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-01 16:06:58 -0700
commitfe84fed04800bc5becb9fba84db98f58007e77f3 (patch)
tree6e9a03e0637ea863e35bd3de6fdce3f785076ac6 /misc
parent048dd6813f36c31fa21871d840a0b62f1c3a590f (diff)
downloadglibc-fe84fed04800bc5becb9fba84db98f58007e77f3.tar.gz
glibc-fe84fed04800bc5becb9fba84db98f58007e77f3.tar.xz
glibc-fe84fed04800bc5becb9fba84db98f58007e77f3.zip
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.
Diffstat (limited to 'misc')
-rw-r--r--misc/tsearch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/tsearch.c b/misc/tsearch.c
index aef9c7c1ee..cdc401a4e5 100644
--- a/misc/tsearch.c
+++ b/misc/tsearch.c
@@ -745,4 +745,5 @@ __tdestroy (void *vroot, __free_fn_t freefct)
   if (root != NULL)
     tdestroy_recurse (root, freefct);
 }
+libc_hidden_def (__tdestroy)
 weak_alias (__tdestroy, tdestroy)