From: H.J. Lu Date: Mon, 21 Aug 2017 12:58:39 +0000 (-0700) Subject: x86-64: Mark internal symbols with attribute_hidden [BZ #18822] X-Git-Tag: glibc-2.27~1111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41e673c1e771075f413f8e8ecd9e108f5ae096d9;p=thirdparty%2Fglibc.git x86-64: Mark internal symbols with attribute_hidden [BZ #18822] Since __syscall_clock_gettime and __start_context are internal symbols for Linux/x86-64, mark them with attribute_hidden. [BZ #18822] * sysdeps/unix/sysv/linux/x86_64/init-first.c (__syscall_clock_gettime): Add attribute_hidden. * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__start_context): Likewise. --- diff --git a/ChangeLog b/ChangeLog index 8ff2d90baee..620bf81f831 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2017-08-21 H.J. Lu + + [BZ #18822] + * sysdeps/unix/sysv/linux/x86_64/init-first.c + (__syscall_clock_gettime): Add attribute_hidden. + * sysdeps/unix/sysv/linux/x86_64/makecontext.c + (__start_context): Likewise. + 2017-08-21 H.J. Lu * include/libc-symbols.h (__hidden_proto_hiddenattr): New for diff --git a/sysdeps/unix/sysv/linux/x86_64/init-first.c b/sysdeps/unix/sysv/linux/x86_64/init-first.c index f1c46cb5bc6..b187239ba03 100644 --- a/sysdeps/unix/sysv/linux/x86_64/init-first.c +++ b/sysdeps/unix/sysv/linux/x86_64/init-first.c @@ -27,7 +27,7 @@ long int (*VDSO_SYMBOL(clock_gettime)) (clockid_t, struct timespec *) long int (*VDSO_SYMBOL(getcpu)) (unsigned *, unsigned *, void *) attribute_hidden; -extern long int __syscall_clock_gettime (clockid_t, struct timespec *); +extern __typeof (clock_gettime) __syscall_clock_gettime attribute_hidden; static inline void diff --git a/sysdeps/unix/sysv/linux/x86_64/makecontext.c b/sysdeps/unix/sysv/linux/x86_64/makecontext.c index 59fb77a8c1a..e198a2215af 100644 --- a/sysdeps/unix/sysv/linux/x86_64/makecontext.c +++ b/sysdeps/unix/sysv/linux/x86_64/makecontext.c @@ -51,7 +51,7 @@ void __makecontext (ucontext_t *ucp, void (*func) (void), int argc, ...) { - extern void __start_context (void); + extern void __start_context (void) attribute_hidden; greg_t *sp; unsigned int idx_uc_link; va_list ap;