aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-01 17:55:11 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-01 17:55:30 -0700
commit2f8a05d826f554210eb2bec8dd6344c9615e00d7 (patch)
tree621e4f40483a7dc7d15dec486498314b151cd765
parent7bfd08ac5be538a2beaa48f029944e01fb3b5d7a (diff)
downloadglibc-2f8a05d826f554210eb2bec8dd6344c9615e00d7.tar
glibc-2f8a05d826f554210eb2bec8dd6344c9615e00d7.tar.gz
glibc-2f8a05d826f554210eb2bec8dd6344c9615e00d7.tar.bz2
glibc-2f8a05d826f554210eb2bec8dd6344c9615e00d7.zip
Hide internal __libc_print_version function [BZ #18822]
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.
-rw-r--r--ChangeLog5
-rw-r--r--csu/version.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 656b922567..278225538d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
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]
* include/libc-internal.h (__init_misc): Add attribute_hidden.
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
diff --git a/csu/version.c b/csu/version.c
index 8e86d495c5..a88cc2d0c0 100644
--- a/csu/version.c
+++ b/csu/version.c
@@ -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)
{