Hide internal __hash_string function [BZ #18822]

Hide internal __hash_string function to allow direct access within
libc.so and libc.a without using GOT nor PLT.

	[BZ #18822]
	* intl/hash-string.h (__hash_string): Add attribute_hidden.
This commit is contained in:
H.J. Lu 2017-10-01 17:41:20 -07:00
parent d19033298f
commit 57f859bdb7
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
[BZ #18822]
* intl/hash-string.h (__hash_string): Add attribute_hidden.
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
[BZ #18822]

View File

@ -31,4 +31,5 @@
/* Defines the so called `hashpjw' function by P.J. Weinberger
[see Aho/Sethi/Ullman, COMPILERS: Principles, Techniques and Tools,
1986, 1987 Bell Telephone Laboratories, Inc.] */
extern unsigned long int __hash_string (const char *str_param);
extern unsigned long int __hash_string (const char *str_param)
attribute_hidden;