Remove MIPS support.

It has rotted quite badly and no one has provided updates for it.
This commit is contained in:
David E. O'Brien 2001-04-11 00:12:48 +00:00
parent 907ca3853b
commit 370d222b7f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75400
20 changed files with 3 additions and 3187 deletions

View File

@ -57,6 +57,7 @@ mkdep
*mac-*
*mach*
*mcore*
*mips*
*mpw*
*netware*
*news*

View File

@ -59,6 +59,7 @@ texinfo
*mac-*
*mach*
*mcore*
*mips*
*mpw*
*netware*
*news*

View File

@ -57,6 +57,7 @@ config/m32r
config/m68k
config/m88k
config/mcore
config/mips
config/mn10200
config/mn10300
config/msdos

View File

@ -9,11 +9,7 @@ SUBDIR= libiberty libbfd libopcodes libbinutils \
size strings strip doc
.if !defined(NO_GDB)
# Maybe should be unconditional but I don't want to get in the
# way of the mips port.
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "alpha"
SUBDIR+= gdb gdbserver gdbreplay
.endif
.endif
.include <bsd.subdir.mk>

View File

@ -11,11 +11,7 @@
VERSION= 2.10.1
TARGET_ARCH?= ${MACHINE_ARCH}
.if ${TARGET_ARCH} == "mipsel" || ${TARGET_ARCH} == "mipseb"
BINUTIL_ARCH=mips
.else
BINUTIL_ARCH=${TARGET_ARCH}
.endif
# RELTOP is the relative path to this point in the source or object
# tree, from any subdirectory of same. It gets extra "../" prefixes

View File

@ -1,21 +0,0 @@
#
# $FreeBSD$
#
.include "${.CURDIR}/../Makefile.inc0"
PROG= as
.if ${MACHINE_ARCH} != "mipsel" && ${MACHINE_ARCH} != "mipseb"
NOMAN= 1
BINDIR= /usr/libexec/cross/mips-freebsd
# If we aren't doing cross-assembling, some operations can be optimized, since
# byte orders and value sizes don't need to be adjusted.
CFLAGS+= -DCROSS_COMPILE=1
.endif
.if ${MACHINE_ARCH} == "mipsel"
CFLAGS+= -DTARGET_BYTES_BIG_ENDIAN=0
.endif
SRCS+= obj-elf.c tc-mips.c itbl-ops.c itbl-parse.y itbl-lex.l
.include <bsd.prog.mk>

View File

