From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26806 invoked by alias); 2 Dec 2014 23:21:35 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 26791 invoked by uid 89); 2 Dec 2014 23:21:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-oi0-f50.google.com Received: from mail-oi0-f50.google.com (HELO mail-oi0-f50.google.com) (209.85.218.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 02 Dec 2014 23:21:34 +0000 Received: by mail-oi0-f50.google.com with SMTP id a141so9860638oig.37 for ; Tue, 02 Dec 2014 15:21:32 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.202.174.198 with SMTP id x189mr1149982oie.78.1417562492082; Tue, 02 Dec 2014 15:21:32 -0800 (PST) Received: by 10.76.185.7 with HTTP; Tue, 2 Dec 2014 15:21:31 -0800 (PST) In-Reply-To: References: <20141202201929.GN1860@tucnak.redhat.com> Date: Tue, 02 Dec 2014 23:21:00 -0000 Message-ID: Subject: Re: [PATCH x86_64] Optimize access to globals in "-fpie -pie" builds with copy relocations From: "H.J. Lu" To: Jakub Jelinek Cc: Uros Bizjak , "gcc-patches@gcc.gnu.org" , Sriraman Tallam Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00229.txt.bz2 On Tue, Dec 2, 2014 at 2:14 PM, H.J. Lu wrote: > On Tue, Dec 2, 2014 at 12:19 PM, Jakub Jelinek wrote: >> On Tue, Dec 02, 2014 at 12:16:09PM -0800, H.J. Lu wrote: >>> > IMO, nobody will use this highly special x86_64-only option. It would >>> > be best for gnu-ld to reach feature parity with gold as far as this >>> > functionality is concerned. In this case, the optimization would be >>> > auto-configured, and would fire automatically, without any user >>> > intervention. >>> >>> I will implement it in ld after its support is checked into GCC. >> >> I think it would be better to do it the other way around, so that gcc can be >> configured against the right ld from the start. >> > > Consider it is done. I will check it into binutils ths week. > It is on binutils master branch now: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=9a926d55ab4b6667f6c35b518d59b902fe490d9d -- H.J.