]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Hide internal __libc_print_version function [BZ #18822]
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 2 Oct 2017 00:55:11 +0000 (17:55 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 2 Oct 2017 00:55:30 +0000 (17:55 -0700)
Hide internal __libc_print_version function to allow direct access
within libc.so and libc.a without using GOT nor PLT.

[BZ #18822]
* csu/version.c (__libc_print_version): Add attribute_hidden.

ChangeLog
csu/version.c

index 656b9225672871c80a3ef1579a7aa4e46075f7a4..278225538d797f615cbdd95167e8e942d3cc38e8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       [BZ #18822]
+       * csu/version.c (__libc_print_version): Add attribute_hidden.
+
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #18822]
index 8e86d495c52e2a27d1e95db4709ca83b1250ca90..a88cc2d0c0b597e0c383e3233480758baddead8f 100644 (file)
@@ -38,7 +38,7 @@ LIBC_ABIS_STRING
 
 #include <unistd.h>
 
-extern void __libc_print_version (void);
+extern void __libc_print_version (void) attribute_hidden;
 void
 __libc_print_version (void)
 {