1c88b1d6cSniklas /* BFD back-end for FreeBSD/386 a.out-ish binaries. 2*c074d1c9Sdrahn Copyright 1990, 1991, 1992, 1996, 2001 Free Software Foundation, Inc. 3c88b1d6cSniklas 4c88b1d6cSniklas This file is part of BFD, the Binary File Descriptor library. 5c88b1d6cSniklas 6c88b1d6cSniklas This program is free software; you can redistribute it and/or modify 7c88b1d6cSniklas it under the terms of the GNU General Public License as published by 8c88b1d6cSniklas the Free Software Foundation; either version 2 of the License, or 9c88b1d6cSniklas (at your option) any later version. 10c88b1d6cSniklas 11c88b1d6cSniklas This program is distributed in the hope that it will be useful, 12c88b1d6cSniklas but WITHOUT ANY WARRANTY; without even the implied warranty of 13c88b1d6cSniklas MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14c88b1d6cSniklas GNU General Public License for more details. 15c88b1d6cSniklas 16c88b1d6cSniklas You should have received a copy of the GNU General Public License 17c88b1d6cSniklas along with this program; if not, write to the Free Software 18c88b1d6cSniklas Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 19c88b1d6cSniklas 20c88b1d6cSniklas #define BYTES_IN_WORD 4 21c88b1d6cSniklas #undef TARGET_IS_BIG_ENDIAN_P 22c88b1d6cSniklas 23c88b1d6cSniklas #define TARGET_PAGE_SIZE 4096 24c88b1d6cSniklas #define SEGMENT_SIZE TARGET_PAGE_SIZE 25c88b1d6cSniklas 26c88b1d6cSniklas #define DEFAULT_ARCH bfd_arch_i386 27c88b1d6cSniklas #define MACHTYPE_OK(mtype) ((mtype) == M_386_NETBSD || (mtype) == M_UNKNOWN) 28c88b1d6cSniklas 29*c074d1c9Sdrahn /* Do not "beautify" the CONCAT* macro args. Traditional C will not 30*c074d1c9Sdrahn remove whitespace added here, and thus will fail to concatenate 31*c074d1c9Sdrahn the tokens. */ 32*c074d1c9Sdrahn #define MY(OP) CONCAT2 (i386freebsd_,OP) 33*c074d1c9Sdrahn 34c88b1d6cSniklas /* This needs to start with a.out so GDB knows it is an a.out variant. */ 35c88b1d6cSniklas #define TARGETNAME "a.out-i386-freebsd" 36c88b1d6cSniklas 37c88b1d6cSniklas #include "freebsd.h" 38