i386freebsd.c revision 218822
1174993Srafan/* BFD back-end for FreeBSD/386 a.out-ish binaries. 2184989Srafan Copyright 1990, 1991, 1992, 1996, 2001 Free Software Foundation, Inc. 3174993Srafan 4174993SrafanThis file is part of BFD, the Binary File Descriptor library. 5174993Srafan 6174993SrafanThis program is free software; you can redistribute it and/or modify 7174993Srafanit under the terms of the GNU General Public License as published by 8174993Srafanthe Free Software Foundation; either version 2 of the License, or 9174993Srafan(at your option) any later version. 10174993Srafan 11174993SrafanThis program is distributed in the hope that it will be useful, 12174993Srafanbut WITHOUT ANY WARRANTY; without even the implied warranty of 13174993SrafanMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14174993SrafanGNU General Public License for more details. 15174993Srafan 16174993SrafanYou should have received a copy of the GNU General Public License 17174993Srafanalong with this program; if not, write to the Free Software 18174993SrafanFoundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ 19174993Srafan 20174993Srafan#define BYTES_IN_WORD 4 21174993Srafan#undef TARGET_IS_BIG_ENDIAN_P 22174993Srafan 23174993Srafan#define TARGET_PAGE_SIZE 4096 24174993Srafan#define SEGMENT_SIZE TARGET_PAGE_SIZE 25174993Srafan 26174993Srafan#define DEFAULT_ARCH bfd_arch_i386 27174993Srafan#define MACHTYPE_OK(mtype) ((mtype) == M_386_NETBSD || (mtype) == M_UNKNOWN) 28174993Srafan 29174993Srafan/* Do not "beautify" the CONCAT* macro args. Traditional C will not 30174993Srafan remove whitespace added here, and thus will fail to concatenate 31174993Srafan the tokens. */ 32174993Srafan#define MY(OP) CONCAT2 (i386freebsd_,OP) 33174993Srafan 34174993Srafan/* This needs to start with a.out so GDB knows it is an a.out variant. */ 35174993Srafan#define TARGETNAME "a.out-i386-freebsd" 36174993Srafan 37174993Srafan#include "freebsd.h" 38174993Srafan