Blame bfd/i386bsd.c

Packit Service 706eca
/* BFD back-end for i386 a.out binaries under BSD.
Packit Service 706eca
   Copyright (C) 1990-2018 Free Software Foundation, Inc.
Packit Service 706eca
Packit Service 706eca
   This file is part of BFD, the Binary File Descriptor library.
Packit Service 706eca
Packit Service 706eca
   This program is free software; you can redistribute it and/or modify
Packit Service 706eca
   it under the terms of the GNU General Public License as published by
Packit Service 706eca
   the Free Software Foundation; either version 3 of the License, or
Packit Service 706eca
   (at your option) any later version.
Packit Service 706eca
Packit Service 706eca
   This program is distributed in the hope that it will be useful,
Packit Service 706eca
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 706eca
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service 706eca
   GNU General Public License for more details.
Packit Service 706eca
Packit Service 706eca
   You should have received a copy of the GNU General Public License
Packit Service 706eca
   along with this program; if not, write to the Free Software
Packit Service 706eca
   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
Packit Service 706eca
   MA 02110-1301, USA.  */
Packit Service 706eca
Packit Service 706eca
Packit Service 706eca
/* This data should be correct for the format used under all the various
Packit Service 706eca
   BSD ports for 386 machines.  */
Packit Service 706eca
Packit Service 706eca
#define	BYTES_IN_WORD	4
Packit Service 706eca
Packit Service 706eca
/* ZMAGIC files never have the header in the text.  */
Packit Service 706eca
#define	N_HEADER_IN_TEXT(x)	0
Packit Service 706eca
Packit Service 706eca
/* ZMAGIC files start at address 0.  This does not apply to QMAGIC.  */
Packit Service 706eca
#define TEXT_START_ADDR 0
Packit Service 706eca
Packit Service 706eca
#define	TARGET_PAGE_SIZE	4096
Packit Service 706eca
#define	SEGMENT_SIZE	TARGET_PAGE_SIZE
Packit Service 706eca
Packit Service 706eca
#define	DEFAULT_ARCH	bfd_arch_i386
Packit Service 706eca
#define MACHTYPE_OK(mtype) ((mtype) == M_386 || (mtype) == M_UNKNOWN)
Packit Service 706eca
Packit Service 706eca
/* Do not "beautify" the CONCAT* macro args.  Traditional C will not
Packit Service 706eca
   remove whitespace added here, and thus will fail to concatenate
Packit Service 706eca
   the tokens.  */
Packit Service 706eca
#define MY(OP) CONCAT2 (i386_aout_bsd_,OP)
Packit Service 706eca
#define TARGETNAME "a.out-i386-bsd"
Packit Service 706eca
Packit Service 706eca
#include "sysdep.h"
Packit Service 706eca
#include "bfd.h"
Packit Service 706eca
#include "libbfd.h"
Packit Service 706eca
#include "libaout.h"
Packit Service 706eca
Packit Service 706eca
#include "aout-target.h"