i386netbsd.c revision 33965
133965Sjdp/* BFD back-end for NetBSD/386 a.out-ish binaries.
233965Sjdp   Copyright (C) 1990, 1991, 1992 Free Software Foundation, Inc.
333965Sjdp
433965SjdpThis file is part of BFD, the Binary File Descriptor library.
533965Sjdp
633965SjdpThis program is free software; you can redistribute it and/or modify
733965Sjdpit under the terms of the GNU General Public License as published by
833965Sjdpthe Free Software Foundation; either version 2 of the License, or
933965Sjdp(at your option) any later version.
1033965Sjdp
1133965SjdpThis program is distributed in the hope that it will be useful,
1233965Sjdpbut WITHOUT ANY WARRANTY; without even the implied warranty of
1333965SjdpMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1433965SjdpGNU General Public License for more details.
1533965Sjdp
1633965SjdpYou should have received a copy of the GNU General Public License
1733965Sjdpalong with this program; if not, write to the Free Software
1833965SjdpFoundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
1933965Sjdp
2033965Sjdp#define	BYTES_IN_WORD	4
2133965Sjdp#undef TARGET_IS_BIG_ENDIAN_P
2233965Sjdp
2333965Sjdp#define	TARGET_PAGE_SIZE	4096
2433965Sjdp#define	SEGMENT_SIZE	TARGET_PAGE_SIZE
2533965Sjdp
2633965Sjdp#define	DEFAULT_ARCH	bfd_arch_i386
2733965Sjdp#define MACHTYPE_OK(mtype) ((mtype) == M_386_NETBSD || (mtype) == M_UNKNOWN)
2833965Sjdp
2933965Sjdp#define MY(OP) CAT(i386netbsd_,OP)
3033965Sjdp/* This needs to start with a.out so GDB knows it is an a.out variant.  */
3133965Sjdp#define TARGETNAME "a.out-i386-netbsd"
3233965Sjdp
3333965Sjdp#include "netbsd.h"
34