This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 52/58] Hide internal __libc_print_version function [BZ #18822]
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: libc-alpha at sourceware dot org
- Date: Fri, 1 Sep 2017 11:00:23 -0700
- Subject: [PATCH 52/58] Hide internal __libc_print_version function [BZ #18822]
- Authentication-results: sourceware.org; auth=none
- References: <20170901180029.9527-1-hjl.tools@gmail.com>
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.
---
csu/version.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/csu/version.c b/csu/version.c
index f3992ab6c8..bfb0303a8d 100644
--- a/csu/version.c
+++ b/csu/version.c
@@ -39,7 +39,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)
{
--
2.13.5