From: H.J. Lu Date: Mon, 2 Oct 2017 00:41:20 +0000 (-0700) Subject: Hide internal __hash_string function [BZ #18822] X-Git-Tag: glibc-2.27~787 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=57f859bdb7be1acb7eea48aba8edf0c6b5900191;p=thirdparty%2Fglibc.git 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. --- diff --git a/ChangeLog b/ChangeLog index 24de2e0a6d3..1d9b8a4bbbd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-10-01 H.J. Lu + + [BZ #18822] + * intl/hash-string.h (__hash_string): Add attribute_hidden. + 2017-10-01 H.J. Lu [BZ #18822] diff --git a/intl/hash-string.h b/intl/hash-string.h index 21dcb16739d..e579a7cab31 100644 --- a/intl/hash-string.h +++ b/intl/hash-string.h @@ -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;