Hide internal __new_exitfn function [BZ #18822]

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.
This commit is contained in:
H.J. Lu 2017-10-01 17:58:08 -07:00
parent fa4265909e
commit bde06c87b7
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
[BZ #18822]
* stdlib/exit.h (__new_exitfn): Add attribute_hidden.
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
[BZ #18822]

View File

@ -77,8 +77,8 @@ extern bool __exit_funcs_done attribute_hidden;
__libc_lock_define (extern, __exit_funcs_lock);
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 void __run_exit_handlers (int status,
struct exit_function_list **listp,