From patchwork Wed Oct 14 22:48:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 530431 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 3D2F4140F8F for ; Thu, 15 Oct 2015 09:48:32 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=yhs+EOOr; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :mime-version:content-type; q=dns; s=default; b=jzMNOtadXET2bPkI X1x2MqOK6RubefHg5JQyOsvLcvX6jLn1OeL3kIeooltxOg0/uEcD3fxp6l4Bs1yk a5GACyvz5Eaq/pB7dIYnXCoveSfFCco9HwNIyopAAKehbLFYC8oNFE6Cvy7SgraG euhL9h2Ei+TV82ruPaVWugzs5iQ= 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:date:from:to:subject:message-id:reply-to :mime-version:content-type; s=default; bh=aEzDfCR9O+eKzODJPqMN4V DiUcI=; b=yhs+EOOruxGp/6upfkxMAqQUAxr5vbVog2knIRJJYuzq6bpSytarOL 3DCw0rMfzrUaA07ZaYTlfzq19HizSC/I8Y07GFuzUquT9tglQvJJCTbOsaJ4BvLg 4BrV95rLreKh8cI7l20CgvMBiGiL3KjiQL9W6AFfFeEBuDBRzPZ4E= Received: (qmail 52805 invoked by alias); 14 Oct 2015 22:48:27 -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 52795 invoked by uid 89); 14 Oct 2015 22:48:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 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: mga02.intel.com X-ExtLoop1: 1 Date: Wed, 14 Oct 2015 15:48:24 -0700 From: "H.J. Lu" To: GNU C Library Subject: [PATCH 18/19] Mark ld.so internel __uname hidden Message-ID: <20151014224824.GE30911@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 __uname is only used internally in ld.so, it can be made hidden. [BZ #19122] * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add attribute_hidden. --- include/sys/utsname.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/sys/utsname.h b/include/sys/utsname.h index 66a5289..14f4247 100644 --- a/include/sys/utsname.h +++ b/include/sys/utsname.h @@ -6,5 +6,9 @@ extern int __uname (struct utsname *__name); libc_hidden_proto (uname) libc_hidden_proto (__uname) + +# if IS_IN (rtld) +extern __typeof (__uname) __uname attribute_hidden; +# endif #endif #endif