xref: /netbsd-src/external/gpl3/binutils.old/dist/bfd/i386netbsd.c (revision 87973b745f089f044053922e1df00a76adc8ee1f)
1*87973b74Schristos /* BFD back-end for NetBSD/386 a.out-ish binaries.
2*87973b74Schristos    Copyright (C) 1990-2016 Free Software Foundation, Inc.
3*87973b74Schristos 
4*87973b74Schristos    This file is part of BFD, the Binary File Descriptor library.
5*87973b74Schristos 
6*87973b74Schristos    This program is free software; you can redistribute it and/or modify
7*87973b74Schristos    it under the terms of the GNU General Public License as published by
8*87973b74Schristos    the Free Software Foundation; either version 3 of the License, or
9*87973b74Schristos    (at your option) any later version.
10*87973b74Schristos 
11*87973b74Schristos    This program is distributed in the hope that it will be useful,
12*87973b74Schristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
13*87973b74Schristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14*87973b74Schristos    GNU General Public License for more details.
15*87973b74Schristos 
16*87973b74Schristos    You should have received a copy of the GNU General Public License
17*87973b74Schristos    along with this program; if not, write to the Free Software
18*87973b74Schristos    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
19*87973b74Schristos    MA 02110-1301, USA. */
20*87973b74Schristos 
21*87973b74Schristos #define	BYTES_IN_WORD	4
22*87973b74Schristos #undef TARGET_IS_BIG_ENDIAN_P
23*87973b74Schristos 
24*87973b74Schristos #define	TARGET_PAGE_SIZE	4096
25*87973b74Schristos #define	SEGMENT_SIZE	TARGET_PAGE_SIZE
26*87973b74Schristos 
27*87973b74Schristos #define	DEFAULT_ARCH	bfd_arch_i386
28*87973b74Schristos #define	DEFAULT_MID 	M_386_NETBSD
29*87973b74Schristos 
30*87973b74Schristos /* Do not "beautify" the CONCAT* macro args.  Traditional C will not
31*87973b74Schristos    remove whitespace added here, and thus will fail to concatenate
32*87973b74Schristos    the tokens.  */
33*87973b74Schristos #define MY(OP) CONCAT2 (i386_aout_nbsd_,OP)
34*87973b74Schristos 
35*87973b74Schristos /* This needs to start with a.out so GDB knows it is an a.out variant.  */
36*87973b74Schristos #define TARGETNAME "a.out-i386-netbsd"
37*87973b74Schristos 
38*87973b74Schristos #include "netbsd.h"
39