From patchwork Wed Oct 14 22:47:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lu, Hongjiu" X-Patchwork-Id: 9154 Received: (qmail 50001 invoked by alias); 14 Oct 2015 22:47:59 -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 49833 invoked by uid 89); 14 Oct 2015 22:47:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, NO_DNS_FOR_FROM, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mga11.intel.com X-ExtLoop1: 1 Date: Wed, 14 Oct 2015 15:47:54 -0700 From: "H.J. Lu" To: GNU C Library Subject: [PATCH 16/19] Mark ld.so internel mmap functions hidden Message-ID: <20151014224754.GC30911@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Since ld.so internel mmap functions are only used internally in ld.so, they can be made hidden. [BZ #19122] * include/sys/mman.h [IS_IN (rtld)] (__mmap): Add attribute_hidden. [IS_IN (rtld)] (__mprotect): Likewise. [IS_IN (rtld)] (__munmap): Likewise. --- include/sys/mman.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/sys/mman.h b/include/sys/mman.h index fd125ec..fdfedbb 100644 --- a/include/sys/mman.h +++ b/include/sys/mman.h @@ -16,6 +16,12 @@ libc_hidden_proto (__madvise) /* This one is Linux specific. */ extern void *__mremap (void *__addr, size_t __old_len, size_t __new_len, int __flags, ...); + +# if IS_IN (rtld) +extern __typeof (__mmap) __mmap attribute_hidden; +extern __typeof (__mprotect) __mprotect attribute_hidden; +extern __typeof (__munmap) __munmap attribute_hidden; +# endif #endif #endif