This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 54/58] Hide internal __new_exitfn 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:25 -0700
- Subject: [PATCH 54/58] Hide internal __new_exitfn function [BZ #18822]
- Authentication-results: sourceware.org; auth=none
- References: <20170901180029.9527-1-hjl.tools@gmail.com>
Hide internal __new_exitfn function to allow direct access within libc.so
and libc.a without using GOT nor PLT.
[BZ #18822]
* stdlib/exit.h (__new_exitfn): Add attribute_hidden.
---
stdlib/exit.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/stdlib/exit.h b/stdlib/exit.h
index 7f2e679246..ade6c5d63a 100644
--- a/stdlib/exit.h
+++ b/stdlib/exit.h
@@ -60,7 +60,8 @@ struct exit_function_list
extern struct exit_function_list *__exit_funcs attribute_hidden;
extern struct exit_function_list *__quick_exit_funcs attribute_hidden;
-extern struct exit_function *__new_exitfn (struct exit_function_list **listp);
+extern struct exit_function *__new_exitfn (struct exit_function_list **listp)
+ attribute_hidden;
extern uint64_t __new_exitfn_called attribute_hidden;
extern void __run_exit_handlers (int status,
--
2.13.5