i386bsd.c revision 89857
191094Sdes/* BFD back-end for i386 a.out binaries under BSD. 292289Sdes Copyright 1990, 1991, 1992, 1993, 1994, 2001 391094Sdes Free Software Foundation, Inc. 491094Sdes 591094SdesThis file is part of BFD, the Binary File Descriptor library. 699158Sdes 799158SdesThis program is free software; you can redistribute it and/or modify 899158Sdesit under the terms of the GNU General Public License as published by 991094Sdesthe Free Software Foundation; either version 2 of the License, or 1091094Sdes(at your option) any later version. 1191094Sdes 1291094SdesThis program is distributed in the hope that it will be useful, 1391094Sdesbut WITHOUT ANY WARRANTY; without even the implied warranty of 1491094SdesMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1591094SdesGNU General Public License for more details. 1691094Sdes 1791094SdesYou should have received a copy of the GNU General Public License 1891094Sdesalong with this program; if not, write to the Free Software 1991094SdesFoundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 2091094Sdes 2191094Sdes/* This data should be correct for the format used under all the various 2291094Sdes BSD ports for 386 machines. */ 2391094Sdes 2491094Sdes#define BYTES_IN_WORD 4 2591094Sdes 2691094Sdes/* ZMAGIC files never have the header in the text. */ 2791094Sdes#define N_HEADER_IN_TEXT(x) 0 2891094Sdes 2991094Sdes/* ZMAGIC files start at address 0. This does not apply to QMAGIC. */ 3091094Sdes#define TEXT_START_ADDR 0 3191094Sdes#define N_SHARED_LIB(x) 0 3291094Sdes 3391094Sdes#define TARGET_PAGE_SIZE 4096 3499160Sdes#define SEGMENT_SIZE TARGET_PAGE_SIZE 3591094Sdes 3691094Sdes#define DEFAULT_ARCH bfd_arch_i386 3791094Sdes#define MACHTYPE_OK(mtype) ((mtype) == M_386 || (mtype) == M_UNKNOWN) 3891094Sdes 3991094Sdes/* Do not "beautify" the CONCAT* macro args. Traditional C will not 4094670Sdes remove whitespace added here, and thus will fail to concatenate 4194670Sdes the tokens. */ 4291094Sdes#define MY(OP) CONCAT2 (i386bsd_,OP) 4391094Sdes#define TARGETNAME "a.out-i386-bsd" 4491094Sdes 4591094Sdes#include "bfd.h" 4691094Sdes#include "sysdep.h" 4791094Sdes#include "libbfd.h" 4891094Sdes#include "libaout.h" 4991094Sdes 5091094Sdes#include "aout-target.h" 5191094Sdes