This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 51/58] Hide internal __init_misc function [BZ #18822]
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: libc-alpha at sourceware dot org
- Date: Fri, 1 Sep 2017 11:00:22 -0700
- Subject: [PATCH 51/58] Hide internal __init_misc function [BZ #18822]
- Authentication-results: sourceware.org; auth=none
- References: <20170901180029.9527-1-hjl.tools@gmail.com>
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.
---
include/libc-internal.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
2.13.5