133965Sjdp/* BFD back-end for NetBSD/386 a.out-ish binaries.
289857Sobrien   Copyright 1990, 1991, 1992, 1994, 1995, 1996, 1998, 2001
378828Sobrien   Free Software Foundation, Inc.
433965Sjdp
533965SjdpThis file is part of BFD, the Binary File Descriptor library.
633965Sjdp
733965SjdpThis program is free software; you can redistribute it and/or modify
833965Sjdpit under the terms of the GNU General Public License as published by
933965Sjdpthe Free Software Foundation; either version 2 of the License, or
1033965Sjdp(at your option) any later version.
1133965Sjdp
1233965SjdpThis program is distributed in the hope that it will be useful,
1333965Sjdpbut WITHOUT ANY WARRANTY; without even the implied warranty of
1433965SjdpMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1533965SjdpGNU General Public License for more details.
1633965Sjdp
1733965SjdpYou should have received a copy of the GNU General Public License
1833965Sjdpalong with this program; if not, write to the Free Software
19218822SdimFoundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
2033965Sjdp
2133965Sjdp#define	BYTES_IN_WORD	4
2233965Sjdp#undef TARGET_IS_BIG_ENDIAN_P
2333965Sjdp
2433965Sjdp#define	TARGET_PAGE_SIZE	4096
2533965Sjdp#define	SEGMENT_SIZE	TARGET_PAGE_SIZE
2633965Sjdp
2733965Sjdp#define	DEFAULT_ARCH	bfd_arch_i386
2838889Sjdp#define	DEFAULT_MID 	M_386_NETBSD
2933965Sjdp
3089857Sobrien/* Do not "beautify" the CONCAT* macro args.  Traditional C will not
3189857Sobrien   remove whitespace added here, and thus will fail to concatenate
3289857Sobrien   the tokens.  */
3389857Sobrien#define MY(OP) CONCAT2 (i386netbsd_,OP)
3489857Sobrien
3533965Sjdp/* This needs to start with a.out so GDB knows it is an a.out variant.  */
3633965Sjdp#define TARGETNAME "a.out-i386-netbsd"
3733965Sjdp
3833965Sjdp#include "netbsd.h"
39