160484Sobrien/* BFD back-end for NetBSD/ARM a.out-ish binaries.
2218822Sdim   Copyright 1999, 2000, 2001, 2002, 2005
3218822Sdim   Free Software Foundation, Inc.
460484Sobrien
560484SobrienThis file is part of BFD, the Binary File Descriptor library.
660484Sobrien
760484SobrienThis program is free software; you can redistribute it and/or modify
860484Sobrienit under the terms of the GNU General Public License as published by
960484Sobrienthe Free Software Foundation; either version 2 of the License, or
1060484Sobrien(at your option) any later version.
1160484Sobrien
1260484SobrienThis program is distributed in the hope that it will be useful,
1360484Sobrienbut WITHOUT ANY WARRANTY; without even the implied warranty of
1460484SobrienMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1560484SobrienGNU General Public License for more details.
1660484Sobrien
1760484SobrienYou should have received a copy of the GNU General Public License
1860484Sobrienalong with this program; if not, write to the Free Software
19218822SdimFoundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
2060484Sobrien
2160484Sobrien#define	BYTES_IN_WORD		4
2260484Sobrien#undef TARGET_IS_BIG_ENDIAN_P
2360484Sobrien
2460484Sobrien#define	TARGET_PAGE_SIZE	4096
2560484Sobrien#define	SEGMENT_SIZE		TARGET_PAGE_SIZE
2660484Sobrien
2760484Sobrien#define	DEFAULT_ARCH		bfd_arch_arm
2860484Sobrien#define	DEFAULT_MID 		M_ARM6_NETBSD
2960484Sobrien/*#define MACHTYPE_OK(mtype) ((mtype) == M_ARM6_NETBSD)*/
3060484Sobrien
3189857Sobrien/* Do not "beautify" the CONCAT* macro args.  Traditional C will not
3289857Sobrien   remove whitespace added here, and thus will fail to concatenate
3389857Sobrien   the tokens.  */
3489857Sobrien#define MY(OP) 			CONCAT2 (armnetbsd_, OP)
3589857Sobrien
3660484Sobrien/* This needs to start with a.out so GDB knows it is an a.out variant.  */
3760484Sobrien#define TARGETNAME 		"a.out-arm-netbsd"
3860484Sobrien
3960484Sobrien#include "netbsd.h"
40