]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Hide internal __strsep function [BZ #18822]
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 1 Oct 2017 23:03:28 +0000 (16:03 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 1 Oct 2017 23:03:41 +0000 (16:03 -0700)
Hide internal __strsep function to allow direct access within libc.so and
libc.a without using GOT nor PLT.

[BZ #18822]
* include/string.h (__strsep): Add libc_hidden_proto.
* string/strsep.c (__strsep): Add libc_hidden_def.

ChangeLog
include/string.h
string/strsep.c

index 6ee7fd4f595f56bed61392ed18d5f8ebbc5f41ab..dcf1c0d090688c3b401292397a4b4ae7f392ee35 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       [BZ #18822]
+       * include/string.h (__strsep): Add libc_hidden_proto.
+       * string/strsep.c (__strsep): Add libc_hidden_def.
+
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #18822]
index 069efd0b87010e5fdb64c87ced7af1dc4f54f232..968d6fea057f1dd1118a113c21bc1f91b922f816 100644 (file)
@@ -12,6 +12,7 @@ extern size_t __strnlen (const char *__string, size_t __maxlen)
      __attribute_pure__;
 
 extern char *__strsep (char **__stringp, const char *__delim);
+libc_hidden_proto (__strsep)
 
 extern int __strverscmp (const char *__s1, const char *__s2)
      __attribute_pure__;
index 7091234a6ce57be2cff193677c7f8bb9c4f98cb2..b6103657a848012fb55988b3253f53eeb92b1d7f 100644 (file)
@@ -46,4 +46,5 @@ __strsep (char **stringp, const char *delim)
 }
 weak_alias (__strsep, strsep)
 strong_alias (__strsep, __strsep_g)
+libc_hidden_def (__strsep)
 libc_hidden_def (__strsep_g)