about summary refs log tree commit diff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-01 17:44:52 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-01 17:45:07 -0700
commit047d1a81fd82db4cd7458fec37230f3b31b414e9 (patch)
tree875420172074614a4c0a86f8bacec182b9354cfc
parentfd331b1179df7fef8016273fb26f5f054793875a (diff)
downloadglibc-047d1a81fd82db4cd7458fec37230f3b31b414e9.tar.gz
glibc-047d1a81fd82db4cd7458fec37230f3b31b414e9.tar.xz
glibc-047d1a81fd82db4cd7458fec37230f3b31b414e9.zip
Hide internal __vstrfmon_l function [BZ #18822]
Hide internal __vstrfmon_l function to allow direct access within libc.so
and libc.a without using GOT nor PLT.

	[BZ #18822]
	* include/monetary.h (__vstrfmon_l): Add attribute_hidden.
-rw-r--r--ChangeLog5
-rw-r--r--include/monetary.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e799d168b7..709f9836f8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
 	[BZ #18822]
+	* include/monetary.h (__vstrfmon_l): Add attribute_hidden.
+
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+	[BZ #18822]
 	* include/sched.h (__sched_setparam): Add libc_hidden_proto.
 	* posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
 
diff --git a/include/monetary.h b/include/monetary.h
index 2a182636d2..c130ed56a3 100644
--- a/include/monetary.h
+++ b/include/monetary.h
@@ -3,5 +3,6 @@
 #include <stdarg.h>
 
 extern ssize_t __vstrfmon_l (char *s, size_t maxsize, locale_t loc,
-			     const char *format, va_list ap);
+			     const char *format, va_list ap)
+     attribute_hidden;
 #endif