From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5938 invoked by alias); 2 Dec 2014 20:19: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 5910 invoked by uid 89); 2 Dec 2014 20:19:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 02 Dec 2014 20:19:38 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sB2KJZwG011613 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 2 Dec 2014 15:19:36 -0500 Received: from tucnak.zalov.cz (ovpn-116-21.ams2.redhat.com [10.36.116.21]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sB2KJXIG028315 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Tue, 2 Dec 2014 15:19:34 -0500 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.14.9/8.14.9) with ESMTP id sB2KJVCW027516; Tue, 2 Dec 2014 21:19:31 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.14.9/8.14.9/Submit) id sB2KJTrq027515; Tue, 2 Dec 2014 21:19:29 +0100 Date: Tue, 02 Dec 2014 20:19:00 -0000 From: Jakub Jelinek To: "H.J. Lu" Cc: Uros Bizjak , "gcc-patches@gcc.gnu.org" , Sriraman Tallam Subject: Re: [PATCH x86_64] Optimize access to globals in "-fpie -pie" builds with copy relocations Message-ID: <20141202201929.GN1860@tucnak.redhat.com> Reply-To: Jakub Jelinek References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00203.txt.bz2 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. Jakub