[50/58] Hide internal __setfpucw function [BZ #18822]

Message ID 20170901180029.9527-51-hjl.tools@gmail.com
State Committed
Commit 0e1fd06cde496eb4f3cefdbee44e794ab5d52cb7
Headers

Commit Message

H.J. Lu Sept. 1, 2017, 6 p.m. UTC
  Hide internal __setfpucw function to allow direct access within libc.so
and libc.a without using GOT nor PLT.

	[BZ #18822]
	* include/fpu_control.h (__setfpucw): Add attribute_hidden.
---
 include/fpu_control.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

H.J. Lu Oct. 2, 2017, 12:51 a.m. UTC | #1
On 9/1/17, H.J. Lu <hjl.tools@gmail.com> wrote:
> Hide internal __setfpucw function to allow direct access within libc.so
> and libc.a without using GOT nor PLT.
>
> 	[BZ #18822]
> 	* include/fpu_control.h (__setfpucw): Add attribute_hidden.
> ---

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

Patch

diff --git a/include/fpu_control.h b/include/fpu_control.h
index 4498a83b87..5c6b386278 100644
--- a/include/fpu_control.h
+++ b/include/fpu_control.h
@@ -4,7 +4,7 @@ 
 # ifndef _ISOMAC
 
 /* Called at startup.  It can be used to manipulate fpu control register.  */
-extern void __setfpucw (fpu_control_t);
+extern void __setfpucw (fpu_control_t) attribute_hidden;
 
 # endif /* !_ISOMAC */
 #endif /* fpu_control.h */