sparcnetbsd.c revision 130561
1101100Ssos/* BFD back-end for NetBSD/sparc a.out-ish binaries.
2230132Suqs   Copyright 1990, 1991, 1992, 1994, 1995, 1997, 1998, 2000, 2001, 2003
3101100Ssos   Free Software Foundation, Inc.
4101100Ssos
5101100SsosThis file is part of BFD, the Binary File Descriptor library.
6101100Ssos
7101100SsosThis program is free software; you can redistribute it and/or modify
8101100Ssosit under the terms of the GNU General Public License as published by
9101100Ssosthe Free Software Foundation; either version 2 of the License, or
10101100Ssos(at your option) any later version.
11101100Ssos
12101100SsosThis program is distributed in the hope that it will be useful,
13101100Ssosbut WITHOUT ANY WARRANTY; without even the implied warranty of
14101100SsosMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15101100SsosGNU General Public License for more details.
16101100Ssos
17101100SsosYou should have received a copy of the GNU General Public License
18101100Ssosalong with this program; if not, write to the Free Software
19101100SsosFoundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
20101100Ssos
21101100Ssos#define TARGET_IS_BIG_ENDIAN_P
22101100Ssos
23101100Ssos/* SPARC chips use either 4K or 8K pages, but object files always
24101100Ssos   assume 8K page alignment so they will work on either one.  */
25101100Ssos#define TARGET_PAGE_SIZE 0x2000
26101100Ssos
27101100Ssos#define DEFAULT_ARCH	bfd_arch_sparc
28101100Ssos#define DEFAULT_MID 	M_SPARC_NETBSD
29119418Sobrien
30119418Sobrien/* Do not "beautify" the CONCAT* macro args.  Traditional C will not
31119418Sobrien   remove whitespace added here, and thus will fail to concatenate
32101100Ssos   the tokens.  */
33101100Ssos#define MY(OP) CONCAT2 (sparcnetbsd_,OP)
34101100Ssos
35101100Ssos/* This needs to start with a.out so GDB knows it is an a.out variant.  */
36101100Ssos#define TARGETNAME "a.out-sparc-netbsd"
37101100Ssos
38101100Ssos#include "netbsd.h"
39114154Ssos