133965Sjdp/* BFD back-end for FreeBSD/386 a.out-ish binaries.
289857Sobrien   Copyright 1990, 1991, 1992, 1996, 2001 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
18218822SdimFoundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, 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
2989857Sobrien/* Do not "beautify" the CONCAT* macro args.  Traditional C will not
3089857Sobrien   remove whitespace added here, and thus will fail to concatenate
3189857Sobrien   the tokens.  */
3289857Sobrien#define MY(OP) CONCAT2 (i386freebsd_,OP)
3389857Sobrien
3433965Sjdp/* This needs to start with a.out so GDB knows it is an a.out variant.  */
3533965Sjdp#define TARGETNAME "a.out-i386-freebsd"
3633965Sjdp
3733965Sjdp#include "freebsd.h"
38