]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
x86-64: Mark internal symbols with attribute_hidden [BZ #18822]
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 21 Aug 2017 12:58:39 +0000 (05:58 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 21 Aug 2017 12:58:53 +0000 (05:58 -0700)
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.

ChangeLog
sysdeps/unix/sysv/linux/x86_64/init-first.c
sysdeps/unix/sysv/linux/x86_64/makecontext.c

index 8ff2d90baee942ab9172e8402c972a5a712a48cb..620bf81f8319827bac154851b383c57a4443262b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
+
+       [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  <hongjiu.lu@intel.com>
 
        * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
index f1c46cb5bc6cc0e63e8773e261c4695045920f4f..b187239ba03d1143d78878dc692049dd0f19cec8 100644 (file)
@@ -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
index 59fb77a8c1a829f26ca8beeba020b9929f510cc1..e198a2215afcff90c48227cf50b078b794571057 100644 (file)
@@ -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;