]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Hide internal __new_exitfn function [BZ #18822]
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 2 Oct 2017 00:58:08 +0000 (17:58 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 2 Oct 2017 00:58:24 +0000 (17:58 -0700)
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.

ChangeLog
stdlib/exit.h

index 85de0ee00936a7b6af57a1e0d7fc47a3f2ed384a..85e4e029414fb52fc099559c16c6f8d27ba52dd9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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]
index dbf9f2d01f5542bd8d382e48b4d48ca15e7541f8..eea50725c62acc90fe1bab0b5bda53d50dfc7473 100644 (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,