@ -1,133 +0,0 @@
/* config.h. Generated automatically by make. */
#ifndef GAS_VERSION
#define GAS_VERSION "2.8.1"
/* conf. Generated automatically by configure. */
/* conf.in. Generated automatically from configure.in by autoheader. */
/* Define if using alloca.c. */
/* #undef C_ALLOCA */
/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
This function is required for alloca.c support on those systems. */
/* #undef CRAY_STACKSEG_END */
/* Define if you have alloca, as a function or macro. */
#define HAVE_ALLOCA 1
/* Define if you have <alloca.h> and it should be used (not on Ultrix). */
/* #undef HAVE_ALLOCA_H */
/* Define as __inline if that's what the C compiler calls it. */
/* #undef inline */
/* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be
automatically deduced at run-time.
STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown
*/
/* #undef STACK_DIRECTION */
/* Should gas use high-level BFD interfaces? */
#define BFD_ASSEMBLER 1
/* Some assert/preprocessor combinations are incapable of handling
certain kinds of constructs in the argument of assert. For example,
quoted strings (if requoting isn't done right) or newlines. */
/* #undef BROKEN_ASSERT */
/* If we aren't doing cross-assembling, some operations can be optimized,
since byte orders and value sizes don't need to be adjusted. */
#define CROSS_COMPILE
/* Some gas code wants to know these parameters. */
#define TARGET_ALIAS "mips-unknown-freebsdelf"
#define TARGET_CPU "mips"
#define TARGET_CANONICAL "mips-unknown-freebsdelf"
#define TARGET_OS "freebsdelf"
#define TARGET_VENDOR "unknown"
/* Sometimes the system header files don't declare strstr. */
/* #undef NEED_DECLARATION_STRSTR */
/* Sometimes the system header files don't declare malloc and realloc. */
/* #undef NEED_DECLARATION_MALLOC */
/* Sometimes the system header files don't declare free. */
/* #undef NEED_DECLARATION_FREE */
/* Sometimes the system header files don't declare sbrk. */
/* #undef NEED_DECLARATION_SBRK */
/* Sometimes errno.h doesn't declare errno itself. */
/* #undef NEED_DECLARATION_ERRNO */
/* #undef MANY_SEGMENTS */
/* Needed only for sparc configuration. */
/* #undef SPARC_V9 */
/* #undef SPARC_ARCH64 */
/* Defined if using CGEN. */
/* #undef USING_CGEN */
/* Needed only for some configurations that can produce multiple output
formats. */
#define DEFAULT_EMULATION ""
#define EMULATIONS
/* #undef USE_EMULATIONS */
/* #undef OBJ_MAYBE_AOUT */
/* #undef OBJ_MAYBE_BOUT */
/* #undef OBJ_MAYBE_COFF */
/* #undef OBJ_MAYBE_ECOFF */
/* #undef OBJ_MAYBE_ELF */
/* #undef OBJ_MAYBE_GENERIC */
/* #undef OBJ_MAYBE_HP300 */
/* #undef OBJ_MAYBE_IEEE */
/* #undef OBJ_MAYBE_SOM */
/* #undef OBJ_MAYBE_VMS */
/* Used for some of the COFF configurations, when the COFF code needs
to select something based on the CPU type before it knows it... */
/* #undef I386COFF */
/* #undef M68KCOFF */
/* #undef M88KCOFF */
/* Define if you have the remove function. */
/* #undef HAVE_REMOVE */
/* Define if you have the sbrk function. */
#define HAVE_SBRK 1
/* Define if you have the unlink function. */
#define HAVE_UNLINK 1
/* Define if you have the <errno.h> header file. */
#define HAVE_ERRNO_H 1
/* Define if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define if you have the <stdarg.h> header file. */
#define HAVE_STDARG_H 1
/* Define if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define if you have the <varargs.h> header file. */
#define HAVE_VARARGS_H 1
#endif /* GAS_VERSION */

View File

@ -1,47 +0,0 @@
/* itbl-mips.h
Copyright (C) 1997 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
GAS is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GAS is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GAS; see the file COPYING. If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
/* Defines for Mips itbl cop support */
#include "opcode/mips.h"
/* Values for processors will be from 0 to NUMBER_OF_PROCESSORS-1 */
#define NUMBER_OF_PROCESSORS 4
#define MAX_BITPOS 31
/* Mips specifics */
#define MIPS_OPCODE_COP0 (0x21) /* COPz+CO, bits 31-25: 0100zz1 */
#define MIPS_ENCODE_COP_NUM(z) ((MIPS_OPCODE_COP0|z<<1)<<25)
#define MIPS_IS_COP_INSN(insn) ((MIPS_OPCODE_COP0&(insn>>25)) \
== MIPS_OPCODE_COP0)
#define MIPS_DECODE_COP_NUM(insn) ((~MIPS_OPCODE_COP0&(insn>>25))>>1)
#define MIPS_DECODE_COP_COFUN(insn) ((~MIPS_ENCODE_COP_NUM(3))&(insn))
/* definitions required by generic code */
#define ITBL_IS_INSN(insn) MIPS_IS_COP_INSN(insn)
#define ITBL_DECODE_PNUM(insn) MIPS_DECODE_COP_NUM(insn)
#define ITBL_ENCODE_PNUM(pnum) MIPS_ENCODE_COP_NUM(pnum)
#define ITBL_OPCODE_STRUCT mips_opcode
#define ITBL_OPCODES mips_opcodes
#define ITBL_NUM_OPCODES NUMOPCODES
#define ITBL_NUM_MACROS M_NUM_MACROS

