From patchwork Fri Sep 1 17:59:59 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: 22541 Received: (qmail 88206 invoked by alias); 1 Sep 2017 18:01: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 88159 invoked by uid 89); 1 Sep 2017 18:01:05 -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 28/58] Hide internal __malloc_check_init function [BZ #18822] Date: Fri, 1 Sep 2017 10:59:59 -0700 Message-Id: <20170901180029.9527-29-hjl.tools@gmail.com> In-Reply-To: <20170901180029.9527-1-hjl.tools@gmail.com> References: <20170901180029.9527-1-hjl.tools@gmail.com> Hide internal __malloc_check_init function to allow direct access within libc.so and libc.a without using GOT nor PLT. * include/malloc.h (__malloc_check_init): Add attribute_hidden. --- include/malloc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/malloc.h b/include/malloc.h index 70d32c7c84..d4cd9a5ffc 100644 --- a/include/malloc.h +++ b/include/malloc.h @@ -9,6 +9,8 @@ /* Nonzero if the malloc is already initialized. */ extern int __malloc_initialized attribute_hidden; +extern __typeof (__malloc_check_init) __malloc_check_init attribute_hidden; + struct malloc_state; typedef struct malloc_state *mstate;