[46/58] Hide internal __vstrfmon_l function [BZ #18822]

Message ID 20170901180029.9527-47-hjl.tools@gmail.com
State Committed
Commit 047d1a81fd82db4cd7458fec37230f3b31b414e9
Headers

Commit Message

H.J. Lu Sept. 1, 2017, 6 p.m. UTC
  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.
---
 include/monetary.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Comments

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

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

Patch

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