View File

@ -1 +0,0 @@
#include "obj-elf.h"

View File

@ -1 +0,0 @@
#include "tc-mips.h"

View File

@ -1 +0,0 @@
#include "te-freebsd.h"

View File

@ -1,38 +0,0 @@
#
# $FreeBSD$
#
.if ${MACHINE_ARCH} == "mipseb"
HOST= mipseb-unknown-freebsdelf
CFLAGS+= -DDEFAULT_EMULATION=\"elf32bmip\"
CFLAGS+= -DTARGET=\"elf32-bigmips\"
_mips_path= \"/usr/lib\"
.elif ${MACHINE_ARCH} == "mipsel"
HOST= mipsel-unknown-freebsdelf
CFLAGS+= -DDEFAULT_EMULATION=\"elf32lmip\"
CFLAGS+= -DTARGET=\"elf32-littlemips\"
_mips_path= \"/usr/lib\"
.else
_mips_path= \"/usr/cross/mips-freebsd/usr/lib\"
.endif
EMS+= ld_elf32bmip_emulation ld_elf32lmip_emulation
LDSCRIPTS+= elf32bmip.x elf32bmip.xbn elf32bmip.xn elf32bmip.xr \
elf32bmip.xs elf32bmip.xu elf32lmip.x elf32lmip.xbn \
elf32lmip.xn elf32lmip.xr elf32lmip.xs elf32lmip.xu
SRCS+= eelf32bmip.c
SRCS+= eelf32lmip.c
CLEANFILES+= eelf32bmip.c
CLEANFILES+= eelf32lmip.c
eelf32bmip.c: emulparams/elf32ebmip.sh emultempl/elf32.em \
scripttempl/elf.sc genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_mips_path} \
${HOST} mipseb-unknown-freebsdelf mipseb-unknown-freebsdelf \
elf32bmip "" elf32bmip mipseb-unknown-freebsdelf
eelf32lmip.c: emulparams/elf32elmip.sh emultempl/elf32.em \
scripttempl/elf.sc genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_mips_path} \
${HOST} mipsel-unknown-freebsdelf mipsel-unknown-freebsdelf \
elf32lmip "" elf32lmip mipsel-unknown-freebsdelf

View File

@ -1,7 +0,0 @@
/* This file is automatically generated. DO NOT EDIT! */
extern ld_emulation_xfer_type ld_elf_i386_emulation;
#define EMULATION_LIST \
&ld_elf32ebmip_emulation, \
&ld_elf32elmip_emulation, \
0

View File

@ -1,20 +0,0 @@
#
# $FreeBSD$
#
SRCS+= cpu-mips.c elf32-mips.c elf32-target.h elf32.c elflink.c
SRCS+= coff-mips.c ecoff.c ecofflink.c mips-opc.c mips16-opc.c
VECS+= bfd_elf32_littlemips_vec bfd_elf32_bigmips_vec ecoff_little_vec ecoff_big_vec
.if ${MACHINE_ARCH} == "mipsel"
CFLAGS+= -DDEFAULT_VECTOR=bfd_elf32_littlemips_vec
.endif
.if ${MACHINE_ARCH} == "mipseb"
CFLAGS+= -DDEFAULT_VECTOR=bfd_elf32_bigmips_vec
.endif
CFLAGS+= -DHAVE_bfd_elf32_littlemips_vec
CFLAGS+= -DHAVE_bfd_elf32_bigmips_vec
CFLAGS+= -DHAVE_ecoff_little_vec
CFLAGS+= -DHAVE_ecoff_big_vec
CLEANFILES+= elf32-target.h
elf32-target.h: elfxx-target.h
sed -e s/NN/32/g ${.ALLSRC} > ${.TARGET}

File diff suppressed because it is too large Load Diff

View File

