From patchwork Fri Sep 1 18:00:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 808866 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-84063-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="fC+CcDMH"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xkRvg02KYz9s3w for ; Sat, 2 Sep 2017 04:04:14 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=nbYB57gBlXSBGa94+5ynr9EKB2pkbTv mt+Bhx2LUIBXWuIEc+X+j3rA6xAtR3H1jVDPt5ly5mH19i0C+gngylS11JdKsyk5 sueXhV8nWi87dx9v0xM1kekw28QmY2/LfEu9bIMvOIWwyhM2UMP897oAMJQrqz+V KNGCHCnljTB8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; s=default; bh=fMhlKjREXBoA8oDBqjhq/KuJex8=; b=fC+Cc DMHxJm3tcx0gZkbXFq7Exx8MNT3xfm5G/hybU453GNjKurUMkXj5RuH3Z6m0DkkN i1TVoRmA4l4qzQK/NgpWbVKphECyhD30ZI02qMBeX1WEzigKuO1gAUMgzbraoztf LgITArrxac+8UVqVSGMwEKmJqz7Xx6TqLufsbY= Received: (qmail 85614 invoked by alias); 1 Sep 2017 18:00:53 -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 85457 invoked by uid 89); 1 Sep 2017 18:00:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.2 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_SOFTFAIL autolearn=ham version=3.3.2 spammy=H*m:gmail X-HELO: mga06.intel.com X-ExtLoop1: 1 From: "H.J. Lu" To: libc-alpha@sourceware.org Subject: [PATCH 56/58] Hide internal __glob64 function [BZ #18822] Date: Fri, 1 Sep 2017 11:00:27 -0700 Message-Id: <20170901180029.9527-57-hjl.tools@gmail.com> In-Reply-To: <20170901180029.9527-1-hjl.tools@gmail.com> References: <20170901180029.9527-1-hjl.tools@gmail.com> Hide internal __glob64 function to allow direct access within libc.so and libc.a without using GOT nor PLT. [BZ #18822] * include/glob.h (__glob64): Add libc_hidden_proto. * sysdeps/unix/sysv/linux/i386/glob64.c (__glob64): Add libc_hidden_def. --- include/glob.h | 1 + sysdeps/unix/sysv/linux/i386/glob64.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/glob.h b/include/glob.h index 228fe30ca8..1d2f78793e 100644 --- a/include/glob.h +++ b/include/glob.h @@ -12,6 +12,7 @@ extern int __glob_pattern_p (const char *__pattern, int __quote); extern int __glob64 (const char *__pattern, int __flags, int (*__errfunc) (const char *, int), glob64_t *__pglob); +libc_hidden_proto (__glob64) #endif #endif diff --git a/sysdeps/unix/sysv/linux/i386/glob64.c b/sysdeps/unix/sysv/linux/i386/glob64.c index 956cb0474a..a2cd1e9c3b 100644 --- a/sysdeps/unix/sysv/linux/i386/glob64.c +++ b/sysdeps/unix/sysv/linux/i386/glob64.c @@ -43,6 +43,7 @@ libc_hidden_def (globfree64) +libc_hidden_def (__glob64) versioned_symbol (libc, __glob64, glob64, GLIBC_2_2); libc_hidden_ver (__glob64, glob64)