]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Hide internal __hash_string function [BZ #18822]
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 2 Oct 2017 00:41:20 +0000 (17:41 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 2 Oct 2017 00:41:34 +0000 (17:41 -0700)
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.

ChangeLog
intl/hash-string.h

index 24de2e0a6d34df39aa8cb5c0edb26b1abef63a75..1d9b8a4bbbd7fcbc883e7ab758329aac4be75874 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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]
index 21dcb16739d51b916107bab3f1eb52a3fc534f30..e579a7cab3175fd84beb144b5ab0e02f030f8122 100644 (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;