aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-01 17:52:15 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-01 17:52:15 -0700
commit0e1fd06cde496eb4f3cefdbee44e794ab5d52cb7 (patch)
tree601c5102c65e21f126e7e2dbd5e951b2168f7367
parent36e7ae1e9d3b6a434e119aab4d10176aaaddf0c3 (diff)
downloadglibc-0e1fd06cde496eb4f3cefdbee44e794ab5d52cb7.tar
glibc-0e1fd06cde496eb4f3cefdbee44e794ab5d52cb7.tar.gz
glibc-0e1fd06cde496eb4f3cefdbee44e794ab5d52cb7.tar.bz2
glibc-0e1fd06cde496eb4f3cefdbee44e794ab5d52cb7.zip
Hide internal __setfpucw function [BZ #18822]
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.
-rw-r--r--ChangeLog5
-rw-r--r--include/fpu_control.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0563a751d5..1d92fd64e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
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]
* nscd/nscd_helper.c (__nis_hash): New prototype.
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
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 */