From patchwork Fri Aug 18 16:28:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lu, Hongjiu" X-Patchwork-Id: 22222 Received: (qmail 91441 invoked by alias); 18 Aug 2017 16:29:05 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 89871 invoked by uid 89); 18 Aug 2017 16:29:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, NO_DNS_FOR_FROM, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: mga03.intel.com X-ExtLoop1: 1 Date: Fri, 18 Aug 2017 09:28:49 -0700 From: "H.J. Lu" To: GNU C Library Subject: [PATCH 3/3] x86-64: Mark internal symbols with attribute_hidden [BZ #18822] Message-ID: <20170818162849.GC21741@gmail.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.8.3 (2017-05-23) Since __syscall_clock_gettime and __start_context are internal symbols for Linux/x86-64, mark them with attribute_hidden. OK for master? H.J. --- [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. --- sysdeps/unix/sysv/linux/x86_64/init-first.c | 3 ++- sysdeps/unix/sysv/linux/x86_64/makecontext.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sysdeps/unix/sysv/linux/x86_64/init-first.c b/sysdeps/unix/sysv/linux/x86_64/init-first.c index f1c46cb5bc..e5778b118c 100644 --- a/sysdeps/unix/sysv/linux/x86_64/init-first.c +++ b/sysdeps/unix/sysv/linux/x86_64/init-first.c @@ -27,7 +27,8 @@ 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 long int __syscall_clock_gettime (clockid_t, struct timespec *) + 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 59fb77a8c1..e198a2215a 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;