]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Hide internal __setfpucw function [BZ #18822]
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 2 Oct 2017 00:52:15 +0000 (17:52 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 2 Oct 2017 00:52:15 +0000 (17:52 -0700)
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.

ChangeLog
include/fpu_control.h

index 0563a751d508a1c31a4aafabed4a70362d4a3e8a..1d92fd64e49ff6ee6ea9415d75d8c972b0f18675 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       [BZ #18822]
+       * include/fpu_control.h (__setfpucw): Add attribute_hidden.
+
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #18822]
index 4498a83b878acb5a2daf356db4f03bfecf881237..5c6b3862782f7ac47a860a7d819475f7f2540cb5 100644 (file)
@@ -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 */