summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1994-02-04 18:08:09 +0000
committermycroft <mycroft@NetBSD.org>1994-02-04 18:08:09 +0000
commit7af9c0b2a8ec6cdac08ed3438fc17c4ac6ea4235 (patch)
tree5822740356fabcaeec060c35ff74f65e7993f69b /gnu
parentdd42b1f9c6fcb6c9be78afff950ebe2e1fd3756b (diff)
Hopefully fix some of the m68k page size conflicts.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/gdb/bfd/arch/m68k/Makefile.inc8
-rw-r--r--gnu/usr.bin/gdb/bfd/arch/m68k/netbsdm68k.c12
-rw-r--r--gnu/usr.bin/gdb/bfd/arch/m68k/netbsdm68k4k.c40
-rw-r--r--gnu/usr.bin/gdb/bfd/libaout.h3
-rw-r--r--gnu/usr.bin/gdb/bfd/targets.c3
5 files changed, 54 insertions, 12 deletions
diff --git a/gnu/usr.bin/gdb/bfd/arch/m68k/Makefile.inc b/gnu/usr.bin/gdb/bfd/arch/m68k/Makefile.inc
index a1a59ecb476..d9d46da809f 100644
--- a/gnu/usr.bin/gdb/bfd/arch/m68k/Makefile.inc
+++ b/gnu/usr.bin/gdb/bfd/arch/m68k/Makefile.inc
@@ -1,11 +1,11 @@
-# $Id: Makefile.inc,v 1.1 1994/01/28 12:38:23 pk Exp $
+# $Id: Makefile.inc,v 1.2 1994/02/04 18:08:13 mycroft Exp $
-SRCS+= netbsdm68k.c cpu-m68k.c
+SRCS+= netbsdm68k.c netbsdm68k4k.c cpu-m68k.c
CFLAGS+= -DTRAD_CORE
-VECTORS= -DDEFAULT_VECTOR=netbsd_m68k_vec \
+VECTORS= -DDEFAULT_VECTOR=netbsd_m68k4k_vec \
-DSELECT_ARCHITECTURES=bfd_m68k_arch \
- -DSELECT_VECS='&netbsd_m68k_vec'
+ -DSELECT_VECS='&netbsd_m68k_vec, &netbsd_m68k4k_vec'
diff --git a/gnu/usr.bin/gdb/bfd/arch/m68k/netbsdm68k.c b/gnu/usr.bin/gdb/bfd/arch/m68k/netbsdm68k.c
index 5720dcdc57a..a4068c427f4 100644
--- a/gnu/usr.bin/gdb/bfd/arch/m68k/netbsdm68k.c
+++ b/gnu/usr.bin/gdb/bfd/arch/m68k/netbsdm68k.c
@@ -17,20 +17,20 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: netbsdm68k.c,v 1.1 1994/01/28 12:38:25 pk Exp $
+ $Id: netbsdm68k.c,v 1.2 1994/02/04 18:08:15 mycroft Exp $
*/
#define BYTES_IN_WORD 4
#define ARCH 32
-#define HOST_BIG_ENDIAN_P
-#define TARGET_BIG_ENDIAN_P
+#define HOST_IS_BIG_ENDIAN_P
+#define TARGET_IS_BIG_ENDIAN_P
-#define PAGE_SIZE 4096
+#define PAGE_SIZE 8192
#define SEGMENT_SIZE PAGE_SIZE
-#define __LDPGSZ 4096
+#define __LDPGSZ 8192
#define DEFAULT_ARCH bfd_arch_m68k
-#define MACHTYPE_OK(mtype) ((mtype) == M_HP300 || (mtype) == M_M68K_NETBSD || (mtype) == M_UNKNOWN)
+#define MACHTYPE_OK(mtype) ((mtype) == M_M68K_NETBSD || (mtype) == M_UNKNOWN)
#define MY(OP) CAT(netbsd_m68k_,OP)
/* This needs to start with a.out so GDB knows it is an a.out variant. */
diff --git a/gnu/usr.bin/gdb/bfd/arch/m68k/netbsdm68k4k.c b/gnu/usr.bin/gdb/bfd/arch/m68k/netbsdm68k4k.c
new file mode 100644
index 00000000000..acf15aec0df
--- /dev/null
+++ b/gnu/usr.bin/gdb/bfd/arch/m68k/netbsdm68k4k.c
@@ -0,0 +1,40 @@
+/* BFD back-end for NetBSD/m68k a.out-ish binaries.
+ Copyright (C) 1990, 1991, 1992 Free Software Foundation, Inc.
+
+This file is part of BFD, the Binary File Descriptor library.
+
+This program 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 of the License, or
+(at your option) any later version.
+
+This program 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 this program; if not, write to the Free Software
+Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ $Id: netbsdm68k4k.c,v 1.1 1994/02/04 18:08:17 mycroft Exp $
+*/
+
+#define BYTES_IN_WORD 4
+#define ARCH 32
+#define HOST_IS_BIG_ENDIAN_P
+#define TARGET_IS_BIG_ENDIAN_P
+
+#define PAGE_SIZE 4096
+#define SEGMENT_SIZE PAGE_SIZE
+#define __LDPGSZ 4096
+
+#define DEFAULT_ARCH bfd_arch_m68k
+#define MACHTYPE_OK(mtype) ((mtype) == M_HP300 || (mtype) == M_M68K4K_NETBSD || (mtype) == M_UNKNOWN)
+
+#define MY(OP) CAT(netbsd_m68k4k_,OP)
+/* This needs to start with a.out so GDB knows it is an a.out variant. */
+#define TARGETNAME "a.out-netbsd-m68k4k"
+
+#include "netbsd.h"
+
diff --git a/gnu/usr.bin/gdb/bfd/libaout.h b/gnu/usr.bin/gdb/bfd/libaout.h
index 34bd60d76d8..34213962378 100644
--- a/gnu/usr.bin/gdb/bfd/libaout.h
+++ b/gnu/usr.bin/gdb/bfd/libaout.h
@@ -18,7 +18,7 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: libaout.h,v 1.1 1994/01/28 12:37:55 pk Exp $
+ $Id: libaout.h,v 1.2 1994/02/04 18:08:09 mycroft Exp $
*/
/* We try to encapsulate the differences in the various a.out file
@@ -131,6 +131,7 @@ enum machine_type {
M_386_DYNIX = 102, /* Sequent running dynix */
M_386_NETBSD = 134, /* NetBSD/386 binary */
M_M68K_NETBSD = 135, /* NetBSD/m68k binary */
+ M_M68K4K_NETBSD = 136, /* NetBSD/m68k4k binary */
M_MIPS1 = 151, /* MIPS R2000/R3000 binary */
M_MIPS2 = 152, /* MIPS R4000/R6000 binary */
M_HP200 = 200, /* HP 200 (68010) BSD binary */
diff --git a/gnu/usr.bin/gdb/bfd/targets.c b/gnu/usr.bin/gdb/bfd/targets.c
index 79102ac17ac..89bf86286b4 100644
--- a/gnu/usr.bin/gdb/bfd/targets.c
+++ b/gnu/usr.bin/gdb/bfd/targets.c
@@ -18,7 +18,7 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: targets.c,v 1.1 1994/01/28 12:38:13 pk Exp $
+ $Id: targets.c,v 1.2 1994/02/04 18:08:11 mycroft Exp $
*/
#include "bfd.h"
@@ -384,6 +384,7 @@ extern bfd_target z8kcoff_vec;
extern bfd_target netbsd_386_vec;
extern bfd_target netbsd_sparc_vec;
extern bfd_target netbsd_m68k_vec;
+extern bfd_target netbsd_m68k4k_vec;
/* srec is always included. */
extern bfd_target srec_vec;