From patchwork Fri Sep 1 18:00:11 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: 22552 Received: (qmail 90015 invoked by alias); 1 Sep 2017 18:01:17 -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 89976 invoked by uid 89); 1 Sep 2017 18:01:17 -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 40/58] Hide internal __gettextparse function [BZ #18822] Date: Fri, 1 Sep 2017 11:00:11 -0700 Message-Id: <20170901180029.9527-41-hjl.tools@gmail.com> In-Reply-To: <20170901180029.9527-1-hjl.tools@gmail.com> References: <20170901180029.9527-1-hjl.tools@gmail.com> Hide internal __gettextparse function to allow direct access within libc.so and libc.a without using GOT nor PLT. [BZ #18822] * include/plural-exp.h: New file. * intl/plural-exp.c: Include instead of "plural-exp.h". --- include/plural-exp.h | 8 ++++++++ intl/plural-exp.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 include/plural-exp.h diff --git a/include/plural-exp.h b/include/plural-exp.h new file mode 100644 index 0000000000..3b026f804d --- /dev/null +++ b/include/plural-exp.h @@ -0,0 +1,8 @@ +#ifndef _PLURAL_EXP_H +#include + +#ifndef _ISOMAC +extern __typeof (__gettextparse) __gettextparse attribute_hidden; +#endif /* !_ISOMAC */ + +#endif diff --git a/intl/plural-exp.c b/intl/plural-exp.c index 8c15032631..f5249d5373 100644 --- a/intl/plural-exp.c +++ b/intl/plural-exp.c @@ -23,7 +23,7 @@ #include #include -#include "plural-exp.h" +#include #if (defined __GNUC__ && !(defined __APPLE_CC_ && __APPLE_CC__ > 1) && \ !defined __cplusplus) \