]> sourceware.org Git - glibc.git/commitdiff
Hide internal __tdestroy function [BZ #18822]
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 1 Oct 2017 23:06:43 +0000 (16:06 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 1 Oct 2017 23:06:58 +0000 (16:06 -0700)
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.

ChangeLog
include/search.h
misc/tsearch.c

index 2b486b19a63e91600b201e1566eac3337746e729..ccdc1c8614abaa9a29100336a7bb23674f8effd4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        [BZ #18822]
index a941959dbebbc611407c255a2bd7f5ee269e492c..e17693022d947a43f8d4bfc050f91ffaabe45dd9 100644 (file)
@@ -24,5 +24,6 @@ libc_hidden_proto (__tdelete)
 extern void __twalk (const void *__root, __action_fn_t action);
 libc_hidden_proto (__twalk)
 extern void __tdestroy (void *__root, __free_fn_t freefct);
+libc_hidden_proto (__tdestroy)
 #endif
 #endif
index aef9c7c1eebe4ccd9689050f762cc58ae231b949..cdc401a4e5411221ab2feb2baf8745991bde7868 100644 (file)
@@ -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)
This page took 0.071701 seconds and 5 git commands to generate.