[26/58] Mark internal intl functions with attribute_hidden [BZ #18822]

Message ID 20170901180029.9527-27-hjl.tools@gmail.com
State Committed
Commit 2ff16592d8a6b873467c9348f609738973217288
Headers

Commit Message

H.J. Lu Sept. 1, 2017, 5:59 p.m. UTC
  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.
---
 intl/gettextP.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
  

Comments

H.J. Lu Oct. 1, 2017, 10:25 p.m. UTC | #1
On 9/1/17, H.J. Lu <hjl.tools@gmail.com> wrote:
> 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.

Tested with build-many-glibcs.py.  I am checking it in.
  

Patch

diff --git a/intl/gettextP.h b/intl/gettextP.h
index 75b203ab52..d0af470b25 100644
--- a/intl/gettextP.h
+++ b/intl/gettextP.h
@@ -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);