From patchwork Fri Sep 1 18:00:07 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: 22550 Received: (qmail 89786 invoked by alias); 1 Sep 2017 18:01:15 -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 89692 invoked by uid 89); 1 Sep 2017 18:01:15 -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: mga02.intel.com X-ExtLoop1: 1 From: "H.J. Lu" To: libc-alpha@sourceware.org Subject: [PATCH 36/58] Hide internal __fopen_maybe_mmap function [BZ #18822] Date: Fri, 1 Sep 2017 11:00:07 -0700 Message-Id: <20170901180029.9527-37-hjl.tools@gmail.com> In-Reply-To: <20170901180029.9527-1-hjl.tools@gmail.com> References: <20170901180029.9527-1-hjl.tools@gmail.com> Hide internal __fopen_maybe_mmap function to allow direct access within libc.so and libc.a without using GOT nor PLT. [BZ #18822] * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden. --- libio/iolibio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libio/iolibio.h b/libio/iolibio.h index 754d8b0650..0185e685d4 100644 --- a/libio/iolibio.h +++ b/libio/iolibio.h @@ -25,7 +25,7 @@ extern _IO_FILE *_IO_new_fopen (const char*, const char*); extern _IO_FILE *_IO_fopen64 (const char*, const char*); extern _IO_FILE *__fopen_internal (const char*, const char*, int) attribute_hidden; -extern _IO_FILE *__fopen_maybe_mmap (_IO_FILE *) __THROW; +extern _IO_FILE *__fopen_maybe_mmap (_IO_FILE *) __THROW attribute_hidden; extern int _IO_fprintf (_IO_FILE*, const char*, ...); extern int _IO_fputs (const char*, _IO_FILE*); libc_hidden_proto (_IO_fputs)