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

ChangeLog
include/libc-internal.h

index 1d92fd64e49ff6ee6ea9415d75d8c972b0f18675..656b9225672871c80a3ef1579a7aa4e46075f7a4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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]
index c501c95eb572dadba213addd911972e1ae86511a..7403c24e25cd5e9b5a5329befaddb71f918fd4fc 100644 (file)
@@ -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;