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.
This commit is contained in:
H.J. Lu 2017-10-01 17:55:11 -07:00
parent 7bfd08ac5b
commit 2f8a05d826
2 changed files with 6 additions and 1 deletions

View File

@ -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]

View 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)
{