Subject: Re: Compiling -current on pmax
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: current-users
Date: 07/23/1998 10:48:08
On Thu, 23 Jul 1998 23:43:01 +0900 (JST) 
 tsutsui@ceres.dti.ne.jp (Izumi Tsutsui) wrote:

 > > The problem is /usr/src/gnu/dist/bfd/config.bfd. It doesn't know about
 > > "mips-unknown-netbsd". Pulling the following from the binutils 2.9.1
 > > distribution fixed the problem:
 > > 
 > >  mips*-*-netbsd*)
 > >     targ_defvec=bfd_elf32_bigmips_vec
 > >     targ_selvecs="bfd_elf32_littlemips_vec ecoff_big_vec ecoff_little_vec"
 > >     ;;
 > 
 > "mips-sony-netbsd*" is big endian, but "mips-dec-netbsd*"
 > (and also pica/arc?) should be defined as little endian.
 > 
 > I think /usr/src/gnu/usr.bin/binutils/Makefile.inc should be support
 > bi-endian arch.

The NetBSD/mips BFD targets are all screwey.  They should be:

	mipseb-unknown-netbsd*
	mipsel-unknown-netbsd*

The appropriate default should be selected based on hw.byteorder at build
time, but both targets should always be included.

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                            Home: +1 408 866 1912
NAS: M/S 258-5                                       Work: +1 650 604 0935
Moffett Field, CA 94035                             Pager: +1 650 940 5942