Mark internal intl functions with attribute_hidden [BZ #18822]

Mark internal intl functions with attribute_hidden to allow direct
access within libc.so and libc.a without using GOT nor PLT.

	[BZ #18822]
	* intl/gettextP.h (__dcngettext): Add attribute_hidden.
	(__dcigettext): Likewise.
This commit is contained in:
H.J. Lu 2017-10-01 15:58:05 -07:00
parent b5648377d9
commit 2ff16592d8
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
[BZ #18822]
* intl/gettextP.h (__dcngettext): Add attribute_hidden.
(__dcigettext): Likewise.
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
[BZ #18822]

View File

@ -49,11 +49,12 @@ extern char *__dngettext (const char *__domainname,
unsigned long int n);
extern char *__dcngettext (const char *__domainname,
const char *__msgid1, const char *__msgid2,
unsigned long int __n, int __category);
unsigned long int __n, int __category)
attribute_hidden;
extern char *__dcigettext (const char *__domainname,
const char *__msgid1, const char *__msgid2,
int __plural, unsigned long int __n,
int __category);
int __category) attribute_hidden;
extern char *__textdomain (const char *__domainname);
extern char *__bindtextdomain (const char *__domainname,
const char *__dirname);