[PATCH 54/58] Hide internal __new_exitfn function [BZ #18822]
H.J. Lu
hjl.tools@gmail.com
Fri Sep 1 18:00:00 GMT 2017
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
More information about the Libc-alpha
mailing list