Browse Source
* coff-i860.c: New file, based on coff-i386.c. * cpu-i860.c: New file, based on cpu-i386.c. * hosts/i860mach3.h: New file, based on hosts/i386mach3.h. * config.bfd (i860-*-mach3*, i860-*-osf1*, i860-*-coff*): New targets, using i860coff_vec. * configure.in (i860-*-mach3*, i860-*-osf1*): New hosts, using trad-core.o and hosts/i860mach3.h. (i860coff_vec): Use coff-i860.o and cofflink.o. * configure: Rebuild. * Makefile.in: Rebuild dependencies. (ALL_MACHINES): Add cpu-i860.o. (BFD32_BACKENDS): Add coff-i860.o. (CFILES): Add cpu-i860.c and coff-i860.c. * targets.c (i860coff_vec): Declare. (bfd_target_vector): Add &i860coff_vec. * archures.c (bfd_i860_arch): Declare. (bfd_archures_list): Add &bfd_i860_arch. * coffcode.h (coff_set_arch_mach_hook): Handle I860 magic number. (coff_set_flags): Handle bfd_arch_i860. (coff_write_object_contents): Handle I860 a.out magic number.gdb-4_18-branch
9 changed files with 136 additions and 3 deletions
@ -0,0 +1,40 @@ |
|||
/* BFD support for the Intel 860 architecture.
|
|||
Copyright 1992, 1995 Free Software Foundation, Inc. |
|||
Created mostly by substituting "860" for "386" in cpu-i386.c |
|||
Harry Dolan <dolan@ssd.intel.com>, October 1995 |
|||
|
|||
This file is part of BFD, the Binary File Descriptor library. |
|||
|
|||
This program is free software; you can redistribute it and/or modify |
|||
it under the terms of the GNU General Public License as published by |
|||
the Free Software Foundation; either version 2 of the License, or |
|||
(at your option) any later version. |
|||
|
|||
This program is distributed in the hope that it will be useful, |
|||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
GNU General Public License for more details. |
|||
|
|||
You should have received a copy of the GNU General Public License |
|||
along with this program; if not, write to the Free Software |
|||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ |
|||
|
|||
#include "bfd.h" |
|||
#include "sysdep.h" |
|||
#include "libbfd.h" |
|||
|
|||
const bfd_arch_info_type bfd_i860_arch = |
|||
{ |
|||
32, /* 32 bits in a word */ |
|||
32, /* 32 bits in an address */ |
|||
8, /* 8 bits in a byte */ |
|||
bfd_arch_i860, |
|||
0, /* only 1 machine */ |
|||
"i860", |
|||
"i860", |
|||
3, |
|||
true, /* the one and only */ |
|||
bfd_default_compatible, |
|||
bfd_default_scan , |
|||
0, |
|||
}; |
|||
@ -0,0 +1,27 @@ |
|||
/* This file was hacked from i386mach3.h [dolan@ssd.intel.com] */ |
|||
|
|||
#include <machine/vmparam.h> |
|||
#include <sys/param.h> |
|||
|
|||
/* This is an ugly way to hack around the incorrect
|
|||
* definition of UPAGES in i386/machparam.h. |
|||
* |
|||
* The definition should specify the size reserved |
|||
* for "struct user" in core files in PAGES, |
|||
* but instead it gives it in 512-byte core-clicks |
|||
* for i386 and i860. UPAGES is used only in trad-core.c. |
|||
*/ |
|||
#if UPAGES == 16 |
|||
#undef UPAGES |
|||
#define UPAGES 2 |
|||
#endif |
|||
|
|||
#if UPAGES != 2 |
|||
FIXME!! UPAGES is neither 2 nor 16 |
|||
#endif |
|||
|
|||
#define HOST_PAGE_SIZE 1 |
|||
#define HOST_SEGMENT_SIZE NBPG |
|||
#define HOST_MACHINE_ARCH bfd_arch_i860 |
|||
#define HOST_TEXT_START_ADDR USRTEXT |
|||
#define HOST_STACK_END_ADDR USRSTACK |
|||
Loading…
Reference in new issue