Merge in changes from gdb-3.95 release into mainstream of BFD development.
[deliverable/binutils-gdb.git] / bfd / targets.c
1 /* Copyright (C) 1990, 1991 Free Software Foundation, Inc.
2
3 This file is part of BFD, the Binary File Diddler.
4
5 BFD is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 1, or (at your option)
8 any later version.
9
10 BFD is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with BFD; see the file COPYING. If not, write to
17 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
18
19 /* $Id$ */
20
21
22 /* This -*- C -*- source file will someday be machine-generated */
23
24 /*** Defines the target vector through which operations dispatch */
25 #include <sysdep.h>
26 #include "bfd.h"
27 #include "libbfd.h"
28
29 extern bfd_target ecoff_little_vec;
30 extern bfd_target ecoff_big_vec;
31 extern bfd_target sunos_big_vec;
32 extern bfd_target demo_64_vec;
33 extern bfd_target srec_vec;
34 extern bfd_target b_out_vec_little_host;
35 extern bfd_target b_out_vec_big_host;
36 extern bfd_target icoff_little_vec;
37 extern bfd_target icoff_big_vec;
38 extern bfd_target ieee_vec;
39 extern bfd_target oasys_vec;
40 extern bfd_target m88k_bcs_vec;
41 extern bfd_target m68kcoff_vec;
42 extern bfd_target i386coff_vec;
43
44 #ifdef DEFAULT_VECTOR
45 extern bfd_target DEFAULT_VECTOR;
46 #endif
47
48 #ifdef GNU960
49 #define ICOFF_LITTLE_VEC icoff_little_vec
50 #define ICOFF_BIG_VEC icoff_big_vec
51 #define B_OUT_VEC_LITTLE_HOST b_out_vec_little_host
52 #define B_OUT_VEC_BIG_HOST b_out_vec_big_host
53 #endif /* GNU960 */
54
55 #ifndef RESTRICTED
56 #define ECOFF_LITTLE_VEC ecoff_little_vec
57 #define ECOFF_BIG_VEC ecoff_big_vec
58 #define ICOFF_LITTLE_VEC icoff_little_vec
59 #define ICOFF_BIG_VEC icoff_big_vec
60 #define XB_OUT_VEC_LITTLE_HOST b_out_vec_little_host
61 #define XB_OUT_VEC_BIG_HOST b_out_vec_big_host
62 #define SUNOS_VEC_BIG_HOST sunos_big_vec
63 #define DEMO_64_VEC demo_64_vec
64 #define OASYS_VEC oasys_vec
65 #define IEEE_VEC ieee_vec
66 #define M88K_BCS_VEC m88k_bcs_vec
67 #define SREC_VEC srec_vec
68 #define M68KCOFF_VEC m68kcoff_vec
69 #define I386COFF_VEC i386coff_vec
70 #endif
71 bfd_target *target_vector[] = {
72
73 #ifdef DEFAULT_VECTOR
74 &DEFAULT_VECTOR,
75 #endif /* DEFAULT_VECTOR */
76
77 #ifdef I386COFF_VEC
78 &I386COFF_VEC,
79 #endif /* I386COFF_VEC */
80
81 #ifdef ECOFF_LITTLE_VEC
82 &ECOFF_LITTLE_VEC,
83 #endif
84
85 #ifdef ECOFF_BIG_VEC
86 &ECOFF_BIG_VEC,
87 #endif
88 #ifdef IEEE_VEC
89 &IEEE_VEC,
90 #endif /* IEEE_VEC */
91
92 #ifdef OASYS_VEC
93 &OASYS_VEC,
94 #endif /* OASYS_VEC */
95
96 #ifdef SUNOS_VEC_BIG_HOST
97 &SUNOS_VEC_BIG_HOST,
98 #endif /* SUNOS_BIG_VEC */
99
100
101 #ifdef HOST_64_BIT
102 #ifdef DEMO_64_VEC
103 &DEMO_64_VEC,
104 #endif
105 #endif
106
107 #ifdef M88K_BCS_VEC
108 &M88K_BCS_VEC,
109 #endif /* M88K_BCS_VEC */
110
111 #ifdef SREC_VEC
112 &SREC_VEC,
113 #endif /* SREC_VEC */
114
115 #ifdef ICOFF_LITTLE_VEC
116 &ICOFF_LITTLE_VEC,
117 #endif /* ICOFF_LITTLE_VEC */
118
119 #ifdef ICOFF_BIG_VEC
120 &ICOFF_BIG_VEC,
121 #endif /* ICOFF_BIG_VEC */
122
123 #ifdef B_OUT_VEC_LITTLE_HOST
124 &B_OUT_VEC_LITTLE_HOST,
125 #endif /* B_OUT_VEC_LITTLE_HOST */
126
127 #ifdef B_OUT_VEC_BIG_HOST
128 &B_OUT_VEC_BIG_HOST,
129 #endif /* B_OUT_VEC_BIG_HOST */
130
131 #ifdef M68KCOFF_VEC
132 &M68KCOFF_VEC,
133 #endif /* M68KCOFF_VEC */
134
135 NULL, /* end of list marker */
136 };
137
138
139 /* default_vector[0] contains either the address of the default vector,
140 if there is one, or zero if there isn't. */
141
142 bfd_target *default_vector[] = {
143 #ifdef DEFAULT_VECTOR
144 &DEFAULT_VECTOR,
145 #endif
146 0,
147 };
This page took 0.036079 seconds and 5 git commands to generate.