1 |
1181 |
sfurman |
@section Architectures
|
2 |
|
|
BFD keeps one atom in a BFD describing the
|
3 |
|
|
architecture of the data attached to the BFD: a pointer to a
|
4 |
|
|
@code{bfd_arch_info_type}.
|
5 |
|
|
|
6 |
|
|
Pointers to structures can be requested independently of a BFD
|
7 |
|
|
so that an architecture's information can be interrogated
|
8 |
|
|
without access to an open BFD.
|
9 |
|
|
|
10 |
|
|
The architecture information is provided by each architecture package.
|
11 |
|
|
The set of default architectures is selected by the macro
|
12 |
|
|
@code{SELECT_ARCHITECTURES}. This is normally set up in the
|
13 |
|
|
@file{config/@var{target}.mt} file of your choice. If the name is not
|
14 |
|
|
defined, then all the architectures supported are included.
|
15 |
|
|
|
16 |
|
|
When BFD starts up, all the architectures are called with an
|
17 |
|
|
initialize method. It is up to the architecture back end to
|
18 |
|
|
insert as many items into the list of architectures as it wants to;
|
19 |
|
|
generally this would be one for each machine and one for the
|
20 |
|
|
default case (an item with a machine field of 0).
|
21 |
|
|
|
22 |
|
|
BFD's idea of an architecture is implemented in @file{archures.c}.
|
23 |
|
|
|
24 |
|
|
@subsection bfd_architecture
|
25 |
|
|
|
26 |
|
|
|
27 |
|
|
@strong{Description}@*
|
28 |
|
|
This enum gives the object file's CPU architecture, in a
|
29 |
|
|
global sense---i.e., what processor family does it belong to?
|
30 |
|
|
Another field indicates which processor within
|
31 |
|
|
the family is in use. The machine gives a number which
|
32 |
|
|
distinguishes different versions of the architecture,
|
33 |
|
|
containing, for example, 2 and 3 for Intel i960 KA and i960 KB,
|
34 |
|
|
and 68020 and 68030 for Motorola 68020 and 68030.
|
35 |
|
|
@example
|
36 |
|
|
enum bfd_architecture
|
37 |
|
|
@{
|
38 |
|
|
bfd_arch_unknown, /* File arch not known. */
|
39 |
|
|
bfd_arch_obscure, /* Arch known, not one of these. */
|
40 |
|
|
bfd_arch_m68k, /* Motorola 68xxx */
|
41 |
|
|
#define bfd_mach_m68000 1
|
42 |
|
|
#define bfd_mach_m68008 2
|
43 |
|
|
#define bfd_mach_m68010 3
|
44 |
|
|
#define bfd_mach_m68020 4
|
45 |
|
|
#define bfd_mach_m68030 5
|
46 |
|
|
#define bfd_mach_m68040 6
|
47 |
|
|
#define bfd_mach_m68060 7
|
48 |
|
|
#define bfd_mach_cpu32 8
|
49 |
|
|
#define bfd_mach_mcf5200 9
|
50 |
|
|
#define bfd_mach_mcf5206e 10
|
51 |
|
|
#define bfd_mach_mcf5307 11
|
52 |
|
|
#define bfd_mach_mcf5407 12
|
53 |
|
|
bfd_arch_vax, /* DEC Vax */
|
54 |
|
|
bfd_arch_i960, /* Intel 960 */
|
55 |
|
|
/* The order of the following is important.
|
56 |
|
|
lower number indicates a machine type that
|
57 |
|
|
only accepts a subset of the instructions
|
58 |
|
|
available to machines with higher numbers.
|
59 |
|
|
The exception is the "ca", which is
|
60 |
|
|
incompatible with all other machines except
|
61 |
|
|
"core". */
|
62 |
|
|
|
63 |
|
|
#define bfd_mach_i960_core 1
|
64 |
|
|
#define bfd_mach_i960_ka_sa 2
|
65 |
|
|
#define bfd_mach_i960_kb_sb 3
|
66 |
|
|
#define bfd_mach_i960_mc 4
|
67 |
|
|
#define bfd_mach_i960_xa 5
|
68 |
|
|
#define bfd_mach_i960_ca 6
|
69 |
|
|
#define bfd_mach_i960_jx 7
|
70 |
|
|
#define bfd_mach_i960_hx 8
|
71 |
|
|
|
72 |
|
|
bfd_arch_or32, /* OpenRISC 32 */
|
73 |
|
|
|
74 |
|
|
bfd_arch_a29k, /* AMD 29000 */
|
75 |
|
|
bfd_arch_sparc, /* SPARC */
|
76 |
|
|
#define bfd_mach_sparc 1
|
77 |
|
|
/* The difference between v8plus and v9 is that v9 is a true 64 bit env. */
|
78 |
|
|
#define bfd_mach_sparc_sparclet 2
|
79 |
|
|
#define bfd_mach_sparc_sparclite 3
|
80 |
|
|
#define bfd_mach_sparc_v8plus 4
|
81 |
|
|
#define bfd_mach_sparc_v8plusa 5 /* with ultrasparc add'ns. */
|
82 |
|
|
#define bfd_mach_sparc_sparclite_le 6
|
83 |
|
|
#define bfd_mach_sparc_v9 7
|
84 |
|
|
#define bfd_mach_sparc_v9a 8 /* with ultrasparc add'ns. */
|
85 |
|
|
#define bfd_mach_sparc_v8plusb 9 /* with cheetah add'ns. */
|
86 |
|
|
#define bfd_mach_sparc_v9b 10 /* with cheetah add'ns. */
|
87 |
|
|
/* Nonzero if MACH has the v9 instruction set. */
|
88 |
|
|
#define bfd_mach_sparc_v9_p(mach) \
|
89 |
|
|
((mach) >= bfd_mach_sparc_v8plus && (mach) <= bfd_mach_sparc_v9b \
|
90 |
|
|
&& (mach) != bfd_mach_sparc_sparclite_le)
|
91 |
|
|
bfd_arch_mips, /* MIPS Rxxxx */
|
92 |
|
|
#define bfd_mach_mips3000 3000
|
93 |
|
|
#define bfd_mach_mips3900 3900
|
94 |
|
|
#define bfd_mach_mips4000 4000
|
95 |
|
|
#define bfd_mach_mips4010 4010
|
96 |
|
|
#define bfd_mach_mips4100 4100
|
97 |
|
|
#define bfd_mach_mips4111 4111
|
98 |
|
|
#define bfd_mach_mips4300 4300
|
99 |
|
|
#define bfd_mach_mips4400 4400
|
100 |
|
|
#define bfd_mach_mips4600 4600
|
101 |
|
|
#define bfd_mach_mips4650 4650
|
102 |
|
|
#define bfd_mach_mips5000 5000
|
103 |
|
|
#define bfd_mach_mips6000 6000
|
104 |
|
|
#define bfd_mach_mips8000 8000
|
105 |
|
|
#define bfd_mach_mips10000 10000
|
106 |
|
|
#define bfd_mach_mips12000 12000
|
107 |
|
|
#define bfd_mach_mips16 16
|
108 |
|
|
#define bfd_mach_mips5 5
|
109 |
|
|
#define bfd_mach_mips_sb1 12310201 /* octal 'SB', 01 */
|
110 |
|
|
#define bfd_mach_mipsisa32 32
|
111 |
|
|
#define bfd_mach_mipsisa64 64
|
112 |
|
|
bfd_arch_i386, /* Intel 386 */
|
113 |
|
|
#define bfd_mach_i386_i386 0
|
114 |
|
|
#define bfd_mach_i386_i8086 1
|
115 |
|
|
#define bfd_mach_i386_i386_intel_syntax 2
|
116 |
|
|
#define bfd_mach_x86_64 3
|
117 |
|
|
#define bfd_mach_x86_64_intel_syntax 4
|
118 |
|
|
bfd_arch_we32k, /* AT&T WE32xxx */
|
119 |
|
|
bfd_arch_tahoe, /* CCI/Harris Tahoe */
|
120 |
|
|
bfd_arch_i860, /* Intel 860 */
|
121 |
|
|
bfd_arch_i370, /* IBM 360/370 Mainframes */
|
122 |
|
|
bfd_arch_romp, /* IBM ROMP PC/RT */
|
123 |
|
|
bfd_arch_alliant, /* Alliant */
|
124 |
|
|
bfd_arch_convex, /* Convex */
|
125 |
|
|
bfd_arch_m88k, /* Motorola 88xxx */
|
126 |
|
|
bfd_arch_pyramid, /* Pyramid Technology */
|
127 |
|
|
bfd_arch_h8300, /* Hitachi H8/300 */
|
128 |
|
|
#define bfd_mach_h8300 1
|
129 |
|
|
#define bfd_mach_h8300h 2
|
130 |
|
|
#define bfd_mach_h8300s 3
|
131 |
|
|
bfd_arch_pdp11, /* DEC PDP-11 */
|
132 |
|
|
bfd_arch_powerpc, /* PowerPC */
|
133 |
|
|
#define bfd_mach_ppc 0
|
134 |
|
|
#define bfd_mach_ppc64 1
|
135 |
|
|
#define bfd_mach_ppc_403 403
|
136 |
|
|
#define bfd_mach_ppc_403gc 4030
|
137 |
|
|
#define bfd_mach_ppc_505 505
|
138 |
|
|
#define bfd_mach_ppc_601 601
|
139 |
|
|
#define bfd_mach_ppc_602 602
|
140 |
|
|
#define bfd_mach_ppc_603 603
|
141 |
|
|
#define bfd_mach_ppc_ec603e 6031
|
142 |
|
|
#define bfd_mach_ppc_604 604
|
143 |
|
|
#define bfd_mach_ppc_620 620
|
144 |
|
|
#define bfd_mach_ppc_630 630
|
145 |
|
|
#define bfd_mach_ppc_750 750
|
146 |
|
|
#define bfd_mach_ppc_860 860
|
147 |
|
|
#define bfd_mach_ppc_a35 35
|
148 |
|
|
#define bfd_mach_ppc_rs64ii 642
|
149 |
|
|
#define bfd_mach_ppc_rs64iii 643
|
150 |
|
|
#define bfd_mach_ppc_7400 7400
|
151 |
|
|
#define bfd_mach_ppc_e500 500
|
152 |
|
|
bfd_arch_rs6000, /* IBM RS/6000 */
|
153 |
|
|
#define bfd_mach_rs6k 0
|
154 |
|
|
#define bfd_mach_rs6k_rs1 6001
|
155 |
|
|
#define bfd_mach_rs6k_rsc 6003
|
156 |
|
|
#define bfd_mach_rs6k_rs2 6002
|
157 |
|
|
bfd_arch_hppa, /* HP PA RISC */
|
158 |
|
|
bfd_arch_d10v, /* Mitsubishi D10V */
|
159 |
|
|
#define bfd_mach_d10v 0
|
160 |
|
|
#define bfd_mach_d10v_ts2 2
|
161 |
|
|
#define bfd_mach_d10v_ts3 3
|
162 |
|
|
bfd_arch_d30v, /* Mitsubishi D30V */
|
163 |
|
|
bfd_arch_dlx, /* DLX */
|
164 |
|
|
bfd_arch_m68hc11, /* Motorola 68HC11 */
|
165 |
|
|
bfd_arch_m68hc12, /* Motorola 68HC12 */
|
166 |
|
|
bfd_arch_z8k, /* Zilog Z8000 */
|
167 |
|
|
#define bfd_mach_z8001 1
|
168 |
|
|
#define bfd_mach_z8002 2
|
169 |
|
|
bfd_arch_h8500, /* Hitachi H8/500 */
|
170 |
|
|
bfd_arch_sh, /* Hitachi SH */
|
171 |
|
|
#define bfd_mach_sh 0
|
172 |
|
|
#define bfd_mach_sh2 0x20
|
173 |
|
|
#define bfd_mach_sh_dsp 0x2d
|
174 |
|
|
#define bfd_mach_sh3 0x30
|
175 |
|
|
#define bfd_mach_sh3_dsp 0x3d
|
176 |
|
|
#define bfd_mach_sh3e 0x3e
|
177 |
|
|
#define bfd_mach_sh4 0x40
|
178 |
|
|
#define bfd_mach_sh5 0x50
|
179 |
|
|
bfd_arch_alpha, /* Dec Alpha */
|
180 |
|
|
#define bfd_mach_alpha_ev4 0x10
|
181 |
|
|
#define bfd_mach_alpha_ev5 0x20
|
182 |
|
|
#define bfd_mach_alpha_ev6 0x30
|
183 |
|
|
bfd_arch_arm, /* Advanced Risc Machines ARM. */
|
184 |
|
|
#define bfd_mach_arm_2 1
|
185 |
|
|
#define bfd_mach_arm_2a 2
|
186 |
|
|
#define bfd_mach_arm_3 3
|
187 |
|
|
#define bfd_mach_arm_3M 4
|
188 |
|
|
#define bfd_mach_arm_4 5
|
189 |
|
|
#define bfd_mach_arm_4T 6
|
190 |
|
|
#define bfd_mach_arm_5 7
|
191 |
|
|
#define bfd_mach_arm_5T 8
|
192 |
|
|
#define bfd_mach_arm_5TE 9
|
193 |
|
|
#define bfd_mach_arm_XScale 10
|
194 |
|
|
bfd_arch_ns32k, /* National Semiconductors ns32000 */
|
195 |
|
|
bfd_arch_w65, /* WDC 65816 */
|
196 |
|
|
bfd_arch_tic30, /* Texas Instruments TMS320C30 */
|
197 |
|
|
bfd_arch_tic4x, /* Texas Instruments TMS320C3X/4X */
|
198 |
|
|
#define bfd_mach_c3x 30
|
199 |
|
|
#define bfd_mach_c4x 40
|
200 |
|
|
bfd_arch_tic54x, /* Texas Instruments TMS320C54X */
|
201 |
|
|
bfd_arch_tic80, /* TI TMS320c80 (MVP) */
|
202 |
|
|
bfd_arch_v850, /* NEC V850 */
|
203 |
|
|
#define bfd_mach_v850 0
|
204 |
|
|
#define bfd_mach_v850e 'E'
|
205 |
|
|
bfd_arch_arc, /* ARC Cores */
|
206 |
|
|
#define bfd_mach_arc_5 0
|
207 |
|
|
#define bfd_mach_arc_6 1
|
208 |
|
|
#define bfd_mach_arc_7 2
|
209 |
|
|
#define bfd_mach_arc_8 3
|
210 |
|
|
bfd_arch_m32r, /* Mitsubishi M32R/D */
|
211 |
|
|
#define bfd_mach_m32r 0 /* For backwards compatibility. */
|
212 |
|
|
#define bfd_mach_m32rx 'x'
|
213 |
|
|
bfd_arch_mn10200, /* Matsushita MN10200 */
|
214 |
|
|
bfd_arch_mn10300, /* Matsushita MN10300 */
|
215 |
|
|
#define bfd_mach_mn10300 300
|
216 |
|
|
#define bfd_mach_am33 330
|
217 |
|
|
bfd_arch_fr30,
|
218 |
|
|
#define bfd_mach_fr30 0x46523330
|
219 |
|
|
bfd_arch_frv,
|
220 |
|
|
#define bfd_mach_frv 0
|
221 |
|
|
#define bfd_mach_frvsimple 1
|
222 |
|
|
#define bfd_mach_fr300 300
|
223 |
|
|
#define bfd_mach_fr400 400
|
224 |
|
|
#define bfd_mach_frvtomcat 499 /* fr500 prototype */
|
225 |
|
|
#define bfd_mach_fr500 500
|
226 |
|
|
bfd_arch_mcore,
|
227 |
|
|
bfd_arch_ia64, /* HP/Intel ia64 */
|
228 |
|
|
#define bfd_mach_ia64_elf64 0
|
229 |
|
|
#define bfd_mach_ia64_elf32 1
|
230 |
|
|
bfd_arch_ip2k, /* Ubicom IP2K microcontrollers. */
|
231 |
|
|
#define bfd_mach_ip2022 0
|
232 |
|
|
#define bfd_mach_ip2022ext 1
|
233 |
|
|
bfd_arch_pj,
|
234 |
|
|
bfd_arch_avr, /* Atmel AVR microcontrollers. */
|
235 |
|
|
#define bfd_mach_avr1 1
|
236 |
|
|
#define bfd_mach_avr2 2
|
237 |
|
|
#define bfd_mach_avr3 3
|
238 |
|
|
#define bfd_mach_avr4 4
|
239 |
|
|
#define bfd_mach_avr5 5
|
240 |
|
|
bfd_arch_cris, /* Axis CRIS */
|
241 |
|
|
bfd_arch_s390, /* IBM s390 */
|
242 |
|
|
#define bfd_mach_s390_31 0
|
243 |
|
|
#define bfd_mach_s390_64 1
|
244 |
|
|
bfd_arch_openrisc, /* OpenRISC */
|
245 |
|
|
bfd_arch_mmix, /* Donald Knuth's educational processor. */
|
246 |
|
|
bfd_arch_xstormy16,
|
247 |
|
|
#define bfd_mach_xstormy16 0
|
248 |
|
|
bfd_arch_last
|
249 |
|
|
@};
|
250 |
|
|
@end example
|
251 |
|
|
|
252 |
|
|
@subsection bfd_arch_info
|
253 |
|
|
|
254 |
|
|
|
255 |
|
|
@strong{Description}@*
|
256 |
|
|
This structure contains information on architectures for use
|
257 |
|
|
within BFD.
|
258 |
|
|
@example
|
259 |
|
|
|
260 |
|
|
typedef struct bfd_arch_info
|
261 |
|
|
@{
|
262 |
|
|
int bits_per_word;
|
263 |
|
|
int bits_per_address;
|
264 |
|
|
int bits_per_byte;
|
265 |
|
|
enum bfd_architecture arch;
|
266 |
|
|
unsigned long mach;
|
267 |
|
|
const char *arch_name;
|
268 |
|
|
const char *printable_name;
|
269 |
|
|
unsigned int section_align_power;
|
270 |
|
|
/* True if this is the default machine for the architecture.
|
271 |
|
|
The default arch should be the first entry for an arch so that
|
272 |
|
|
all the entries for that arch can be accessed via @code{next}. */
|
273 |
|
|
boolean the_default;
|
274 |
|
|
const struct bfd_arch_info * (*compatible)
|
275 |
|
|
PARAMS ((const struct bfd_arch_info *a,
|
276 |
|
|
const struct bfd_arch_info *b));
|
277 |
|
|
|
278 |
|
|
boolean (*scan) PARAMS ((const struct bfd_arch_info *, const char *));
|
279 |
|
|
|
280 |
|
|
const struct bfd_arch_info *next;
|
281 |
|
|
@}
|
282 |
|
|
bfd_arch_info_type;
|
283 |
|
|
|
284 |
|
|
@end example
|
285 |
|
|
|
286 |
|
|
@findex bfd_printable_name
|
287 |
|
|
@subsubsection @code{bfd_printable_name}
|
288 |
|
|
@strong{Synopsis}
|
289 |
|
|
@example
|
290 |
|
|
const char *bfd_printable_name(bfd *abfd);
|
291 |
|
|
@end example
|
292 |
|
|
@strong{Description}@*
|
293 |
|
|
Return a printable string representing the architecture and machine
|
294 |
|
|
from the pointer to the architecture info structure.
|
295 |
|
|
|
296 |
|
|
@findex bfd_scan_arch
|
297 |
|
|
@subsubsection @code{bfd_scan_arch}
|
298 |
|
|
@strong{Synopsis}
|
299 |
|
|
@example
|
300 |
|
|
const bfd_arch_info_type *bfd_scan_arch(const char *string);
|
301 |
|
|
@end example
|
302 |
|
|
@strong{Description}@*
|
303 |
|
|
Figure out if BFD supports any cpu which could be described with
|
304 |
|
|
the name @var{string}. Return a pointer to an @code{arch_info}
|
305 |
|
|
structure if a machine is found, otherwise NULL.
|
306 |
|
|
|
307 |
|
|
@findex bfd_arch_list
|
308 |
|
|
@subsubsection @code{bfd_arch_list}
|
309 |
|
|
@strong{Synopsis}
|
310 |
|
|
@example
|
311 |
|
|
const char **bfd_arch_list(void);
|
312 |
|
|
@end example
|
313 |
|
|
@strong{Description}@*
|
314 |
|
|
Return a freshly malloced NULL-terminated vector of the names
|
315 |
|
|
of all the valid BFD architectures. Do not modify the names.
|
316 |
|
|
|
317 |
|
|
@findex bfd_arch_get_compatible
|
318 |
|
|
@subsubsection @code{bfd_arch_get_compatible}
|
319 |
|
|
@strong{Synopsis}
|
320 |
|
|
@example
|
321 |
|
|
const bfd_arch_info_type *bfd_arch_get_compatible(
|
322 |
|
|
const bfd *abfd,
|
323 |
|
|
const bfd *bbfd);
|
324 |
|
|
@end example
|
325 |
|
|
@strong{Description}@*
|
326 |
|
|
Determine whether two BFDs'
|
327 |
|
|
architectures and machine types are compatible. Calculates
|
328 |
|
|
the lowest common denominator between the two architectures
|
329 |
|
|
and machine types implied by the BFDs and returns a pointer to
|
330 |
|
|
an @code{arch_info} structure describing the compatible machine.
|
331 |
|
|
|
332 |
|
|
@findex bfd_default_arch_struct
|
333 |
|
|
@subsubsection @code{bfd_default_arch_struct}
|
334 |
|
|
@strong{Description}@*
|
335 |
|
|
The @code{bfd_default_arch_struct} is an item of
|
336 |
|
|
@code{bfd_arch_info_type} which has been initialized to a fairly
|
337 |
|
|
generic state. A BFD starts life by pointing to this
|
338 |
|
|
structure, until the correct back end has determined the real
|
339 |
|
|
architecture of the file.
|
340 |
|
|
@example
|
341 |
|
|
extern const bfd_arch_info_type bfd_default_arch_struct;
|
342 |
|
|
@end example
|
343 |
|
|
|
344 |
|
|
@findex bfd_set_arch_info
|
345 |
|
|
@subsubsection @code{bfd_set_arch_info}
|
346 |
|
|
@strong{Synopsis}
|
347 |
|
|
@example
|
348 |
|
|
void bfd_set_arch_info(bfd *abfd, const bfd_arch_info_type *arg);
|
349 |
|
|
@end example
|
350 |
|
|
@strong{Description}@*
|
351 |
|
|
Set the architecture info of @var{abfd} to @var{arg}.
|
352 |
|
|
|
353 |
|
|
@findex bfd_default_set_arch_mach
|
354 |
|
|
@subsubsection @code{bfd_default_set_arch_mach}
|
355 |
|
|
@strong{Synopsis}
|
356 |
|
|
@example
|
357 |
|
|
boolean bfd_default_set_arch_mach(bfd *abfd,
|
358 |
|
|
enum bfd_architecture arch,
|
359 |
|
|
unsigned long mach);
|
360 |
|
|
@end example
|
361 |
|
|
@strong{Description}@*
|
362 |
|
|
Set the architecture and machine type in BFD @var{abfd}
|
363 |
|
|
to @var{arch} and @var{mach}. Find the correct
|
364 |
|
|
pointer to a structure and insert it into the @code{arch_info}
|
365 |
|
|
pointer.
|
366 |
|
|
|
367 |
|
|
@findex bfd_get_arch
|
368 |
|
|
@subsubsection @code{bfd_get_arch}
|
369 |
|
|
@strong{Synopsis}
|
370 |
|
|
@example
|
371 |
|
|
enum bfd_architecture bfd_get_arch(bfd *abfd);
|
372 |
|
|
@end example
|
373 |
|
|
@strong{Description}@*
|
374 |
|
|
Return the enumerated type which describes the BFD @var{abfd}'s
|
375 |
|
|
architecture.
|
376 |
|
|
|
377 |
|
|
@findex bfd_get_mach
|
378 |
|
|
@subsubsection @code{bfd_get_mach}
|
379 |
|
|
@strong{Synopsis}
|
380 |
|
|
@example
|
381 |
|
|
unsigned long bfd_get_mach(bfd *abfd);
|
382 |
|
|
@end example
|
383 |
|
|
@strong{Description}@*
|
384 |
|
|
Return the long type which describes the BFD @var{abfd}'s
|
385 |
|
|
machine.
|
386 |
|
|
|
387 |
|
|
@findex bfd_arch_bits_per_byte
|
388 |
|
|
@subsubsection @code{bfd_arch_bits_per_byte}
|
389 |
|
|
@strong{Synopsis}
|
390 |
|
|
@example
|
391 |
|
|
unsigned int bfd_arch_bits_per_byte(bfd *abfd);
|
392 |
|
|
@end example
|
393 |
|
|
@strong{Description}@*
|
394 |
|
|
Return the number of bits in one of the BFD @var{abfd}'s
|
395 |
|
|
architecture's bytes.
|
396 |
|
|
|
397 |
|
|
@findex bfd_arch_bits_per_address
|
398 |
|
|
@subsubsection @code{bfd_arch_bits_per_address}
|
399 |
|
|
@strong{Synopsis}
|
400 |
|
|
@example
|
401 |
|
|
unsigned int bfd_arch_bits_per_address(bfd *abfd);
|
402 |
|
|
@end example
|
403 |
|
|
@strong{Description}@*
|
404 |
|
|
Return the number of bits in one of the BFD @var{abfd}'s
|
405 |
|
|
architecture's addresses.
|
406 |
|
|
|
407 |
|
|
@findex bfd_default_compatible
|
408 |
|
|
@subsubsection @code{bfd_default_compatible}
|
409 |
|
|
@strong{Synopsis}
|
410 |
|
|
@example
|
411 |
|
|
const bfd_arch_info_type *bfd_default_compatible
|
412 |
|
|
(const bfd_arch_info_type *a,
|
413 |
|
|
const bfd_arch_info_type *b);
|
414 |
|
|
@end example
|
415 |
|
|
@strong{Description}@*
|
416 |
|
|
The default function for testing for compatibility.
|
417 |
|
|
|
418 |
|
|
@findex bfd_default_scan
|
419 |
|
|
@subsubsection @code{bfd_default_scan}
|
420 |
|
|
@strong{Synopsis}
|
421 |
|
|
@example
|
422 |
|
|
boolean bfd_default_scan(const struct bfd_arch_info *info, const char *string);
|
423 |
|
|
@end example
|
424 |
|
|
@strong{Description}@*
|
425 |
|
|
The default function for working out whether this is an
|
426 |
|
|
architecture hit and a machine hit.
|
427 |
|
|
|
428 |
|
|
@findex bfd_get_arch_info
|
429 |
|
|
@subsubsection @code{bfd_get_arch_info}
|
430 |
|
|
@strong{Synopsis}
|
431 |
|
|
@example
|
432 |
|
|
const bfd_arch_info_type * bfd_get_arch_info(bfd *abfd);
|
433 |
|
|
@end example
|
434 |
|
|
@strong{Description}@*
|
435 |
|
|
Return the architecture info struct in @var{abfd}.
|
436 |
|
|
|
437 |
|
|
@findex bfd_lookup_arch
|
438 |
|
|
@subsubsection @code{bfd_lookup_arch}
|
439 |
|
|
@strong{Synopsis}
|
440 |
|
|
@example
|
441 |
|
|
const bfd_arch_info_type *bfd_lookup_arch
|
442 |
|
|
(enum bfd_architecture
|
443 |
|
|
arch,
|
444 |
|
|
unsigned long machine);
|
445 |
|
|
@end example
|
446 |
|
|
@strong{Description}@*
|
447 |
|
|
Look for the architecure info structure which matches the
|
448 |
|
|
arguments @var{arch} and @var{machine}. A machine of 0 matches the
|
449 |
|
|
machine/architecture structure which marks itself as the
|
450 |
|
|
default.
|
451 |
|
|
|
452 |
|
|
@findex bfd_printable_arch_mach
|
453 |
|
|
@subsubsection @code{bfd_printable_arch_mach}
|
454 |
|
|
@strong{Synopsis}
|
455 |
|
|
@example
|
456 |
|
|
const char *bfd_printable_arch_mach
|
457 |
|
|
(enum bfd_architecture arch, unsigned long machine);
|
458 |
|
|
@end example
|
459 |
|
|
@strong{Description}@*
|
460 |
|
|
Return a printable string representing the architecture and
|
461 |
|
|
machine type.
|
462 |
|
|
|
463 |
|
|
This routine is depreciated.
|
464 |
|
|
|
465 |
|
|
@findex bfd_octets_per_byte
|
466 |
|
|
@subsubsection @code{bfd_octets_per_byte}
|
467 |
|
|
@strong{Synopsis}
|
468 |
|
|
@example
|
469 |
|
|
unsigned int bfd_octets_per_byte(bfd *abfd);
|
470 |
|
|
@end example
|
471 |
|
|
@strong{Description}@*
|
472 |
|
|
Return the number of octets (8-bit quantities) per target byte
|
473 |
|
|
(minimum addressable unit). In most cases, this will be one, but some
|
474 |
|
|
DSP targets have 16, 32, or even 48 bits per byte.
|
475 |
|
|
|
476 |
|
|
@findex bfd_arch_mach_octets_per_byte
|
477 |
|
|
@subsubsection @code{bfd_arch_mach_octets_per_byte}
|
478 |
|
|
@strong{Synopsis}
|
479 |
|
|
@example
|
480 |
|
|
unsigned int bfd_arch_mach_octets_per_byte(enum bfd_architecture arch,
|
481 |
|
|
unsigned long machine);
|
482 |
|
|
@end example
|
483 |
|
|
@strong{Description}@*
|
484 |
|
|
See bfd_octets_per_byte.
|
485 |
|
|
|
486 |
|
|
This routine is provided for those cases where a bfd * is not
|
487 |
|
|
available
|
488 |
|
|
|