NS32k changes from Ian Dall:
[deliverable/binutils-gdb.git] / bfd / aout-target.h
CommitLineData
582bc90a 1/* Define a target vector and some small routines for a variant of a.out.
f5419a59 2 Copyright (C) 1990, 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
e98e6ec1
SC
3
4This file is part of BFD, the Binary File Descriptor library.
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
2a01c351 18Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
e98e6ec1 19
582bc90a
PB
20#include "aout/aout64.h"
21#include "aout/stab_gnu.h"
22#include "aout/ar.h"
23/*#include "libaout.h"*/
24
2a01c351 25extern reloc_howto_type * NAME(aout,reloc_type_lookup) ();
214f8f23 26
e98e6ec1
SC
27/* Set parameters about this a.out file that are machine-dependent.
28 This routine is called from some_aout_object_p just before it returns. */
214f8f23 29#ifndef MY_callback
a932d0ff 30static const bfd_target *
57a1867e
DM
31MY(callback) (abfd)
32 bfd *abfd;
e98e6ec1
SC
33{
34 struct internal_exec *execp = exec_hdr (abfd);
a932d0ff
ILT
35 unsigned int arch_align_power;
36 unsigned long arch_align;
294eaca4
SC
37
38 /* Calculate the file positions of the parts of a newly read aout header */
e98e6ec1
SC
39 obj_textsec (abfd)->_raw_size = N_TXTSIZE(*execp);
40
41 /* The virtual memory addresses of the sections */
42 obj_textsec (abfd)->vma = N_TXTADDR(*execp);
43 obj_datasec (abfd)->vma = N_DATADDR(*execp);
44 obj_bsssec (abfd)->vma = N_BSSADDR(*execp);
45
46 /* The file offsets of the sections */
47 obj_textsec (abfd)->filepos = N_TXTOFF (*execp);
48 obj_datasec (abfd)->filepos = N_DATOFF (*execp);
49
50 /* The file offsets of the relocation info */
51 obj_textsec (abfd)->rel_filepos = N_TRELOFF(*execp);
52 obj_datasec (abfd)->rel_filepos = N_DRELOFF(*execp);
53
54 /* The file offsets of the string table and symbol table. */
55 obj_sym_filepos (abfd) = N_SYMOFF (*execp);
56 obj_str_filepos (abfd) = N_STROFF (*execp);
57
582bc90a 58 /* Determine the architecture and machine type of the object file. */
e98e6ec1
SC
59#ifdef SET_ARCH_MACH
60 SET_ARCH_MACH(abfd, *execp);
61#else
62 bfd_default_set_arch_mach(abfd, DEFAULT_ARCH, 0);
63#endif
64
785e2b52
ILT
65 /* Now that we know the architecture, set the alignments of the
66 sections. This is normally done by NAME(aout,new_section_hook),
67 but when the initial sections were created the architecture had
a932d0ff
ILT
68 not yet been set. However, for backward compatibility, we don't
69 set the alignment power any higher than as required by the size
70 of the section. */
71 arch_align_power = bfd_get_arch_info (abfd)->section_align_power;
72 arch_align = 1 << arch_align_power;
73 if ((BFD_ALIGN (obj_textsec (abfd)->_raw_size, arch_align)
74 == obj_textsec (abfd)->_raw_size)
75 && (BFD_ALIGN (obj_datasec (abfd)->_raw_size, arch_align)
76 == obj_datasec (abfd)->_raw_size)
77 && (BFD_ALIGN (obj_bsssec (abfd)->_raw_size, arch_align)
78 == obj_bsssec (abfd)->_raw_size))
79 {
80 obj_textsec (abfd)->alignment_power = arch_align_power;
81 obj_datasec (abfd)->alignment_power = arch_align_power;
82 obj_bsssec (abfd)->alignment_power = arch_align_power;
83 }
785e2b52 84
294eaca4
SC
85 /* Don't set sizes now -- can't be sure until we know arch & mach.
86 Sizes get set in set_sizes callback, later. */
87#if 0
e98e6ec1
SC
88 adata(abfd).page_size = PAGE_SIZE;
89#ifdef SEGMENT_SIZE
90 adata(abfd).segment_size = SEGMENT_SIZE;
91#else
92 adata(abfd).segment_size = PAGE_SIZE;
93#endif
94 adata(abfd).exec_bytes_size = EXEC_BYTES_SIZE;
294eaca4 95#endif
e98e6ec1
SC
96
97 return abfd->xvec;
98}
214f8f23 99#endif
e98e6ec1
SC
100
101#ifndef MY_object_p
102/* Finish up the reading of an a.out file header */
103
a932d0ff 104static const bfd_target *
57a1867e
DM
105MY(object_p) (abfd)
106 bfd *abfd;
e98e6ec1
SC
107{
108 struct external_exec exec_bytes; /* Raw exec header from file */
109 struct internal_exec exec; /* Cleaned-up exec header */
a932d0ff 110 const bfd_target *target;
e98e6ec1
SC
111
112 if (bfd_read ((PTR) &exec_bytes, 1, EXEC_BYTES_SIZE, abfd)
113 != EXEC_BYTES_SIZE) {
4002f18a
ILT
114 if (bfd_get_error () != bfd_error_system_call)
115 bfd_set_error (bfd_error_wrong_format);
e98e6ec1
SC
116 return 0;
117 }
118
3f99570e
JK
119#ifdef SWAP_MAGIC
120 exec.a_info = SWAP_MAGIC (exec_bytes.e_info);
4c3721d5 121#else
e98e6ec1 122 exec.a_info = bfd_h_get_32 (abfd, exec_bytes.e_info);
3f99570e 123#endif /* SWAP_MAGIC */
e98e6ec1
SC
124
125 if (N_BADMAG (exec)) return 0;
4c3721d5
ILT
126#ifdef MACHTYPE_OK
127 if (!(MACHTYPE_OK (N_MACHTYPE (exec)))) return 0;
128#endif
e98e6ec1
SC
129
130 NAME(aout,swap_exec_header_in)(abfd, &exec_bytes, &exec);
a932d0ff
ILT
131
132#ifdef SWAP_MAGIC
133 /* swap_exec_header_in read in a_info with the wrong byte order */
134 exec.a_info = SWAP_MAGIC (exec_bytes.e_info);
135#endif /* SWAP_MAGIC */
136
e98e6ec1
SC
137 target = NAME(aout,some_aout_object_p) (abfd, &exec, MY(callback));
138
139#ifdef ENTRY_CAN_BE_ZERO
140 /* The NEWSOS3 entry-point is/was 0, which (amongst other lossage)
141 * means that it isn't obvious if EXEC_P should be set.
142 * All of the following must be true for an executable:
143 * There must be no relocations, the bfd can be neither an
144 * archive nor an archive element, and the file must be executable. */
145
146 if (exec.a_trsize + exec.a_drsize == 0
147 && bfd_get_format(abfd) == bfd_object && abfd->my_archive == NULL)
148 {
149 struct stat buf;
150#ifndef S_IXUSR
151#define S_IXUSR 0100 /* Execute by owner. */
152#endif
153 if (stat(abfd->filename, &buf) == 0 && (buf.st_mode & S_IXUSR))
154 abfd->flags |= EXEC_P;
155 }
156#endif /* ENTRY_CAN_BE_ZERO */
157
158 return target;
159}
160#define MY_object_p MY(object_p)
161#endif
162
163
164#ifndef MY_mkobject
165static boolean
57a1867e
DM
166MY(mkobject) (abfd)
167 bfd *abfd;
e98e6ec1
SC
168{
169 if (NAME(aout,mkobject)(abfd) == false)
170 return false;
294eaca4
SC
171#if 0 /* Sizes get set in set_sizes callback, later, after we know
172 the architecture and machine. */
e98e6ec1
SC
173 adata(abfd).page_size = PAGE_SIZE;
174#ifdef SEGMENT_SIZE
175 adata(abfd).segment_size = SEGMENT_SIZE;
176#else
177 adata(abfd).segment_size = PAGE_SIZE;
178#endif
179 adata(abfd).exec_bytes_size = EXEC_BYTES_SIZE;
294eaca4 180#endif
e98e6ec1
SC
181 return true;
182}
183#define MY_mkobject MY(mkobject)
184#endif
185
f5419a59
ILT
186#ifndef MY_bfd_copy_private_section_data
187
188/* Copy private section data. This actually does nothing with the
189 sections. It copies the subformat field. We copy it here, because
aa91350c
ILT
190 we need to know whether this is a QMAGIC file before we set the
191 section contents, and copy_private_bfd_data is not called until
192 after the section contents have been set. */
f5419a59
ILT
193
194/*ARGSUSED*/
195static boolean
196MY_bfd_copy_private_section_data (ibfd, isec, obfd, osec)
197 bfd *ibfd;
198 asection *isec;
199 bfd *obfd;
200 asection *osec;
201{
d7785845
ILT
202 if (bfd_get_flavour (obfd) == bfd_target_aout_flavour)
203 obj_aout_subformat (obfd) = obj_aout_subformat (ibfd);
f5419a59
ILT
204 return true;
205}
206
207#endif
208
e98e6ec1
SC
209/* Write an object file.
210 Section contents have already been written. We write the
211 file header, symbols, and relocation. */
212
213#ifndef MY_write_object_contents
214static boolean
57a1867e
DM
215MY(write_object_contents) (abfd)
216 bfd *abfd;
e98e6ec1 217{
e98e6ec1
SC
218 struct external_exec exec_bytes;
219 struct internal_exec *execp = exec_hdr (abfd);
220
582bc90a
PB
221#if CHOOSE_RELOC_SIZE
222 CHOOSE_RELOC_SIZE(abfd);
223#else
224 obj_reloc_entry_size (abfd) = RELOC_STD_SIZE;
225#endif
226
e98e6ec1 227 WRITE_HEADERS(abfd, execp);
582bc90a 228
e98e6ec1
SC
229 return true;
230}
231#define MY_write_object_contents MY(write_object_contents)
232#endif
233
294eaca4
SC
234#ifndef MY_set_sizes
235static boolean
57a1867e
DM
236MY(set_sizes) (abfd)
237 bfd *abfd;
294eaca4
SC
238{
239 adata(abfd).page_size = PAGE_SIZE;
a932d0ff 240
294eaca4
SC
241#ifdef SEGMENT_SIZE
242 adata(abfd).segment_size = SEGMENT_SIZE;
243#else
244 adata(abfd).segment_size = PAGE_SIZE;
245#endif
a932d0ff
ILT
246
247#ifdef ZMAGIC_DISK_BLOCK_SIZE
248 adata(abfd).zmagic_disk_block_size = ZMAGIC_DISK_BLOCK_SIZE;
249#else
250 adata(abfd).zmagic_disk_block_size = PAGE_SIZE;
251#endif
252
294eaca4
SC
253 adata(abfd).exec_bytes_size = EXEC_BYTES_SIZE;
254 return true;
255}
256#define MY_set_sizes MY(set_sizes)
257#endif
258
f5419a59
ILT
259#ifndef MY_exec_hdr_flags
260#define MY_exec_hdr_flags 0
261#endif
262
294eaca4 263#ifndef MY_backend_data
57a1867e 264
a932d0ff
ILT
265#ifndef MY_zmagic_contiguous
266#define MY_zmagic_contiguous 0
267#endif
f5419a59
ILT
268#ifndef MY_text_includes_header
269#define MY_text_includes_header 0
270#endif
2a01c351
KR
271#ifndef MY_exec_header_not_counted
272#define MY_exec_header_not_counted 0
273#endif
f5419a59
ILT
274#ifndef MY_add_dynamic_symbols
275#define MY_add_dynamic_symbols 0
276#endif
277#ifndef MY_add_one_symbol
278#define MY_add_one_symbol 0
279#endif
280#ifndef MY_link_dynamic_object
281#define MY_link_dynamic_object 0
282#endif
283#ifndef MY_write_dynamic_symbol
284#define MY_write_dynamic_symbol 0
285#endif
286#ifndef MY_check_dynamic_reloc
287#define MY_check_dynamic_reloc 0
57a1867e 288#endif
f5419a59
ILT
289#ifndef MY_finish_dynamic_link
290#define MY_finish_dynamic_link 0
57a1867e
DM
291#endif
292
294eaca4 293static CONST struct aout_backend_data MY(backend_data) = {
a932d0ff 294 MY_zmagic_contiguous,
f5419a59
ILT
295 MY_text_includes_header,
296 MY_exec_hdr_flags,
294eaca4
SC
297 0, /* text vma? */
298 MY_set_sizes,
2a01c351 299 MY_exec_header_not_counted,
f5419a59
ILT
300 MY_add_dynamic_symbols,
301 MY_add_one_symbol,
302 MY_link_dynamic_object,
303 MY_write_dynamic_symbol,
304 MY_check_dynamic_reloc,
305 MY_finish_dynamic_link
294eaca4
SC
306};
307#define MY_backend_data &MY(backend_data)
308#endif
309
f5419a59 310#ifndef MY_final_link_callback
4c3721d5 311
f5419a59 312/* Callback for the final_link routine to set the section offsets. */
4c3721d5 313
f5419a59 314static void MY_final_link_callback
4c3721d5
ILT
315 PARAMS ((bfd *, file_ptr *, file_ptr *, file_ptr *));
316
317static void
f5419a59 318MY_final_link_callback (abfd, ptreloff, pdreloff, psymoff)
4c3721d5
ILT
319 bfd *abfd;
320 file_ptr *ptreloff;
321 file_ptr *pdreloff;
322 file_ptr *psymoff;
323{
324 struct internal_exec *execp = exec_hdr (abfd);
325
326 *ptreloff = N_TRELOFF (*execp);
327 *pdreloff = N_DRELOFF (*execp);
328 *psymoff = N_SYMOFF (*execp);
329}
330
f5419a59
ILT
331#endif
332
333#ifndef MY_bfd_final_link
334
335/* Final link routine. We need to use a call back to get the correct
336 offsets in the output file. */
337
4c3721d5
ILT
338static boolean
339MY_bfd_final_link (abfd, info)
340 bfd *abfd;
341 struct bfd_link_info *info;
342{
f5419a59 343 return NAME(aout,final_link) (abfd, info, MY_final_link_callback);
4c3721d5
ILT
344}
345
346#endif
347
e98e6ec1
SC
348/* We assume BFD generic archive files. */
349#ifndef MY_openr_next_archived_file
350#define MY_openr_next_archived_file bfd_generic_openr_next_archived_file
351#endif
352#ifndef MY_generic_stat_arch_elt
353#define MY_generic_stat_arch_elt bfd_generic_stat_arch_elt
354#endif
355#ifndef MY_slurp_armap
356#define MY_slurp_armap bfd_slurp_bsd_armap
357#endif
358#ifndef MY_slurp_extended_name_table
582bc90a 359#define MY_slurp_extended_name_table _bfd_slurp_extended_name_table
e98e6ec1 360#endif
2a01c351
KR
361#ifndef MY_construct_extended_name_table
362#define MY_construct_extended_name_table \
363 _bfd_archive_bsd_construct_extended_name_table
364#endif
e98e6ec1
SC
365#ifndef MY_write_armap
366#define MY_write_armap bsd_write_armap
367#endif
368#ifndef MY_truncate_arname
369#define MY_truncate_arname bfd_bsd_truncate_arname
370#endif
d7785845
ILT
371#ifndef MY_update_armap_timestamp
372#define MY_update_armap_timestamp _bfd_archive_bsd_update_armap_timestamp
373#endif
e98e6ec1
SC
374
375/* No core file defined here -- configure in trad-core.c separately. */
376#ifndef MY_core_file_failing_command
6812b607 377#define MY_core_file_failing_command _bfd_nocore_core_file_failing_command
e98e6ec1
SC
378#endif
379#ifndef MY_core_file_failing_signal
6812b607 380#define MY_core_file_failing_signal _bfd_nocore_core_file_failing_signal
e98e6ec1
SC
381#endif
382#ifndef MY_core_file_matches_executable_p
383#define MY_core_file_matches_executable_p \
6812b607 384 _bfd_nocore_core_file_matches_executable_p
e98e6ec1
SC
385#endif
386#ifndef MY_core_file_p
387#define MY_core_file_p _bfd_dummy_target
388#endif
389
390#ifndef MY_bfd_debug_info_start
391#define MY_bfd_debug_info_start bfd_void
392#endif
393#ifndef MY_bfd_debug_info_end
394#define MY_bfd_debug_info_end bfd_void
395#endif
396#ifndef MY_bfd_debug_info_accumulate
1f29e30b
JG
397#define MY_bfd_debug_info_accumulate \
398 (void (*) PARAMS ((bfd*, struct sec *))) bfd_void
e98e6ec1
SC
399#endif
400
401#ifndef MY_core_file_failing_command
402#define MY_core_file_failing_command NAME(aout,core_file_failing_command)
403#endif
404#ifndef MY_core_file_failing_signal
405#define MY_core_file_failing_signal NAME(aout,core_file_failing_signal)
406#endif
407#ifndef MY_core_file_matches_executable_p
408#define MY_core_file_matches_executable_p NAME(aout,core_file_matches_executable_p)
409#endif
e98e6ec1
SC
410#ifndef MY_set_section_contents
411#define MY_set_section_contents NAME(aout,set_section_contents)
412#endif
413#ifndef MY_get_section_contents
414#define MY_get_section_contents NAME(aout,get_section_contents)
415#endif
416#ifndef MY_new_section_hook
417#define MY_new_section_hook NAME(aout,new_section_hook)
418#endif
419#ifndef MY_get_symtab_upper_bound
420#define MY_get_symtab_upper_bound NAME(aout,get_symtab_upper_bound)
421#endif
422#ifndef MY_get_symtab
423#define MY_get_symtab NAME(aout,get_symtab)
424#endif
425#ifndef MY_get_reloc_upper_bound
426#define MY_get_reloc_upper_bound NAME(aout,get_reloc_upper_bound)
427#endif
428#ifndef MY_canonicalize_reloc
429#define MY_canonicalize_reloc NAME(aout,canonicalize_reloc)
430#endif
431#ifndef MY_make_empty_symbol
432#define MY_make_empty_symbol NAME(aout,make_empty_symbol)
433#endif
434#ifndef MY_print_symbol
435#define MY_print_symbol NAME(aout,print_symbol)
436#endif
4c3721d5
ILT
437#ifndef MY_get_symbol_info
438#define MY_get_symbol_info NAME(aout,get_symbol_info)
439#endif
e98e6ec1
SC
440#ifndef MY_get_lineno
441#define MY_get_lineno NAME(aout,get_lineno)
442#endif
443#ifndef MY_set_arch_mach
444#define MY_set_arch_mach NAME(aout,set_arch_mach)
445#endif
e98e6ec1
SC
446#ifndef MY_find_nearest_line
447#define MY_find_nearest_line NAME(aout,find_nearest_line)
448#endif
e98e6ec1
SC
449#ifndef MY_sizeof_headers
450#define MY_sizeof_headers NAME(aout,sizeof_headers)
451#endif
4c3721d5
ILT
452#ifndef MY_bfd_get_relocated_section_contents
453#define MY_bfd_get_relocated_section_contents \
454 bfd_generic_get_relocated_section_contents
e98e6ec1 455#endif
4c3721d5
ILT
456#ifndef MY_bfd_relax_section
457#define MY_bfd_relax_section bfd_generic_relax_section
458#endif
459#ifndef MY_bfd_reloc_type_lookup
460#define MY_bfd_reloc_type_lookup NAME(aout,reloc_type_lookup)
e98e6ec1 461#endif
4c3721d5
ILT
462#ifndef MY_bfd_make_debug_symbol
463#define MY_bfd_make_debug_symbol 0
e98e6ec1 464#endif
2a01c351
KR
465#ifndef MY_read_minisymbols
466#define MY_read_minisymbols NAME(aout,read_minisymbols)
467#endif
468#ifndef MY_minisymbol_to_symbol
469#define MY_minisymbol_to_symbol NAME(aout,minisymbol_to_symbol)
470#endif
4c3721d5
ILT
471#ifndef MY_bfd_link_hash_table_create
472#define MY_bfd_link_hash_table_create NAME(aout,link_hash_table_create)
582bc90a 473#endif
4c3721d5
ILT
474#ifndef MY_bfd_link_add_symbols
475#define MY_bfd_link_add_symbols NAME(aout,link_add_symbols)
582bc90a 476#endif
2a01c351
KR
477#ifndef MY_bfd_link_split_section
478#define MY_bfd_link_split_section _bfd_generic_link_split_section
479#endif
480
294eaca4 481
9deaaaf1 482#ifndef MY_bfd_copy_private_bfd_data
6812b607 483#define MY_bfd_copy_private_bfd_data _bfd_generic_bfd_copy_private_bfd_data
9deaaaf1
ILT
484#endif
485
2a01c351
KR
486#ifndef MY_bfd_merge_private_bfd_data
487#define MY_bfd_merge_private_bfd_data _bfd_generic_bfd_merge_private_bfd_data
488#endif
489
490#ifndef MY_bfd_copy_private_symbol_data
491#define MY_bfd_copy_private_symbol_data _bfd_generic_bfd_copy_private_symbol_data
492#endif
493
494#ifndef MY_bfd_print_private_bfd_data
495#define MY_bfd_print_private_bfd_data _bfd_generic_bfd_print_private_bfd_data
496#endif
497
498#ifndef MY_bfd_set_private_flags
499#define MY_bfd_set_private_flags _bfd_generic_bfd_set_private_flags
500#endif
501
9deaaaf1
ILT
502#ifndef MY_bfd_is_local_label
503#define MY_bfd_is_local_label bfd_generic_is_local_label
504#endif
505
506#ifndef MY_bfd_free_cached_info
5c8444f8
ILT
507#define MY_bfd_free_cached_info NAME(aout,bfd_free_cached_info)
508#endif
509
510#ifndef MY_close_and_cleanup
511#define MY_close_and_cleanup MY_bfd_free_cached_info
9deaaaf1
ILT
512#endif
513
f5419a59
ILT
514#ifndef MY_get_dynamic_symtab_upper_bound
515#define MY_get_dynamic_symtab_upper_bound \
516 _bfd_nodynamic_get_dynamic_symtab_upper_bound
517#endif
518#ifndef MY_canonicalize_dynamic_symtab
519#define MY_canonicalize_dynamic_symtab \
520 _bfd_nodynamic_canonicalize_dynamic_symtab
521#endif
522#ifndef MY_get_dynamic_reloc_upper_bound
523#define MY_get_dynamic_reloc_upper_bound \
524 _bfd_nodynamic_get_dynamic_reloc_upper_bound
525#endif
526#ifndef MY_canonicalize_dynamic_reloc
527#define MY_canonicalize_dynamic_reloc \
528 _bfd_nodynamic_canonicalize_dynamic_reloc
529#endif
530
294eaca4
SC
531/* Aout symbols normally have leading underscores */
532#ifndef MY_symbol_leading_char
533#define MY_symbol_leading_char '_'
582bc90a 534#endif
e98e6ec1 535
4c3721d5
ILT
536/* Aout archives normally use spaces for padding */
537#ifndef AR_PAD_CHAR
538#define AR_PAD_CHAR ' '
539#endif
540
541#ifndef MY_BFD_TARGET
a932d0ff 542const bfd_target MY(vec) =
e98e6ec1
SC
543{
544 TARGETNAME, /* name */
545 bfd_target_aout_flavour,
582bc90a
PB
546#ifdef TARGET_IS_BIG_ENDIAN_P
547 true, /* target byte order (big) */
548 true, /* target headers byte order (big) */
549#else
550 false, /* target byte order (little) */
551 false, /* target headers byte order (little) */
552#endif
e98e6ec1
SC
553 (HAS_RELOC | EXEC_P | /* object flags */
554 HAS_LINENO | HAS_DEBUG |
57a1867e 555 HAS_SYMS | HAS_LOCALS | DYNAMIC | WP_TEXT | D_PAGED),
e98e6ec1 556 (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC), /* section flags */
294eaca4 557 MY_symbol_leading_char,
4c3721d5 558 AR_PAD_CHAR, /* ar_pad_char */
582bc90a 559 15, /* ar_max_namelen */
e98e6ec1 560#ifdef TARGET_IS_BIG_ENDIAN_P
4c3721d5
ILT
561 bfd_getb64, bfd_getb_signed_64, bfd_putb64,
562 bfd_getb32, bfd_getb_signed_32, bfd_putb32,
563 bfd_getb16, bfd_getb_signed_16, bfd_putb16, /* data */
564 bfd_getb64, bfd_getb_signed_64, bfd_putb64,
565 bfd_getb32, bfd_getb_signed_32, bfd_putb32,
566 bfd_getb16, bfd_getb_signed_16, bfd_putb16, /* hdrs */
e98e6ec1 567#else
4c3721d5
ILT
568 bfd_getl64, bfd_getl_signed_64, bfd_putl64,
569 bfd_getl32, bfd_getl_signed_32, bfd_putl32,
570 bfd_getl16, bfd_getl_signed_16, bfd_putl16, /* data */
571 bfd_getl64, bfd_getl_signed_64, bfd_putl64,
572 bfd_getl32, bfd_getl_signed_32, bfd_putl32,
573 bfd_getl16, bfd_getl_signed_16, bfd_putl16, /* hdrs */
e98e6ec1
SC
574#endif
575 {_bfd_dummy_target, MY_object_p, /* bfd_check_format */
576 bfd_generic_archive_p, MY_core_file_p},
577 {bfd_false, MY_mkobject, /* bfd_set_format */
578 _bfd_generic_mkarchive, bfd_false},
579 {bfd_false, MY_write_object_contents, /* bfd_write_contents */
580 _bfd_write_archive_contents, bfd_false},
581
6812b607
ILT
582 BFD_JUMP_TABLE_GENERIC (MY),
583 BFD_JUMP_TABLE_COPY (MY),
584 BFD_JUMP_TABLE_CORE (MY),
585 BFD_JUMP_TABLE_ARCHIVE (MY),
586 BFD_JUMP_TABLE_SYMBOLS (MY),
587 BFD_JUMP_TABLE_RELOCS (MY),
588 BFD_JUMP_TABLE_WRITE (MY),
589 BFD_JUMP_TABLE_LINK (MY),
f5419a59 590 BFD_JUMP_TABLE_DYNAMIC (MY),
6812b607 591
582bc90a 592 (PTR) MY_backend_data,
e98e6ec1 593};
4c3721d5 594#endif /* MY_BFD_TARGET */
This page took 0.169698 seconds and 4 git commands to generate.