mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Hide internal __strsep function [BZ #18822]
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.
This commit is contained in:
@ -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>
|
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
[BZ #18822]
|
[BZ #18822]
|
||||||
|
@ -12,6 +12,7 @@ extern size_t __strnlen (const char *__string, size_t __maxlen)
|
|||||||
__attribute_pure__;
|
__attribute_pure__;
|
||||||
|
|
||||||
extern char *__strsep (char **__stringp, const char *__delim);
|
extern char *__strsep (char **__stringp, const char *__delim);
|
||||||
|
libc_hidden_proto (__strsep)
|
||||||
|
|
||||||
extern int __strverscmp (const char *__s1, const char *__s2)
|
extern int __strverscmp (const char *__s1, const char *__s2)
|
||||||
__attribute_pure__;
|
__attribute_pure__;
|
||||||
|
@ -46,4 +46,5 @@ __strsep (char **stringp, const char *delim)
|
|||||||
}
|
}
|
||||||
weak_alias (__strsep, strsep)
|
weak_alias (__strsep, strsep)
|
||||||
strong_alias (__strsep, __strsep_g)
|
strong_alias (__strsep, __strsep_g)
|
||||||
|
libc_hidden_def (__strsep)
|
||||||
libc_hidden_def (__strsep_g)
|
libc_hidden_def (__strsep_g)
|
||||||
|
Reference in New Issue
Block a user