sparcnetbsd.c revision 89857
151694Sroger/* BFD back-end for NetBSD/sparc a.out-ish binaries. 251694Sroger Copyright 1990, 1991, 1992, 1994, 1995, 1997, 1998, 2000, 2001 351694Sroger Free Software Foundation, Inc. 451694Sroger 551694SrogerThis file is part of BFD, the Binary File Descriptor library. 651694Sroger 751694SrogerThis program is free software; you can redistribute it and/or modify 851694Srogerit under the terms of the GNU General Public License as published by 9298955Spfgthe Free Software Foundation; either version 2 of the License, or 1051694Sroger(at your option) any later version. 1151694Sroger 1251694SrogerThis program is distributed in the hope that it will be useful, 13139749Simpbut WITHOUT ANY WARRANTY; without even the implied warranty of 1451694SrogerMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1551694SrogerGNU General Public License for more details. 1651694Sroger 1751694SrogerYou should have received a copy of the GNU General Public License 1851694Srogeralong with this program; if not, write to the Free Software 1951694SrogerFoundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 2051694Sroger 2151694Sroger#define BYTES_IN_WORD 4 2251694Sroger#define TARGET_IS_BIG_ENDIAN_P 2351694Sroger 2451694Sroger/* SPARC chips use either 4K or 8K pages, but object files always 2551694Sroger assume 8K page alignment so they will work on either one. */ 2651694Sroger#define TARGET_PAGE_SIZE 0x2000 2751694Sroger 2851694Sroger#define DEFAULT_ARCH bfd_arch_sparc 2951694Sroger#define DEFAULT_MID M_SPARC_NETBSD 3051694Sroger 3151694Sroger/* Do not "beautify" the CONCAT* macro args. Traditional C will not 3251694Sroger remove whitespace added here, and thus will fail to concatenate 3351694Sroger the tokens. */ 3451694Sroger#define MY(OP) CONCAT2 (sparcnetbsd_,OP) 3551694Sroger 3651694Sroger/* This needs to start with a.out so GDB knows it is an a.out variant. */ 3751694Sroger#define TARGETNAME "a.out-sparc-netbsd" 3851694Sroger 3951694Sroger#include "netbsd.h" 4051694Sroger