From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26758 invoked by alias); 2 Dec 2014 22:14:42 -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 26744 invoked by uid 89); 2 Dec 2014 22:14:41 -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-f43.google.com Received: from mail-oi0-f43.google.com (HELO mail-oi0-f43.google.com) (209.85.218.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 02 Dec 2014 22:14:40 +0000 Received: by mail-oi0-f43.google.com with SMTP id a3so9974608oib.30 for ; Tue, 02 Dec 2014 14:14:38 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.182.22.234 with SMTP id h10mr1130684obf.22.1417558478715; Tue, 02 Dec 2014 14:14:38 -0800 (PST) Received: by 10.76.185.7 with HTTP; Tue, 2 Dec 2014 14:14:38 -0800 (PST) In-Reply-To: <20141202201929.GN1860@tucnak.redhat.com> References: <20141202201929.GN1860@tucnak.redhat.com> Date: Tue, 02 Dec 2014 22:14: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/msg00218.txt.bz2 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. -- H.J.