From patchwork Fri Sep 1 18:00:15 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: 808911 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-84097-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="mbDz5qyV"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xkS2136Kjz9t5R for ; Sat, 2 Sep 2017 04:09:45 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=efUOE0LXTzWydvD0IRxhi+L4DURqqe5 wwTjqKYykkd2OgrCOwgaL2QdTmxq9xsDr+Ndl77BdseRhp1XCc0mHUwZFjM/E1EE Tefl7HjDNqPfIFocXwlLYCm8yWsfkqL9VU5Vg1HMCWnVbMyMr90vaMbOUlnTuiwX Cz9XrzAMaq9M= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; s=default; bh=7Mtx1DcNBgv2KNyruPPgwmVzzFA=; b=mbDz5 qyVzWlEUF/WBx9nI6M3dhuUDwZVT9aDniaEpTfOOSXWbhJdpMVBkjZQFbCkkF2MQ 4bAOaWRzAhNQ73nfRUACGQDTTTiBH9pft8PlxjL8XY9sKeQeiM+FTlkrrPMFD9Ai meAE+QDoz020dedKpsC9b2uuusl4Qu7rcp82Pc= Received: (qmail 90927 invoked by alias); 1 Sep 2017 18:01:24 -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 90774 invoked by uid 89); 1 Sep 2017 18:01:23 -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=telephone, Telephone, H*m:gmail X-HELO: mga02.intel.com X-ExtLoop1: 1 From: "H.J. Lu" To: libc-alpha@sourceware.org Subject: [PATCH 44/58] Hide internal __hash_string function [BZ #18822] Date: Fri, 1 Sep 2017 11:00:15 -0700 Message-Id: <20170901180029.9527-45-hjl.tools@gmail.com> In-Reply-To: <20170901180029.9527-1-hjl.tools@gmail.com> References: <20170901180029.9527-1-hjl.tools@gmail.com> Hide internal __hash_string function to allow direct access within libc.so and libc.a without using GOT nor PLT. [BZ #18822] * intl/hash-string.h (__hash_string): Add attribute_hidden. --- intl/hash-string.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/intl/hash-string.h b/intl/hash-string.h index 21dcb16739..e579a7cab3 100644 --- a/intl/hash-string.h +++ b/intl/hash-string.h @@ -31,4 +31,5 @@ /* Defines the so called `hashpjw' function by P.J. Weinberger [see Aho/Sethi/Ullman, COMPILERS: Principles, Techniques and Tools, 1986, 1987 Bell Telephone Laboratories, Inc.] */ -extern unsigned long int __hash_string (const char *str_param); +extern unsigned long int __hash_string (const char *str_param) + attribute_hidden;