From 7bfd08ac5be538a2beaa48f029944e01fb3b5d7a Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sun, 1 Oct 2017 17:53:31 -0700 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ include/libc-internal.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1d92fd64e4..656b922567 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-10-01 H.J. Lu + + [BZ #18822] + * include/libc-internal.h (__init_misc): Add attribute_hidden. + 2017-10-01 H.J. Lu [BZ #18822] 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;