[51/58] Hide internal __init_misc function [BZ #18822]
Commit Message
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(-)
Comments
On 9/1/17, H.J. Lu <hjl.tools@gmail.com> wrote:
> 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.
>
Tested with build-many-glibcs.py. I am checking it in.
@@ -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;