From patchwork Fri Sep 1 18:00:21 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: 808848 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-84045-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="SVz3qrUE"; 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 3xkRr54vgWz9s7M for ; Sat, 2 Sep 2017 04:01:09 +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=g5yJZjwaC2h1XFjfTS53qtOTfsydQ/x qIBrJN3YDusIsYhwt26KVp6oBoAC1ebdie4reWAX2Y7kSt9Q76XlIbu/zn6lL4hK XIvkdI6gWLEdQ+tb17/mNC6pKTjzJZghEtqfsMc2Ju+FORUG/vMZMIe53MIt1epy mLr4Cr04PHQk= 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=ciPCQdjtxvTQktICYAdoy4m4Vkw=; b=SVz3q rUEBWAQXgUMIxSxk3/4nYiVATN5TjePikkQF7qNZJPmWRCZ0x74qyBXqSf505TfZ f/CFv9ACg03YeJq/1hKel2YuPfGwafiO+MQXmd0gBqLNRsSt54cLCcqib35rvd8t HthCjYCMlXjjQnKvJ9QBmGKRQ1PKeIr5pqGukI= Received: (qmail 83804 invoked by alias); 1 Sep 2017 18:00:45 -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 83641 invoked by uid 89); 1 Sep 2017 18:00:41 -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=Hx-languages-length:748, H*m:gmail X-HELO: mga06.intel.com X-ExtLoop1: 1 From: "H.J. Lu" To: libc-alpha@sourceware.org Subject: [PATCH 50/58] Hide internal __setfpucw function [BZ #18822] Date: Fri, 1 Sep 2017 11:00:21 -0700 Message-Id: <20170901180029.9527-51-hjl.tools@gmail.com> In-Reply-To: <20170901180029.9527-1-hjl.tools@gmail.com> References: <20170901180029.9527-1-hjl.tools@gmail.com> Hide internal __setfpucw function to allow direct access within libc.so and libc.a without using GOT nor PLT. [BZ #18822] * include/fpu_control.h (__setfpucw): Add attribute_hidden. --- include/fpu_control.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fpu_control.h b/include/fpu_control.h index 4498a83b87..5c6b386278 100644 --- a/include/fpu_control.h +++ b/include/fpu_control.h @@ -4,7 +4,7 @@ # ifndef _ISOMAC /* Called at startup. It can be used to manipulate fpu control register. */ -extern void __setfpucw (fpu_control_t); +extern void __setfpucw (fpu_control_t) attribute_hidden; # endif /* !_ISOMAC */ #endif /* fpu_control.h */