]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add TARGET_ARCH=mipsel and TARGET_ARCH=mipseb as a valid targets.
authorimp <imp@FreeBSD.org>
Mon, 1 Mar 1999 04:01:57 +0000 (04:01 +0000)
committerimp <imp@FreeBSD.org>
Mon, 1 Mar 1999 04:01:57 +0000 (04:01 +0000)
commit4697c1d0cccc83ba10c6c5e376db0f5033fd450e
tree920bc80647ff4c545a38c6c76a6a247bf622a902
parent57b9785287124e53b58a5857d114a7f340c6ba17
Add TARGET_ARCH=mipsel and TARGET_ARCH=mipseb as a valid targets.
Unlike the unisex architecutres we've had so far, mips is bisexual.
These tools can produce either byte sex, and the compiler/make
determines the proper gender to use.  Otherwise, we'd have to have had
mipsel and mipseb in all the places that we have just mips.  And there
are other complications with doing that (binutils doesn't like to
build mips tools without both byte genders, it seems).

Introduced BINUTIL_ARCH so that other bisexual architectures can a
generic mechanism.

We cannot just define MACHINE_ARCH as mips because we need to
differentiate big and little endian types of binaries.  Discussions on
freebsd-arch have hashed out this issue (and the parallel libc
issues).  NetBSD is moving towards mipsel and mipseb for their two
flavors of mips ports (in time for 1.4, if this change hasn't already
been accomplished).

I've been building i386 worlds with this tree for a three months with
these files in place with no ill effects.
17 files changed:
gnu/usr.bin/binutils/Makefile.inc0
gnu/usr.bin/binutils/as/Makefile
gnu/usr.bin/binutils/as/mips-freebsd/Makefile [new file with mode: 0644]
gnu/usr.bin/binutils/as/mips-freebsd/config.h [new file with mode: 0644]
gnu/usr.bin/binutils/as/mips-freebsd/itbl-cpu.h [new file with mode: 0644]
gnu/usr.bin/binutils/as/mips-freebsd/obj-format.h [new file with mode: 0644]
gnu/usr.bin/binutils/as/mips-freebsd/targ-cpu.h [new file with mode: 0644]
gnu/usr.bin/binutils/as/mips-freebsd/targ-env.h [new file with mode: 0644]
gnu/usr.bin/binutils/ld/Makefile.mips [new file with mode: 0644]
gnu/usr.bin/binutils/ld/mips/ldemul-list.h [new file with mode: 0644]
gnu/usr.bin/binutils/libbfd/Makefile
gnu/usr.bin/binutils/libbfd/Makefile.mips [new file with mode: 0644]
gnu/usr.bin/binutils/libbfd/mips/bfd.h [new file with mode: 0644]
gnu/usr.bin/binutils/libbfd/mips/config.h [new file with mode: 0644]
gnu/usr.bin/binutils/libbinutils/Makefile.mips [new file with mode: 0644]
gnu/usr.bin/binutils/libopcodes/Makefile
gnu/usr.bin/binutils/libopcodes/Makefile.mips [new file with mode: 0644]