aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-01 15:58:05 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-01 15:58:20 -0700
commit2ff16592d8a6b873467c9348f609738973217288 (patch)
treef9b42284f82ce509135760d7af6988ae6eec3e3f
parentb5648377d923d790dd7e995d79d480066b25e6bb (diff)
downloadglibc-2ff16592d8a6b873467c9348f609738973217288.tar
glibc-2ff16592d8a6b873467c9348f609738973217288.tar.gz
glibc-2ff16592d8a6b873467c9348f609738973217288.tar.bz2
glibc-2ff16592d8a6b873467c9348f609738973217288.zip
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.
-rw-r--r--ChangeLog6
-rw-r--r--intl/gettextP.h5
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 4851dc7c12..970bc5fdc7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
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]
* include/sys/sysinfo.h (__get_nprocs_conf): Add
libc_hidden_proto.
(__get_nprocs): Likewise.
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);