This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Allow sysroots to be relocated under $prefix as well as $exec_prefix
- From: Richard Sandiford <richard at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: binutils at sourceware dot org, gdb-patches at sourceware dot org
- Date: Sat, 12 May 2007 09:23:20 +0100
- Subject: Re: Allow sysroots to be relocated under $prefix as well as $exec_prefix
- References: <87ejlz1pot.fsf@firetop.home> <20070511180543.GC1684@caradoc.them.org>
Daniel Jacobowitz <drow@false.org> 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