Define DEFAULT_ARCH, DEFAULT_MID for netbsd.h

This commit is contained in:
gwr 1997-09-24 18:39:10 +00:00
parent 60e710094f
commit 9287cd69a3
6 changed files with 42 additions and 12 deletions

View File

@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define SEGMENT_SIZE TARGET_PAGE_SIZE
#define DEFAULT_ARCH bfd_arch_i386
#define MACHTYPE_OK(mtype) ((mtype) == M_386_NETBSD || (mtype) == M_UNKNOWN)
#define DEFAULT_MID M_386_NETBSD
#define MY(OP) CAT(i386netbsd_,OP)
/* This needs to start with a.out so GDB knows it is an a.out variant. */

View File

@ -20,13 +20,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define BYTES_IN_WORD 4
#define TARGET_IS_BIG_ENDIAN_P
#define TARGET_PAGE_SIZE 4096
#define SEGMENT_SIZE 4096
#define TARGET_PAGE_SIZE 0x1000
#define DEFAULT_ARCH bfd_arch_m68k
#define MACHTYPE_OK(mtype) \
((mtype) == M_68020 || (mtype) == M_68K_NETBSD || (mtype) == M_68K4K_NETBSD \
|| (mtype) == M_UNKNOWN)
#define DEFAULT_MID M_68K4K_NETBSD
#define MY(OP) CAT(m68k4knetbsd_,OP)
/* This needs to start with a.out so GDB knows it is an a.out variant. */

View File

@ -20,12 +20,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define BYTES_IN_WORD 4
#define TARGET_IS_BIG_ENDIAN_P
/* Our m68k ports use either 4K or 8K pages, but object files always
assume 8K page alignment so they will work on all m68k machines. */
#define TARGET_PAGE_SIZE 0x2000
#define DEFAULT_ARCH bfd_arch_m68k
#define MACHTYPE_OK(mtype) \
((mtype) == M_68020 || (mtype) == M_68K_NETBSD || (mtype) == M_68K4K_NETBSD \
|| (mtype) == M_UNKNOWN)
#define DEFAULT_MID M_68K_NETBSD
#define MY(OP) CAT(m68knetbsd_,OP)
/* This needs to start with a.out so GDB knows it is an a.out variant. */

View File

@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define SEGMENT_SIZE 4096
#define DEFAULT_ARCH bfd_arch_ns32k
#define MACHTYPE_OK(mtype) ((mtype) == M_532_NETBSD || (mtype) == M_UNKNOWN)
#define DEFAULT_MID M_532_NETBSD
#define MY(OP) CAT(pc532netbsd_,OP)

View File

@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define TARGET_PAGE_SIZE 0x2000
#define DEFAULT_ARCH bfd_arch_sparc
#define MACHTYPE_OK(mtype) ((mtype) == M_SPARC_NETBSD || (mtype) == M_UNKNOWN)
#define DEFAULT_MID M_SPARC_NETBSD
#define MY(OP) CAT(sparcnetbsd_,OP)
/* This needs to start with a.out so GDB knows it is an a.out variant. */

33
gnu/dist/bfd/vaxnetbsd.c vendored Normal file
View File

@ -0,0 +1,33 @@
/* BFD back-end for NetBSD/VAX 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define BYTES_IN_WORD 4
#undef TARGET_IS_BIG_ENDIAN_P
#define TARGET_PAGE_SIZE 1024
#define SEGMENT_SIZE TARGET_PAGE_SIZE
#define DEFAULT_ARCH bfd_arch_vax
#define DEFAULT_MID M_VAX
#define MY(OP) CAT(vaxnetbsd_,OP)
/* This needs to start with a.out so GDB knows it is an a.out variant. */
#define TARGETNAME "a.out-vax-netbsd"
#include "netbsd.h"