@ -1,92 +0,0 @@
/* config.h. Generated automatically by configure. */
/* config.in. Generated automatically from configure.in by autoheader. */
/* Name of package. */
#define PACKAGE "bfd"
/* Version of package. */
#define VERSION "2.9.1"
/* Whether strstr must be declared even if <string.h> is included. */
/* #undef NEED_DECLARATION_STRSTR */
/* Whether malloc must be declared even if <stdlib.h> is included. */
/* #undef NEED_DECLARATION_MALLOC */
/* Whether realloc must be declared even if <stdlib.h> is included. */
/* #undef NEED_DECLARATION_REALLOC */
/* Whether free must be declared even if <stdlib.h> is included. */
/* #undef NEED_DECLARATION_FREE */
/* Whether getenv must be declared even if <stdlib.h> is included. */
/* #undef NEED_DECLARATION_GETENV */
/* Define if you have a working `mmap' system call. */
#define HAVE_MMAP 1
/* Define if you need to in order for stat and other things to work. */
/* #undef _POSIX_SOURCE */
/* Define if you can safely include both <sys/time.h> and <time.h>. */
#define TIME_WITH_SYS_TIME 1
/* Do we need to use the b modifier when opening binary files? */
/* #undef USE_BINARY_FOPEN */
/* Name of host specific header file to include in trad-core.c. */
/* #undef TRAD_HEADER */
/* Define only if <sys/procfs.h> is available *and* it defines prstatus_t. */
#define HAVE_SYS_PROCFS_H 1
/* Do we really want to use mmap if it's available? */
/* #undef USE_MMAP */
/* Define if you have the fcntl function. */
#define HAVE_FCNTL 1
/* Define if you have the fdopen function. */
#define HAVE_FDOPEN 1
/* Define if you have the getpagesize function. */
#define HAVE_GETPAGESIZE 1
/* Define if you have the madvise function. */
#define HAVE_MADVISE 1
/* Define if you have the mprotect function. */
#define HAVE_MPROTECT 1
/* Define if you have the setitimer function. */
#define HAVE_SETITIMER 1
/* Define if you have the sysconf function. */
#define HAVE_SYSCONF 1
/* Define if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H 1
/* Define if you have the <stddef.h> header file. */
#define HAVE_STDDEF_H 1
/* Define if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define if you have the <sys/file.h> header file. */
#define HAVE_SYS_FILE_H 1
/* Define if you have the <sys/time.h> header file. */
#define HAVE_SYS_TIME_H 1
/* Define if you have the <time.h> header file. */
#define HAVE_TIME_H 1
/* Define if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1

View File

@ -9,13 +9,7 @@
LIB= binutils
SRCS+= arlex.l arparse.y arsup.c bucomm.c debug.c filemode.c \
ieee.c rdcoff.c rddbg.c rename.c stabs.c wrstabs.c version.c
.if ${TARGET_ARCH} == "mipseb"
CFLAGS+= -DTARGET=\"elf32-bigmips\"
.elif ${TARGET_ARCH} == "mipsel"
CFLAGS+= -DTARGET=\"elf32-littlemips\"
.else
CFLAGS+= -DTARGET=\"${TARGET_ARCH}-unknown-freebsd\"
.endif
CFLAGS+= -DVERSION=\"${VERSION}\"
CFLAGS+= -I${SRCDIR}/binutils
CFLAGS+= -I${SRCDIR}/bfd

View File

@ -1,5 +0,0 @@
#
# $FreeBSD$
#
TARGET= ${MACHINE_ARCH}-unknown-freebsd

View File

@ -1,6 +0,0 @@
#
# $FreeBSD$
#
SRCS+= mips-dis.c
CFLAGS+= -DARCH_mips

View File

@ -7,12 +7,7 @@
GCCDIR= ${.CURDIR}/../../../../contrib/gcc.295
TARGET_ARCH?= ${MACHINE_ARCH}
.if ${TARGET_ARCH} == "mipsel" || ${TARGET_ARCH} == "mipseb"
GCC_ARCH= mips
.else
GCC_ARCH= ${TARGET_ARCH}
.endif
# Machine description.
MD_FILE= ${GCCDIR}/config/${GCC_ARCH}/${GCC_ARCH}.md