From patchwork Mon Oct 2 01:01:23 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: 23275 Received: (qmail 114791 invoked by alias); 2 Oct 2017 01:01:28 -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 114770 invoked by uid 89); 2 Oct 2017 01:01:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.9 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-oi0-f68.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=DtMFl1aQ94sK/HzhvPGeG6mfiwmozZB+ncLNWA+9RcQ=; b=nyQloXI8o1s0+YXLR79xyaxVa8xz9IIWLEAJvNm2+JnPvxWigvdjSxcrJsjaj+kqwM qQSnznR1U5oTZJvi9sRBjmwq8MnvT3uR2e5qItIF8TEBDBh3QrKM4X7EV+PkccqfJM10 wGQAhKyDEUJEgZWJMRMtBqUen6DG+bC8wwZ1d7DE1Ghh9iIqu9C9XeGvbQRHif9cwrN3 lKVcVaxf5vZ7AhxW+LS3OO0Ek6GsyNveN74eFzbZvf1bVs2ymY+WFOJY5hiB7ZhmeC/y cxlksGtjqxDVcqTBH/wp0L8DCSoADrBzv0ByjM5583fqfhHx8TOX6JARhS0uDQfxLYur hdUg== X-Gm-Message-State: AMCzsaUwh5NAwI3omApILi5bKU3c03RSuIP6pjJVIS47cNfZivfE6aN7 A1N/HqNftYzRmFY6AIrdrNtCGYEL02Ux/Y+3jDA= X-Google-Smtp-Source: AOwi7QCJDiB1T8FIxkfxE0O9t8/HMqYnF3jMlWcuGa94eScnElO9TwzsuYOVz79383r5ylAwiNqOlH4H0G7hvScRXV8= X-Received: by 10.202.69.2 with SMTP id s2mr6094975oia.256.1506906084770; Sun, 01 Oct 2017 18:01:24 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20170901180029.9527-57-hjl.tools@gmail.com> References: <20170901180029.9527-1-hjl.tools@gmail.com> <20170901180029.9527-57-hjl.tools@gmail.com> From: "H.J. Lu" Date: Sun, 1 Oct 2017 18:01:23 -0700 Message-ID: Subject: Re: [PATCH 56/58] Hide internal __glob64 function [BZ #18822] To: libc-alpha@sourceware.org On 9/1/17, H.J. Lu wrote: > 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. > --- This is the patch I am checking in. Tested with build-many-glibcs.py. From 36756b2e9f73e77d2e65488080f61494eca65bc0 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 31 Aug 2017 05:38:44 -0700 Subject: [PATCH 54/56] Hide internal __glob64 function [BZ #18822] 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/glob64.c (__glob64): Add libc_hidden_def. --- include/glob.h | 1 + sysdeps/unix/sysv/linux/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/glob64.c b/sysdeps/unix/sysv/linux/glob64.c index 0189d1c77d..0239425e10 100644 --- a/sysdeps/unix/sysv/linux/glob64.c +++ b/sysdeps/unix/sysv/linux/glob64.c @@ -44,6 +44,7 @@ strong_alias (__glob64, glob64) libc_hidden_def (glob64) # else +libc_hidden_def (__glob64) versioned_symbol (libc, __glob64, glob64, GLIBC_2_27); libc_hidden_ver (__glob64, glob64) # endif -- 2.13.6