From patchwork Sun Oct 18 17:25:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 9217 Received: (qmail 108378 invoked by alias); 18 Oct 2015 17:26: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 108291 invoked by uid 89); 18 Oct 2015 17:26:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_FROM, SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mga14.intel.com X-ExtLoop1: 1 From: "H.J. Lu" To: libc-alpha@sourceware.org Cc: "H.J. Lu" Subject: [PATCH 2/3] Mark ld.so internel __fxstatat64 hidden Date: Sun, 18 Oct 2015 10:25:40 -0700 Message-Id: <1445189141-18068-2-git-send-email-hjl.tools@gmail.com> In-Reply-To: <1445189141-18068-1-git-send-email-hjl.tools@gmail.com> References: <1445189141-18068-1-git-send-email-hjl.tools@gmail.com> Since ld.so internel __fxstatat64 is only used internally in ld.so, it can be made hidden. [BZ #19122] * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add attribute_hidden. --- include/sys/stat.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/sys/stat.h b/include/sys/stat.h index 873562a..4f31c00 100644 --- a/include/sys/stat.h +++ b/include/sys/stat.h @@ -35,6 +35,9 @@ libc_hidden_proto (__xmknodat) libc_hidden_proto (__fxstatat) libc_hidden_proto (__fxstatat64) +# if IS_IN (rtld) +extern __typeof (__fxstatat64) __fxstatat64 attribute_hidden; +# endif /* The `stat', `fstat', `lstat' functions have to be handled special since even while not compiling the library with optimization calls to these