From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 93788 invoked by alias); 24 Mar 2016 17:06:33 -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 93773 invoked by uid 89); 24 Mar 2016 17:06:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=ccoutantgmailcom, ccoutant@gmail.com, claim, joe X-HELO: mail-in6.apple.com Received: from mail-out6.apple.com (HELO mail-in6.apple.com) (17.151.62.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 24 Mar 2016 17:06:32 +0000 Received: from relay5.apple.com (relay5.apple.com [17.128.113.88]) by mail-in6.apple.com (Apple Secure Mail Relay) with SMTP id 41.18.27179.69E14F65; Thu, 24 Mar 2016 10:06:30 -0700 (PDT) Received: from nwk-mmpp-sz06.apple.com (nwk-mmpp-sz06.apple.com [17.128.115.234]) (using TLS with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by relay5.apple.com (Apple SCV relay) with SMTP id C8.2E.25582.59E14F65; Thu, 24 Mar 2016 10:06:29 -0700 (PDT) Received: from [17.153.24.195] by nwk-mmpp-sz06.apple.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Mar 31 2015)) with ESMTPSA id <0O4J00C82ZITLF20@nwk-mmpp-sz06.apple.com> for binutils@sourceware.org; Thu, 24 Mar 2016 10:06:29 -0700 (PDT) Content-type: text/plain; charset=us-ascii MIME-version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Preventing preemption of 'protected' symbols in GNU ld 2.26 From: Joe Groff In-reply-to: Date: Thu, 24 Mar 2016 17:06:00 -0000 Cc: Cary Coutant , Binutils Content-transfer-encoding: 7bit Message-id: <9EFBBDCE-4054-4867-B3E9-9DFE216A234F@apple.com> References: <9106B2FB-BB06-413A-A04D-EEFB992784FA@apple.com> To: "H.J. Lu" X-IsSubscribed: yes X-SW-Source: 2016-03/txt/msg00327.txt.bz2 > On Mar 24, 2016, at 10:04 AM, H.J. Lu wrote: > > On Thu, Mar 24, 2016 at 9:56 AM, Cary Coutant wrote: >>> What you are proposing is to disallow copy relocation against >>> protected symbol. Am I correct? >> >> Yes. That's what PR gold/19823 is about. I claim that GCC PR 55012 >> should have been resolved as "working as intended", and that your >> patches for GCC PR 65248 should never have been applied (curiously, I >> can't find any actual approval for the GCC patch). I'm sorry I missed >> those conversations -- I would have raised bloody hell at the time. >> I'm surprised that no one else did. >> > > What relocation do you propose to access external protected > symbol on x86 for non-PIC code? Non-PIC code can still use a GOT, can't it? -Joe