From patchwork Sun Aug 20 17:35:52 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: 22248 Received: (qmail 94968 invoked by alias); 20 Aug 2017 17:35:57 -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 94951 invoked by uid 89); 20 Aug 2017 17:35:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.4 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=Hx-spam-relays-external:209.85.192.196, H*RU:209.85.192.196 X-HELO: mail-pf0-f196.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=2I7uwd7+VT2J8sUSH6fvtTSR0aEKlntZZvAWhJz1DFo=; b=IeDAEStys8O92KAFy3BUdXwmirASXjLdmISxqxpFspUAlW+rhSWbIwetp9eOnFTnIH zQnRv504/8ZZVjpn1Ecj+Ss2OHCGwwQ+oDays3kkgcJJXxv22zZawx/dRbYlqQpZXR5B NkSMN/c/gUDbciZDm7NUWE5Lg9N+OxDXkz6uCfqG2QEiZZ8QDIqDCK5YDU7kBp5vh/x6 SZhH2yHEu/XI5AIkJu+jWHjUYaZ3r+W5Ps2ZJmkZlxwhSBifcy4CI3tLPgRv2GvToyoh vVm0Qwz9BzOxqHx2AQk60PPxA8KEPyf6+2SX7nrSEMAB19h+xD5hDliaHx6w3BmGpGUA c6HQ== X-Gm-Message-State: AHYfb5i30GrQ5Xk9dzsoF6zU2DPFGRokwZJ2treu+qUusUaQeOHKYxkc gKOQzMcR35tyGLFZ X-Received: by 10.84.167.2 with SMTP id c2mr16919425plb.368.1503250553651; Sun, 20 Aug 2017 10:35:53 -0700 (PDT) Date: Sun, 20 Aug 2017 10:35:52 -0700 From: "H.J. Lu" To: GNU C Library Subject: [PATCH] i386: Hide __old_glob64 [BZ #18822] Message-ID: <20170820173552.GA4640@gmail.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.8.3 (2017-05-23) Hide internal __old_glob64 function to allow direct access within libc.so and libc.a without using GOT nor PLT. I will check it in after testing on i686. H.J. --- [BZ #18822] * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add libc_hidden_proto and libc_hidden_def. --- sysdeps/unix/sysv/linux/i386/glob64.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysdeps/unix/sysv/linux/i386/glob64.c b/sysdeps/unix/sysv/linux/i386/glob64.c index f68195137e..956cb0474a 100644 --- a/sysdeps/unix/sysv/linux/i386/glob64.c +++ b/sysdeps/unix/sysv/linux/i386/glob64.c @@ -53,6 +53,7 @@ libc_hidden_ver (__glob64, glob64) int __old_glob64 (const char *__pattern, int __flags, int (*__errfunc) (const char *, int), glob64_t *__pglob); +libc_hidden_proto (__old_glob64); #undef dirent #define dirent __old_dirent64 @@ -72,5 +73,7 @@ int __old_glob64 (const char *__pattern, int __flags, #include +libc_hidden_def (__old_glob64); + compat_symbol (libc, __old_glob64, glob64, GLIBC_2_1); #endif