diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-10-01 17:53:31 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-10-01 17:53:55 -0700 |
commit | 7bfd08ac5be538a2beaa48f029944e01fb3b5d7a (patch) | |
tree | 4c88d6e6fbf4815134061dba2830c364d8cd9c23 | |
parent | 0e1fd06cde496eb4f3cefdbee44e794ab5d52cb7 (diff) | |
download | glibc-7bfd08ac5be538a2beaa48f029944e01fb3b5d7a.tar.gz glibc-7bfd08ac5be538a2beaa48f029944e01fb3b5d7a.tar.xz glibc-7bfd08ac5be538a2beaa48f029944e01fb3b5d7a.zip |
Hide internal __init_misc function [BZ #18822]
Hide internal __init_misc function to allow direct access within libc.so and libc.a without using GOT nor PLT. [BZ #18822] * include/libc-internal.h (__init_misc): Add attribute_hidden.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | include/libc-internal.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 1d92fd64e4..656b922567 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,11 @@ 2017-10-01 H.J. Lu <hongjiu.lu@intel.com> [BZ #18822] + * include/libc-internal.h (__init_misc): Add attribute_hidden. + +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> diff --git a/include/libc-internal.h b/include/libc-internal.h index c501c95eb5..7403c24e25 100644 --- a/include/libc-internal.h +++ b/include/libc-internal.h @@ -47,7 +47,7 @@ libc_hidden_proto (__libc_freeres) extern void __libc_thread_freeres (void); /* Define and initialize `__progname' et. al. */ -extern void __init_misc (int, char **, char **); +extern void __init_misc (int, char **, char **) attribute_hidden; # if IS_IN (rtld) extern __typeof (__profile_frequency) __profile_frequency attribute_hidden; |