This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Allow sysroots to be relocated under $prefix as well as $exec_prefix


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]