From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 98008 invoked by alias); 25 Apr 2015 23:46:20 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 97996 invoked by uid 89); 25 Apr 2015 23:46:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pd0-f174.google.com Received: from mail-pd0-f174.google.com (HELO mail-pd0-f174.google.com) (209.85.192.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Sat, 25 Apr 2015 23:46:18 +0000 Received: by pdbnk13 with SMTP id nk13so86568008pdb.0 for ; Sat, 25 Apr 2015 16:46:15 -0700 (PDT) X-Received: by 10.66.65.106 with SMTP id w10mr9767049pas.122.1430005575797; Sat, 25 Apr 2015 16:46:15 -0700 (PDT) Received: from bubble.grove.modra.org (CPE-58-160-155-134.oycza5.sa.bigpond.net.au. [58.160.155.134]) by mx.google.com with ESMTPSA id k4sm15029210pdg.87.2015.04.25.16.46.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Apr 2015 16:46:14 -0700 (PDT) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id DE9E4EA017E; Sun, 26 Apr 2015 09:16:09 +0930 (ACST) Date: Sat, 25 Apr 2015 23:46:00 -0000 From: Alan Modra To: "H.J. Lu" Cc: binutils@sourceware.org Subject: Re: [PATCH] PR ld/18329: Turn off PROTECTED visibility with -Bsymbolic Message-ID: <20150425234609.GZ12627@bubble.grove.modra.org> Mail-Followup-To: "H.J. Lu" , binutils@sourceware.org References: <20150425214638.GA13278@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150425214638.GA13278@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00404.txt.bz2 On Sat, Apr 25, 2015 at 02:46:38PM -0700, H.J. Lu wrote: > If a global protected symbol is bound locally by -Bsymbolic, there is no > need to keep protected visibility which hich may have overhead at run-time. For this change to be safe you'd need to show that all ELF targets supporting dynamic objects also properly support -Bsymbolic for both functions and variables. ie. that none emit dynamic relocations for the symbol when -Bsymbolic. -- Alan Modra Australia Development Lab, IBM