xref: /openbsd/gnu/usr.bin/binutils/bfd/m68knetbsd.c (revision c074d1c9)
12159047fSniklas /* BFD back-end for NetBSD/m68k a.out-ish binaries.
2*c074d1c9Sdrahn    Copyright 1990, 1991, 1992, 1994, 1995, 1997, 1998, 2000, 2001, 2003
3b55d4692Sfgsch    Free Software Foundation, Inc.
42159047fSniklas 
52159047fSniklas This file is part of BFD, the Binary File Descriptor library.
62159047fSniklas 
72159047fSniklas This program is free software; you can redistribute it and/or modify
82159047fSniklas it under the terms of the GNU General Public License as published by
92159047fSniklas the Free Software Foundation; either version 2 of the License, or
102159047fSniklas (at your option) any later version.
112159047fSniklas 
122159047fSniklas This program is distributed in the hope that it will be useful,
132159047fSniklas but WITHOUT ANY WARRANTY; without even the implied warranty of
142159047fSniklas MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
152159047fSniklas GNU General Public License for more details.
162159047fSniklas 
172159047fSniklas You should have received a copy of the GNU General Public License
182159047fSniklas along with this program; if not, write to the Free Software
192159047fSniklas Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
202159047fSniklas 
212159047fSniklas #define TARGET_IS_BIG_ENDIAN_P
222159047fSniklas 
23f7cc78ecSespie /* Our m68k ports use either 4K or 8K pages, but object files always
24f7cc78ecSespie    assume 8K page alignment so they will work on all m68k machines.  */
25fddef416Sniklas #define TARGET_PAGE_SIZE	0x2000
262159047fSniklas 
272159047fSniklas #define DEFAULT_ARCH	bfd_arch_m68k
28f7cc78ecSespie #define DEFAULT_MID 	M_68K_NETBSD
292159047fSniklas 
30*c074d1c9Sdrahn /* Do not "beautify" the CONCAT* macro args.  Traditional C will not
31*c074d1c9Sdrahn    remove whitespace added here, and thus will fail to concatenate
32*c074d1c9Sdrahn    the tokens.  */
33*c074d1c9Sdrahn #define MY(OP) CONCAT2 (m68knetbsd_,OP)
34*c074d1c9Sdrahn 
352159047fSniklas /* This needs to start with a.out so GDB knows it is an a.out variant.  */
362159047fSniklas #define TARGETNAME "a.out-m68k-netbsd"
372159047fSniklas 
382159047fSniklas #include "netbsd.h"
39