From dfeb862ca8f859d707faf84edacfc53e06d69b09 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 27 Jul 1998 01:03:48 +0000 Subject: Add definitions for mipseb and mipsel, and remove mips. Map Pmake's MACHINE_ARCH definition of mips to mipsel. --- gnu/lib/bfd/Makefile | 7 ++++--- gnu/lib/bfd/_mips.mk | 31 ------------------------------- gnu/lib/bfd/_mipseb.mk | 31 +++++++++++++++++++++++++++++++ gnu/lib/bfd/_mipsel.mk | 31 +++++++++++++++++++++++++++++++ 4 files changed, 66 insertions(+), 34 deletions(-) delete mode 100644 gnu/lib/bfd/_mips.mk create mode 100644 gnu/lib/bfd/_mipseb.mk create mode 100644 gnu/lib/bfd/_mipsel.mk (limited to 'gnu') diff --git a/gnu/lib/bfd/Makefile b/gnu/lib/bfd/Makefile index 361443b447c..e833d6a82fe 100644 --- a/gnu/lib/bfd/Makefile +++ b/gnu/lib/bfd/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 1998/05/22 03:26:28 tv Exp $ +# $NetBSD: Makefile,v 1.12 1998/07/27 01:03:48 tv Exp $ LIB= bfd @@ -25,8 +25,9 @@ CPPFLAGS+= -I$(dist)/include .PATH: $(dist)/opcodes .PATH: $(dist)/libiberty -.if exists(_${MACHINE_ARCH}.mk) -.include "_${MACHINE_ARCH}.mk" +# XXX temporary change mips -> mipsel +.if exists(_${MACHINE_ARCH:S/^mips$/mipsel/}.mk) +.include "_${MACHINE_ARCH:S/^mips$/mipsel/}.mk" .endif # From $(dist)/bfd: BFD_LIBS, BFD_BACKENDS, BFD_MACHINES, ... diff --git a/gnu/lib/bfd/_mips.mk b/gnu/lib/bfd/_mips.mk deleted file mode 100644 index 80829703724..00000000000 --- a/gnu/lib/bfd/_mips.mk +++ /dev/null @@ -1,31 +0,0 @@ -# $NetBSD: _mips.mk,v 1.7 1997/10/19 10:44:54 jonathan Exp $ - -BFD_MACHINES = cpu-mips.c -BFD_BACKENDS = elf32-mips.c elf32.c elf.c elflink.c ecofflink.c \ - coff-mips.c ecoff.c - -ARCH_DEFS = -DARCH_mips \ - -DSELECT_ARCHITECTURES='&bfd_mips_arch' - -TDEFAULTS = \ - -DDEFAULT_VECTOR=bfd_elf32_littlemips_vec \ - -DSELECT_VECS=' &bfd_elf32_littlemips_vec, &bfd_elf32_bigmips_vec, &ecoff_little_vec, &ecoff_big_vec ' \ - -DHAVE_bfd_elf32_littlemips_vec \ - -DHAVE_bfd_elf32_bigmips_vec \ - -DHAVE_ecoff_little_vec \ - -DHAVE_ecoff_big_vec \ - -DNETBSD_CORE - -# XXX cannot support 64-bit BFD targets with gdb 4.16. -# They assume that BFD_ARCH_SIZE is 64, but that causes bfd_vma_addr -# to be a 64-bit int. GDB uses bfd_vma_addr for CORE_ADDR, but also -# casts CORE_ADDRS to ints, which loses on 32-bit mips hosts. -# TDEFAULTS += \ -# -DHAVE_bfd_elf64_bigmips_vec \ -# -DHAVE_bfd_elf64_littlemips_vec \ -# _DSELECT VECS = &bfd_elf64_bigmips_vec, &bfd_elf64_littlemips_vec, -# -# BFD_BACKENDS += \ -# elf64-mips.c elf64.c - -OPCODE_MACHINES = mips-dis.c mips-opc.c mips16-opc.c diff --git a/gnu/lib/bfd/_mipseb.mk b/gnu/lib/bfd/_mipseb.mk new file mode 100644 index 00000000000..f14aa279657 --- /dev/null +++ b/gnu/lib/bfd/_mipseb.mk @@ -0,0 +1,31 @@ +# $NetBSD: _mipseb.mk,v 1.1 1998/07/27 01:03:48 tv Exp $ + +BFD_MACHINES = cpu-mips.c +BFD_BACKENDS = elf32-mips.c elf32.c elf.c elflink.c ecofflink.c \ + coff-mips.c ecoff.c + +ARCH_DEFS = -DARCH_mips \ + -DSELECT_ARCHITECTURES='&bfd_mips_arch' + +TDEFAULTS = \ + -DDEFAULT_VECTOR=bfd_elf32_bigmips_vec \ + -DSELECT_VECS=' &bfd_elf32_littlemips_vec, &bfd_elf32_bigmips_vec, &ecoff_little_vec, &ecoff_big_vec ' \ + -DHAVE_bfd_elf32_littlemips_vec \ + -DHAVE_bfd_elf32_bigmips_vec \ + -DHAVE_ecoff_little_vec \ + -DHAVE_ecoff_big_vec \ + -DNETBSD_CORE + +# XXX cannot support 64-bit BFD targets with gdb 4.16. +# They assume that BFD_ARCH_SIZE is 64, but that causes bfd_vma_addr +# to be a 64-bit int. GDB uses bfd_vma_addr for CORE_ADDR, but also +# casts CORE_ADDRS to ints, which loses on 32-bit mips hosts. +# TDEFAULTS += \ +# -DHAVE_bfd_elf64_bigmips_vec \ +# -DHAVE_bfd_elf64_littlemips_vec \ +# _DSELECT VECS = &bfd_elf64_bigmips_vec, &bfd_elf64_littlemips_vec, +# +# BFD_BACKENDS += \ +# elf64-mips.c elf64.c + +OPCODE_MACHINES = mips-dis.c mips-opc.c mips16-opc.c diff --git a/gnu/lib/bfd/_mipsel.mk b/gnu/lib/bfd/_mipsel.mk new file mode 100644 index 00000000000..55698ed1a5d --- /dev/null +++ b/gnu/lib/bfd/_mipsel.mk @@ -0,0 +1,31 @@ +# $NetBSD: _mipsel.mk,v 1.1 1998/07/27 01:03:48 tv Exp $ + +BFD_MACHINES = cpu-mips.c +BFD_BACKENDS = elf32-mips.c elf32.c elf.c elflink.c ecofflink.c \ + coff-mips.c ecoff.c + +ARCH_DEFS = -DARCH_mips \ + -DSELECT_ARCHITECTURES='&bfd_mips_arch' + +TDEFAULTS = \ + -DDEFAULT_VECTOR=bfd_elf32_littlemips_vec \ + -DSELECT_VECS=' &bfd_elf32_littlemips_vec, &bfd_elf32_bigmips_vec, &ecoff_little_vec, &ecoff_big_vec ' \ + -DHAVE_bfd_elf32_littlemips_vec \ + -DHAVE_bfd_elf32_bigmips_vec \ + -DHAVE_ecoff_little_vec \ + -DHAVE_ecoff_big_vec \ + -DNETBSD_CORE + +# XXX cannot support 64-bit BFD targets with gdb 4.16. +# They assume that BFD_ARCH_SIZE is 64, but that causes bfd_vma_addr +# to be a 64-bit int. GDB uses bfd_vma_addr for CORE_ADDR, but also +# casts CORE_ADDRS to ints, which loses on 32-bit mips hosts. +# TDEFAULTS += \ +# -DHAVE_bfd_elf64_bigmips_vec \ +# -DHAVE_bfd_elf64_littlemips_vec \ +# _DSELECT VECS = &bfd_elf64_bigmips_vec, &bfd_elf64_littlemips_vec, +# +# BFD_BACKENDS += \ +# elf64-mips.c elf64.c + +OPCODE_MACHINES = mips-dis.c mips-opc.c mips16-opc.c -- cgit