From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9185 invoked by alias); 12 May 2007 08:23:26 -0000 Received: (qmail 9163 invoked by uid 22791); 12 May 2007 08:23:25 -0000 X-Spam-Check-By: sourceware.org Received: from gateway.codesourcery.com (HELO gateway.codesourcery.com) (65.74.133.9) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 12 May 2007 08:23:22 +0000 Received: (qmail 16375 invoked by uid 1010); 12 May 2007 08:23:21 -0000 From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org,binutils@sourceware.org, gdb-patches@sourceware.org, richard@codesourcery.com Cc: binutils@sourceware.org, gdb-patches@sourceware.org Subject: Re: Allow sysroots to be relocated under $prefix as well as $exec_prefix References: <87ejlz1pot.fsf@firetop.home> <20070511180543.GC1684@caradoc.them.org> Date: Sat, 12 May 2007 08:23:00 -0000 In-Reply-To: <20070511180543.GC1684@caradoc.them.org> (Daniel Jacobowitz's message of "Fri, 11 May 2007 14:05:43 -0400") Message-ID: <87k5ve78nb.fsf@firetop.home> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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/msg00221.txt.bz2 Daniel Jacobowitz writes: > 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). Doh! Sorry, I must have grepped wrongly. Probably for DTARGET_SYSTEM_ROOT_RELOCATABLE or something that stupid like that. >> 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. Thanks. > I think the GCC part is sufficiently obvious, or else ping Paolo. I think "obvious" is a bit of a stretch in this case, so I'll hold off the applying until the gcc part is reviewed. Richard