160484Sobrien/* BFD back-end for NetBSD/sparc a.out-ish binaries.
2130561Sobrien   Copyright 1990, 1991, 1992, 1994, 1995, 1997, 1998, 2000, 2001, 2003
378828Sobrien   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 TARGET_IS_BIG_ENDIAN_P
2260484Sobrien
2360484Sobrien/* SPARC chips use either 4K or 8K pages, but object files always
2477298Sobrien   assume 8K page alignment so they will work on either one.  */
2560484Sobrien#define TARGET_PAGE_SIZE 0x2000
2660484Sobrien
2760484Sobrien#define DEFAULT_ARCH	bfd_arch_sparc
2860484Sobrien#define DEFAULT_MID 	M_SPARC_NETBSD
2960484Sobrien
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 (sparcnetbsd_,OP)
3489857Sobrien
3560484Sobrien/* This needs to start with a.out so GDB knows it is an a.out variant.  */
3660484Sobrien#define TARGETNAME "a.out-sparc-netbsd"
3760484Sobrien
3860484Sobrien#include "netbsd.h"
39