1991-03-21 21:11:25 +00:00
|
|
|
/* Copyright (C) 1990, 1991 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
This file is part of BFD, the Binary File Diddler.
|
|
|
|
|
|
|
|
BFD 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 1, or (at your option)
|
|
|
|
any later version.
|
|
|
|
|
|
|
|
BFD 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 BFD; see the file COPYING. If not, write to
|
|
|
|
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
|
|
|
|
|
|
|
/* This -*- C -*- source file will someday be machine-generated */
|
|
|
|
|
|
|
|
/*** Defines the target vector through which operations dispatch */
|
1991-05-21 00:14:16 +00:00
|
|
|
#include <sysdep.h>
|
1991-03-21 21:11:25 +00:00
|
|
|
#include "bfd.h"
|
|
|
|
#include "libbfd.h"
|
|
|
|
|
1991-05-02 23:10:23 +00:00
|
|
|
extern bfd_target ecoff_little_vec;
|
|
|
|
extern bfd_target ecoff_big_vec;
|
1991-05-11 00:38:47 +00:00
|
|
|
extern bfd_target sunos_big_vec;
|
1991-05-21 00:14:16 +00:00
|
|
|
extern bfd_target demo_64_vec;
|
1991-03-21 21:11:25 +00:00
|
|
|
extern bfd_target srec_vec;
|
|
|
|
extern bfd_target b_out_vec_little_host;
|
|
|
|
extern bfd_target b_out_vec_big_host;
|
|
|
|
extern bfd_target icoff_little_vec;
|
|
|
|
extern bfd_target icoff_big_vec;
|
1991-04-04 02:12:29 +00:00
|
|
|
extern bfd_target ieee_vec;
|
|
|
|
extern bfd_target oasys_vec;
|
|
|
|
extern bfd_target m88k_bcs_vec;
|
1991-05-10 19:38:10 +00:00
|
|
|
extern bfd_target m68kcoff_vec;
|
1991-05-25 01:51:10 +00:00
|
|
|
extern bfd_target i386coff_vec;
|
1991-03-21 21:11:25 +00:00
|
|
|
|
1991-05-29 00:20:02 +00:00
|
|
|
#ifdef DEFAULT_VECTOR
|
|
|
|
extern bfd_target DEFAULT_VECTOR;
|
|
|
|
#endif
|
|
|
|
|
1991-04-18 01:55:45 +00:00
|
|
|
#ifdef GNU960
|
|
|
|
#define ICOFF_LITTLE_VEC icoff_little_vec
|
|
|
|
#define ICOFF_BIG_VEC icoff_big_vec
|
|
|
|
#define B_OUT_VEC_LITTLE_HOST b_out_vec_little_host
|
|
|
|
#define B_OUT_VEC_BIG_HOST b_out_vec_big_host
|
|
|
|
#endif /* GNU960 */
|
1991-04-15 15:25:16 +00:00
|
|
|
|
1991-04-23 16:02:09 +00:00
|
|
|
#ifndef RESTRICTED
|
1991-05-02 23:10:23 +00:00
|
|
|
#define ECOFF_LITTLE_VEC ecoff_little_vec
|
|
|
|
#define ECOFF_BIG_VEC ecoff_big_vec
|
1991-04-23 16:02:09 +00:00
|
|
|
#define ICOFF_LITTLE_VEC icoff_little_vec
|
|
|
|
#define ICOFF_BIG_VEC icoff_big_vec
|
1991-05-21 00:14:16 +00:00
|
|
|
#define XB_OUT_VEC_LITTLE_HOST b_out_vec_little_host
|
|
|
|
#define XB_OUT_VEC_BIG_HOST b_out_vec_big_host
|
1991-05-11 00:38:47 +00:00
|
|
|
#define SUNOS_VEC_BIG_HOST sunos_big_vec
|
1991-05-21 00:14:16 +00:00
|
|
|
#define DEMO_64_VEC demo_64_vec
|
1991-04-23 16:02:09 +00:00
|
|
|
#define OASYS_VEC oasys_vec
|
|
|
|
#define IEEE_VEC ieee_vec
|
|
|
|
#define M88K_BCS_VEC m88k_bcs_vec
|
|
|
|
#define SREC_VEC srec_vec
|
1991-05-10 19:38:10 +00:00
|
|
|
#define M68KCOFF_VEC m68kcoff_vec
|
1991-05-25 01:51:10 +00:00
|
|
|
#define I386COFF_VEC i386coff_vec
|
1991-04-23 16:02:09 +00:00
|
|
|
#endif
|
1991-04-18 01:55:45 +00:00
|
|
|
bfd_target *target_vector[] = {
|
1991-04-15 15:25:16 +00:00
|
|
|
|
1991-04-18 01:55:45 +00:00
|
|
|
#ifdef DEFAULT_VECTOR
|
|
|
|
&DEFAULT_VECTOR,
|
|
|
|
#endif /* DEFAULT_VECTOR */
|
|
|
|
|
1991-05-25 01:51:10 +00:00
|
|
|
#ifdef I386COFF_VEC
|
|
|
|
&I386COFF_VEC,
|
|
|
|
#endif /* I386COFF_VEC */
|
|
|
|
|
1991-05-02 23:10:23 +00:00
|
|
|
#ifdef ECOFF_LITTLE_VEC
|
|
|
|
&ECOFF_LITTLE_VEC,
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef ECOFF_BIG_VEC
|
|
|
|
&ECOFF_BIG_VEC,
|
|
|
|
#endif
|
1991-04-18 01:55:45 +00:00
|
|
|
#ifdef IEEE_VEC
|
|
|
|
&IEEE_VEC,
|
|
|
|
#endif /* IEEE_VEC */
|
|
|
|
|
|
|
|
#ifdef OASYS_VEC
|
|
|
|
&OASYS_VEC,
|
|
|
|
#endif /* OASYS_VEC */
|
|
|
|
|
1991-05-11 00:38:47 +00:00
|
|
|
#ifdef SUNOS_VEC_BIG_HOST
|
|
|
|
&SUNOS_VEC_BIG_HOST,
|
|
|
|
#endif /* SUNOS_BIG_VEC */
|
1991-04-18 01:55:45 +00:00
|
|
|
|
1991-05-21 00:14:16 +00:00
|
|
|
|
|
|
|
#ifdef HOST_64_BIT
|
|
|
|
#ifdef DEMO_64_VEC
|
|
|
|
&DEMO_64_VEC,
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
1991-04-18 01:55:45 +00:00
|
|
|
#ifdef M88K_BCS_VEC
|
|
|
|
&M88K_BCS_VEC,
|
|
|
|
#endif /* M88K_BCS_VEC */
|
|
|
|
|
|
|
|
#ifdef SREC_VEC
|
|
|
|
&SREC_VEC,
|
|
|
|
#endif /* SREC_VEC */
|
|
|
|
|
|
|
|
#ifdef ICOFF_LITTLE_VEC
|
|
|
|
&ICOFF_LITTLE_VEC,
|
|
|
|
#endif /* ICOFF_LITTLE_VEC */
|
|
|
|
|
|
|
|
#ifdef ICOFF_BIG_VEC
|
|
|
|
&ICOFF_BIG_VEC,
|
|
|
|
#endif /* ICOFF_BIG_VEC */
|
|
|
|
|
|
|
|
#ifdef B_OUT_VEC_LITTLE_HOST
|
|
|
|
&B_OUT_VEC_LITTLE_HOST,
|
|
|
|
#endif /* B_OUT_VEC_LITTLE_HOST */
|
1991-04-15 15:25:16 +00:00
|
|
|
|
1991-04-18 01:55:45 +00:00
|
|
|
#ifdef B_OUT_VEC_BIG_HOST
|
|
|
|
&B_OUT_VEC_BIG_HOST,
|
|
|
|
#endif /* B_OUT_VEC_BIG_HOST */
|
1991-04-15 15:25:16 +00:00
|
|
|
|
1991-05-25 01:51:10 +00:00
|
|
|
#ifdef M68KCOFF_VEC
|
|
|
|
&M68KCOFF_VEC,
|
|
|
|
#endif /* M68KCOFF_VEC */
|
|
|
|
|
1991-04-18 01:55:45 +00:00
|
|
|
NULL, /* end of list marker */
|
|
|
|
};
|
1991-05-29 00:20:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* default_vector[0] contains either the address of the default vector,
|
|
|
|
if there is one, or zero if there isn't. */
|
|
|
|
|
|
|
|
bfd_target *default_vector[] = {
|
|
|
|
#ifdef DEFAULT_VECTOR
|
|
|
|
&DEFAULT_VECTOR,
|
|
|
|
#endif
|
|
|
|
0,
|
|
|
|
};
|