From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6903 invoked by alias); 11 May 2007 18:05:51 -0000 Received: (qmail 6880 invoked by uid 22791); 11 May 2007 18:05:49 -0000 X-Spam-Check-By: sourceware.org Received: from return.false.org (HELO return.false.org) (66.207.162.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 11 May 2007 18:05:45 +0000 Received: from return.false.org (localhost [127.0.0.1]) by return.false.org (Postfix) with ESMTP id A2D614B267; Fri, 11 May 2007 13:05:43 -0500 (CDT) Received: from caradoc.them.org (dsl093-172-095.pit1.dsl.speakeasy.net [66.93.172.95]) by return.false.org (Postfix) with ESMTP id 6A40F4B262; Fri, 11 May 2007 13:05:43 -0500 (CDT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1HmZUt-0000XK-2O; Fri, 11 May 2007 14:05:43 -0400 Date: Fri, 11 May 2007 18:05:00 -0000 From: Daniel Jacobowitz To: gcc-patches@gcc.gnu.org, binutils@sourceware.org, gdb-patches@sourceware.org, richard@codesourcery.com Subject: Re: Allow sysroots to be relocated under $prefix as well as $exec_prefix Message-ID: <20070511180543.GC1684@caradoc.them.org> Mail-Followup-To: gcc-patches@gcc.gnu.org, binutils@sourceware.org, gdb-patches@sourceware.org, richard@codesourcery.com References: <87ejlz1pot.fsf@firetop.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87ejlz1pot.fsf@firetop.home> User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-05/txt/msg00200.txt.bz2 On Wed, May 02, 2007 at 11:32:18AM +0100, Richard Sandiford wrote: > Unfortunately, the current configure code only treats sysroots as > relocatable if they are subdirectories of --exec-prefix. This seems > to be academic in the case of ld and gdb; they don't seem to take any > notice of TARGET_SYSTEM_ROOT_RELOCATABLE anyway. (ld relies on the > relocation performed by the gcc driver.) GDB definitely does honor TARGET_SYSTEM_ROOT_RELOCATABLE. ld does too (get_relative_sysroot in ldmain.c). > This patch makes configure treat sysroots as relocatable if they are > under either --prefix or --exec-prefix. I've updated the ld and gdb > versions to keep them in sync. > > Bootstrapped & regression-tested on x86_64-linux-gnu. Also tested > on a sysrooted mips-linux-gnu compiler. OK to install? LD and GDB parts are OK. I think the GCC part is sufficiently obvious, or else ping Paolo. -- Daniel Jacobowitz CodeSourcery