1 /* Target definitions for NN-bit ELF
2 Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
3 Free Software Foundation, Inc.
5 This file is part of BFD, the Binary File Descriptor library.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
21 /* This structure contains everything that BFD knows about a target.
22 It includes things like its byte order, name, what routines to call
23 to do various operations, etc. Every BFD points to a target structure
24 with its "xvec" member.
26 There are two such structures here: one for big-endian machines and
27 one for little-endian machines. */
29 #define bfd_elfNN_close_and_cleanup _bfd_elf_close_and_cleanup
30 #define bfd_elfNN_bfd_free_cached_info _bfd_generic_bfd_free_cached_info
31 #ifndef bfd_elfNN_get_section_contents
32 #define bfd_elfNN_get_section_contents _bfd_generic_get_section_contents
35 #define bfd_elfNN_canonicalize_dynamic_symtab _bfd_elf_canonicalize_dynamic_symtab
36 #define bfd_elfNN_canonicalize_reloc _bfd_elf_canonicalize_reloc
37 #ifndef bfd_elfNN_find_nearest_line
38 #define bfd_elfNN_find_nearest_line _bfd_elf_find_nearest_line
40 #define bfd_elfNN_read_minisymbols _bfd_elf_read_minisymbols
41 #define bfd_elfNN_minisymbol_to_symbol _bfd_elf_minisymbol_to_symbol
42 #define bfd_elfNN_get_dynamic_symtab_upper_bound _bfd_elf_get_dynamic_symtab_upper_bound
43 #define bfd_elfNN_get_lineno _bfd_elf_get_lineno
44 #ifndef bfd_elfNN_get_reloc_upper_bound
45 #define bfd_elfNN_get_reloc_upper_bound _bfd_elf_get_reloc_upper_bound
47 #define bfd_elfNN_get_symbol_info _bfd_elf_get_symbol_info
48 #define bfd_elfNN_get_symtab _bfd_elf_get_symtab
49 #define bfd_elfNN_get_symtab_upper_bound _bfd_elf_get_symtab_upper_bound
50 #if 0 /* done in elf-bfd.h */
51 #define bfd_elfNN_link_record_dynamic_symbol _bfd_elf_link_record_dynamic_symbol
53 #define bfd_elfNN_make_empty_symbol _bfd_elf_make_empty_symbol
54 #define bfd_elfNN_new_section_hook _bfd_elf_new_section_hook
55 #define bfd_elfNN_set_arch_mach _bfd_elf_set_arch_mach
56 #ifndef bfd_elfNN_set_section_contents
57 #define bfd_elfNN_set_section_contents _bfd_elf_set_section_contents
59 #define bfd_elfNN_sizeof_headers _bfd_elf_sizeof_headers
60 #define bfd_elfNN_write_object_contents _bfd_elf_write_object_contents
61 #define bfd_elfNN_write_corefile_contents _bfd_elf_write_corefile_contents
63 #define bfd_elfNN_get_section_contents_in_window \
64 _bfd_generic_get_section_contents_in_window
66 #ifndef elf_backend_got_symbol_offset
67 #define elf_backend_got_symbol_offset (bfd_vma) 0
69 #ifndef elf_backend_can_refcount
70 #define elf_backend_can_refcount 0
72 #ifndef elf_backend_want_got_plt
73 #define elf_backend_want_got_plt 0
75 #ifndef elf_backend_plt_readonly
76 #define elf_backend_plt_readonly 0
78 #ifndef elf_backend_want_plt_sym
79 #define elf_backend_want_plt_sym 0
81 #ifndef elf_backend_plt_not_loaded
82 #define elf_backend_plt_not_loaded 0
84 #ifndef elf_backend_plt_alignment
85 #define elf_backend_plt_alignment 2
87 #ifndef elf_backend_want_dynbss
88 #define elf_backend_want_dynbss 1
91 #define bfd_elfNN_bfd_debug_info_start bfd_void
92 #define bfd_elfNN_bfd_debug_info_end bfd_void
93 #define bfd_elfNN_bfd_debug_info_accumulate \
94 (void (*) PARAMS ((bfd*, struct sec *))) bfd_void
96 #ifndef bfd_elfNN_bfd_get_relocated_section_contents
97 #define bfd_elfNN_bfd_get_relocated_section_contents \
98 bfd_generic_get_relocated_section_contents
101 #ifndef bfd_elfNN_bfd_relax_section
102 #define bfd_elfNN_bfd_relax_section bfd_generic_relax_section
105 #ifndef elf_backend_can_gc_sections
106 #define elf_backend_can_gc_sections 0
108 #ifndef elf_backend_can_refcount
109 #define elf_backend_can_refcount 0
111 #ifndef elf_backend_want_got_sym
112 #define elf_backend_want_got_sym 1
114 #ifndef elf_backend_gc_mark_hook
115 #define elf_backend_gc_mark_hook NULL
117 #ifndef elf_backend_gc_sweep_hook
118 #define elf_backend_gc_sweep_hook NULL
120 #ifndef bfd_elfNN_bfd_gc_sections
121 #define bfd_elfNN_bfd_gc_sections _bfd_elfNN_gc_sections
124 #ifndef bfd_elfNN_bfd_merge_sections
125 #define bfd_elfNN_bfd_merge_sections \
126 _bfd_elf_merge_sections
129 #ifndef bfd_elfNN_bfd_make_debug_symbol
130 #define bfd_elfNN_bfd_make_debug_symbol \
131 ((asymbol *(*) PARAMS ((bfd *, void *, unsigned long))) bfd_nullvoidptr)
134 #ifndef bfd_elfNN_bfd_copy_private_symbol_data
135 #define bfd_elfNN_bfd_copy_private_symbol_data \
136 _bfd_elf_copy_private_symbol_data
139 #ifndef bfd_elfNN_bfd_copy_private_section_data
140 #define bfd_elfNN_bfd_copy_private_section_data \
141 _bfd_elf_copy_private_section_data
143 #ifndef bfd_elfNN_bfd_copy_private_bfd_data
144 #define bfd_elfNN_bfd_copy_private_bfd_data \
145 _bfd_elf_copy_private_bfd_data
147 #ifndef bfd_elfNN_bfd_print_private_bfd_data
148 #define bfd_elfNN_bfd_print_private_bfd_data \
149 _bfd_elf_print_private_bfd_data
151 #ifndef bfd_elfNN_bfd_merge_private_bfd_data
152 #define bfd_elfNN_bfd_merge_private_bfd_data \
153 ((boolean (*) PARAMS ((bfd *, bfd *))) bfd_true)
155 #ifndef bfd_elfNN_bfd_set_private_flags
156 #define bfd_elfNN_bfd_set_private_flags \
157 ((boolean (*) PARAMS ((bfd *, flagword))) bfd_true)
159 #ifndef bfd_elfNN_bfd_is_local_label_name
160 #define bfd_elfNN_bfd_is_local_label_name _bfd_elf_is_local_label_name
163 #ifndef bfd_elfNN_get_dynamic_reloc_upper_bound
164 #define bfd_elfNN_get_dynamic_reloc_upper_bound \
165 _bfd_elf_get_dynamic_reloc_upper_bound
167 #ifndef bfd_elfNN_canonicalize_dynamic_reloc
168 #define bfd_elfNN_canonicalize_dynamic_reloc \
169 _bfd_elf_canonicalize_dynamic_reloc
172 #ifndef bfd_elfNN_bfd_link_hash_table_free
173 #define bfd_elfNN_bfd_link_hash_table_free _bfd_generic_link_hash_table_free
176 #ifdef elf_backend_relocate_section
177 #ifndef bfd_elfNN_bfd_link_hash_table_create
178 #define bfd_elfNN_bfd_link_hash_table_create _bfd_elf_link_hash_table_create
180 #else /* ! defined (elf_backend_relocate_section) */
181 /* If no backend relocate_section routine, use the generic linker.
182 Note - this will prevent the port from being able to use some of
183 the other features of the ELF linker, because the generic hash structure
184 does not have the fields needed by the ELF linker. In particular it
185 means that linking directly to S-records will not work. */
186 #ifndef bfd_elfNN_bfd_link_hash_table_create
187 #define bfd_elfNN_bfd_link_hash_table_create \
188 _bfd_generic_link_hash_table_create
190 #ifndef bfd_elfNN_bfd_link_add_symbols
191 #define bfd_elfNN_bfd_link_add_symbols _bfd_generic_link_add_symbols
193 #ifndef bfd_elfNN_bfd_final_link
194 #define bfd_elfNN_bfd_final_link _bfd_generic_final_link
196 #endif /* ! defined (elf_backend_relocate_section) */
198 #ifndef bfd_elfNN_bfd_link_just_syms
199 #define bfd_elfNN_bfd_link_just_syms _bfd_elf_link_just_syms
202 #ifndef bfd_elfNN_bfd_link_split_section
203 #define bfd_elfNN_bfd_link_split_section _bfd_generic_link_split_section
206 #ifndef bfd_elfNN_archive_p
207 #define bfd_elfNN_archive_p bfd_generic_archive_p
210 #ifndef bfd_elfNN_write_archive_contents
211 #define bfd_elfNN_write_archive_contents _bfd_write_archive_contents
214 #ifndef bfd_elfNN_mkobject
215 #define bfd_elfNN_mkobject bfd_elf_mkobject
218 #ifndef bfd_elfNN_mkcorefile
219 #define bfd_elfNN_mkcorefile bfd_elf_mkcorefile
222 #ifndef bfd_elfNN_mkarchive
223 #define bfd_elfNN_mkarchive _bfd_generic_mkarchive
226 #ifndef elf_symbol_leading_char
227 #define elf_symbol_leading_char 0
230 #ifndef elf_info_to_howto
231 #define elf_info_to_howto 0
234 #ifndef elf_info_to_howto_rel
235 #define elf_info_to_howto_rel 0
238 #ifndef ELF_MAXPAGESIZE
239 #error ELF_MAXPAGESIZE is not defined
240 #define ELF_MAXPAGESIZE 1
243 #ifndef elf_backend_collect
244 #define elf_backend_collect false
246 #ifndef elf_backend_type_change_ok
247 #define elf_backend_type_change_ok false
250 #ifndef elf_backend_sym_is_global
251 #define elf_backend_sym_is_global 0
253 #ifndef elf_backend_object_p
254 #define elf_backend_object_p 0
256 #ifndef elf_backend_symbol_processing
257 #define elf_backend_symbol_processing 0
259 #ifndef elf_backend_symbol_table_processing
260 #define elf_backend_symbol_table_processing 0
262 #ifndef elf_backend_get_symbol_type
263 #define elf_backend_get_symbol_type 0
265 #ifndef elf_backend_section_processing
266 #define elf_backend_section_processing 0
268 #ifndef elf_backend_section_from_shdr
269 #define elf_backend_section_from_shdr 0
271 #ifndef elf_backend_section_flags
272 #define elf_backend_section_flags 0
274 #ifndef elf_backend_section_from_phdr
275 #define elf_backend_section_from_phdr 0
277 #ifndef elf_backend_fake_sections
278 #define elf_backend_fake_sections 0
280 #ifndef elf_backend_section_from_bfd_section
281 #define elf_backend_section_from_bfd_section 0
283 #ifndef elf_backend_add_symbol_hook
284 #define elf_backend_add_symbol_hook 0
286 #ifndef elf_backend_link_output_symbol_hook
287 #define elf_backend_link_output_symbol_hook 0
289 #ifndef elf_backend_create_dynamic_sections
290 #define elf_backend_create_dynamic_sections 0
292 #ifndef elf_backend_check_relocs
293 #define elf_backend_check_relocs 0
295 #ifndef elf_backend_adjust_dynamic_symbol
296 #define elf_backend_adjust_dynamic_symbol 0
298 #ifndef elf_backend_always_size_sections
299 #define elf_backend_always_size_sections 0
301 #ifndef elf_backend_size_dynamic_sections
302 #define elf_backend_size_dynamic_sections 0
304 #ifndef elf_backend_relocate_section
305 #define elf_backend_relocate_section 0
307 #ifndef elf_backend_finish_dynamic_symbol
308 #define elf_backend_finish_dynamic_symbol 0
310 #ifndef elf_backend_finish_dynamic_sections
311 #define elf_backend_finish_dynamic_sections 0
313 #ifndef elf_backend_begin_write_processing
314 #define elf_backend_begin_write_processing 0
316 #ifndef elf_backend_final_write_processing
317 #define elf_backend_final_write_processing 0
319 #ifndef elf_backend_additional_program_headers
320 #define elf_backend_additional_program_headers 0
322 #ifndef elf_backend_modify_segment_map
323 #define elf_backend_modify_segment_map 0
325 #ifndef elf_backend_ecoff_debug_swap
326 #define elf_backend_ecoff_debug_swap 0
328 #ifndef elf_backend_got_header_size
329 #define elf_backend_got_header_size 0
331 #ifndef elf_backend_plt_header_size
332 #define elf_backend_plt_header_size 0
334 #ifndef elf_backend_post_process_headers
335 #define elf_backend_post_process_headers NULL
337 #ifndef elf_backend_print_symbol_all
338 #define elf_backend_print_symbol_all NULL
340 #ifndef elf_backend_output_arch_syms
341 #define elf_backend_output_arch_syms NULL
343 #ifndef elf_backend_copy_indirect_symbol
344 #define elf_backend_copy_indirect_symbol _bfd_elf_link_hash_copy_indirect
346 #ifndef elf_backend_hide_symbol
347 #define elf_backend_hide_symbol _bfd_elf_link_hash_hide_symbol
349 #ifndef elf_backend_emit_relocs
350 #define elf_backend_emit_relocs NULL
352 #ifndef elf_backend_count_relocs
353 #define elf_backend_count_relocs NULL
355 #ifndef elf_backend_grok_prstatus
356 #define elf_backend_grok_prstatus NULL
358 #ifndef elf_backend_grok_psinfo
359 #define elf_backend_grok_psinfo NULL
361 #ifndef elf_backend_sprintf_vma
362 #define elf_backend_sprintf_vma _bfd_elf_sprintf_vma
364 #ifndef elf_backend_fprintf_vma
365 #define elf_backend_fprintf_vma _bfd_elf_fprintf_vma
367 #ifndef elf_backend_reloc_type_class
368 #define elf_backend_reloc_type_class _bfd_elf_reloc_type_class
370 #ifndef elf_backend_discard_info
371 #define elf_backend_discard_info NULL
373 #ifndef elf_backend_ignore_discarded_relocs
374 #define elf_backend_ignore_discarded_relocs NULL
376 #ifndef elf_backend_write_section
377 #define elf_backend_write_section NULL
379 #ifndef elf_backend_mips_irix_compat
380 #define elf_backend_mips_irix_compat NULL
382 #ifndef elf_backend_mips_rtype_to_howto
383 #define elf_backend_mips_rtype_to_howto NULL
386 /* Previously, backends could only use SHT_REL or SHT_RELA relocation
387 sections, but not both. They defined USE_REL to indicate SHT_REL
388 sections, and left it undefined to indicated SHT_RELA sections.
389 For backwards compatibility, we still support this usage. */
397 /* Use these in new code. */
398 #ifndef elf_backend_may_use_rel_p
399 #define elf_backend_may_use_rel_p USE_REL
401 #ifndef elf_backend_may_use_rela_p
402 #define elf_backend_may_use_rela_p !USE_REL
404 #ifndef elf_backend_default_use_rela_p
405 #define elf_backend_default_use_rela_p !USE_REL
408 #ifndef elf_backend_rela_normal
409 #define elf_backend_rela_normal 0
412 #ifndef ELF_MACHINE_ALT1
413 #define ELF_MACHINE_ALT1 0
416 #ifndef ELF_MACHINE_ALT2
417 #define ELF_MACHINE_ALT2 0
420 #ifndef elf_backend_size_info
421 #define elf_backend_size_info _bfd_elfNN_size_info
424 #ifndef elf_backend_sign_extend_vma
425 #define elf_backend_sign_extend_vma 0
428 extern const struct elf_size_info _bfd_elfNN_size_info;
430 #ifndef INCLUDED_TARGET_FILE
431 static const struct elf_backend_data elfNN_bed =
434 ELF_MACHINE_CODE, /* elf_machine_code */
435 ELF_MAXPAGESIZE, /* maxpagesize */
437 elf_info_to_howto_rel,
438 elf_backend_sym_is_global,
439 elf_backend_object_p,
440 elf_backend_symbol_processing,
441 elf_backend_symbol_table_processing,
442 elf_backend_get_symbol_type,
443 elf_backend_section_processing,
444 elf_backend_section_from_shdr,
445 elf_backend_section_flags,
446 elf_backend_section_from_phdr,
447 elf_backend_fake_sections,
448 elf_backend_section_from_bfd_section,
449 elf_backend_add_symbol_hook,
450 elf_backend_link_output_symbol_hook,
451 elf_backend_create_dynamic_sections,
452 elf_backend_check_relocs,
453 elf_backend_adjust_dynamic_symbol,
454 elf_backend_always_size_sections,
455 elf_backend_size_dynamic_sections,
456 elf_backend_relocate_section,
457 elf_backend_finish_dynamic_symbol,
458 elf_backend_finish_dynamic_sections,
459 elf_backend_begin_write_processing,
460 elf_backend_final_write_processing,
461 elf_backend_additional_program_headers,
462 elf_backend_modify_segment_map,
463 elf_backend_gc_mark_hook,
464 elf_backend_gc_sweep_hook,
465 elf_backend_post_process_headers,
466 elf_backend_print_symbol_all,
467 elf_backend_output_arch_syms,
468 elf_backend_copy_indirect_symbol,
469 elf_backend_hide_symbol,
470 elf_backend_emit_relocs,
471 elf_backend_count_relocs,
472 elf_backend_grok_prstatus,
473 elf_backend_grok_psinfo,
474 elf_backend_sprintf_vma,
475 elf_backend_fprintf_vma,
476 elf_backend_reloc_type_class,
477 elf_backend_discard_info,
478 elf_backend_ignore_discarded_relocs,
479 elf_backend_write_section,
480 elf_backend_mips_irix_compat,
481 elf_backend_mips_rtype_to_howto,
482 elf_backend_ecoff_debug_swap,
485 &elf_backend_size_info,
486 elf_backend_got_symbol_offset,
487 elf_backend_got_header_size,
488 elf_backend_plt_header_size,
490 elf_backend_type_change_ok,
491 elf_backend_may_use_rel_p,
492 elf_backend_may_use_rela_p,
493 elf_backend_default_use_rela_p,
494 elf_backend_rela_normal,
495 elf_backend_sign_extend_vma,
496 elf_backend_want_got_plt,
497 elf_backend_plt_readonly,
498 elf_backend_want_plt_sym,
499 elf_backend_plt_not_loaded,
500 elf_backend_plt_alignment,
501 elf_backend_can_gc_sections,
502 elf_backend_can_refcount,
503 elf_backend_want_got_sym,
504 elf_backend_want_dynbss
508 /* Forward declaration for use when initialising alternative_target field. */
509 #ifdef TARGET_LITTLE_SYM
510 extern const bfd_target TARGET_LITTLE_SYM;
513 #ifdef TARGET_BIG_SYM
514 const bfd_target TARGET_BIG_SYM =
516 /* name: identify kind of target */
519 /* flavour: general indication about file */
520 bfd_target_elf_flavour,
522 /* byteorder: data is big endian */
525 /* header_byteorder: header is also big endian */
528 /* object_flags: mask of all file flags */
529 (HAS_RELOC | EXEC_P | HAS_LINENO | HAS_DEBUG | HAS_SYMS | HAS_LOCALS
530 | DYNAMIC | WP_TEXT | D_PAGED),
532 /* section_flags: mask of all section flags */
533 (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_READONLY
534 | SEC_CODE | SEC_DATA | SEC_DEBUGGING | SEC_EXCLUDE | SEC_SORT_ENTRIES
535 | SEC_ARCH_BIT_0 | SEC_SMALL_DATA | SEC_MERGE | SEC_STRINGS | SEC_GROUP),
537 /* leading_symbol_char: is the first char of a user symbol
538 predictable, and if so what is it */
539 elf_symbol_leading_char,
541 /* ar_pad_char: pad character for filenames within an archive header
542 FIXME: this really has nothing to do with ELF, this is a characteristic
543 of the archiver and/or os and should be independently tunable */
546 /* ar_max_namelen: maximum number of characters in an archive header
547 FIXME: this really has nothing to do with ELF, this is a characteristic
548 of the archiver and should be independently tunable. The System V ABI,
549 Chapter 7 (Formats & Protocols), Archive section sets this as 15. */
552 /* Routines to byte-swap various sized integers from the data sections */
553 bfd_getb64, bfd_getb_signed_64, bfd_putb64,
554 bfd_getb32, bfd_getb_signed_32, bfd_putb32,
555 bfd_getb16, bfd_getb_signed_16, bfd_putb16,
557 /* Routines to byte-swap various sized integers from the file headers */
558 bfd_getb64, bfd_getb_signed_64, bfd_putb64,
559 bfd_getb32, bfd_getb_signed_32, bfd_putb32,
560 bfd_getb16, bfd_getb_signed_16, bfd_putb16,
562 /* bfd_check_format: check the format of a file being read */
563 { _bfd_dummy_target, /* unknown format */
564 bfd_elfNN_object_p, /* assembler/linker output (object file) */
565 bfd_elfNN_archive_p, /* an archive */
566 bfd_elfNN_core_file_p /* a core file */
569 /* bfd_set_format: set the format of a file being written */
576 /* bfd_write_contents: write cached information into a file being written */
578 bfd_elfNN_write_object_contents,
579 bfd_elfNN_write_archive_contents,
580 bfd_elfNN_write_corefile_contents,
583 BFD_JUMP_TABLE_GENERIC (bfd_elfNN),
584 BFD_JUMP_TABLE_COPY (bfd_elfNN),
585 BFD_JUMP_TABLE_CORE (bfd_elfNN),
586 #ifdef bfd_elfNN_archive_functions
587 BFD_JUMP_TABLE_ARCHIVE (bfd_elfNN_archive),
589 BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_coff),
591 BFD_JUMP_TABLE_SYMBOLS (bfd_elfNN),
592 BFD_JUMP_TABLE_RELOCS (bfd_elfNN),
593 BFD_JUMP_TABLE_WRITE (bfd_elfNN),
594 BFD_JUMP_TABLE_LINK (bfd_elfNN),
595 BFD_JUMP_TABLE_DYNAMIC (bfd_elfNN),
597 /* Alternative endian target. */
598 #ifdef TARGET_LITTLE_SYM
609 #ifdef TARGET_LITTLE_SYM
610 const bfd_target TARGET_LITTLE_SYM =
612 /* name: identify kind of target */
615 /* flavour: general indication about file */
616 bfd_target_elf_flavour,
618 /* byteorder: data is little endian */
621 /* header_byteorder: header is also little endian */
624 /* object_flags: mask of all file flags */
625 (HAS_RELOC | EXEC_P | HAS_LINENO | HAS_DEBUG | HAS_SYMS | HAS_LOCALS
626 | DYNAMIC | WP_TEXT | D_PAGED),
628 /* section_flags: mask of all section flags */
629 (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_READONLY
630 | SEC_CODE | SEC_DATA | SEC_DEBUGGING | SEC_EXCLUDE | SEC_SORT_ENTRIES
631 | SEC_ARCH_BIT_0 | SEC_SMALL_DATA | SEC_MERGE | SEC_STRINGS | SEC_GROUP),
633 /* leading_symbol_char: is the first char of a user symbol
634 predictable, and if so what is it */
635 elf_symbol_leading_char,
637 /* ar_pad_char: pad character for filenames within an archive header
638 FIXME: this really has nothing to do with ELF, this is a characteristic
639 of the archiver and/or os and should be independently tunable */
642 /* ar_max_namelen: maximum number of characters in an archive header
643 FIXME: this really has nothing to do with ELF, this is a characteristic
644 of the archiver and should be independently tunable. The System V ABI,
645 Chapter 7 (Formats & Protocols), Archive section sets this as 15. */
648 /* Routines to byte-swap various sized integers from the data sections */
649 bfd_getl64, bfd_getl_signed_64, bfd_putl64,
650 bfd_getl32, bfd_getl_signed_32, bfd_putl32,
651 bfd_getl16, bfd_getl_signed_16, bfd_putl16,
653 /* Routines to byte-swap various sized integers from the file headers */
654 bfd_getl64, bfd_getl_signed_64, bfd_putl64,
655 bfd_getl32, bfd_getl_signed_32, bfd_putl32,
656 bfd_getl16, bfd_getl_signed_16, bfd_putl16,
658 /* bfd_check_format: check the format of a file being read */
659 { _bfd_dummy_target, /* unknown format */
660 bfd_elfNN_object_p, /* assembler/linker output (object file) */
661 bfd_elfNN_archive_p, /* an archive */
662 bfd_elfNN_core_file_p /* a core file */
665 /* bfd_set_format: set the format of a file being written */
672 /* bfd_write_contents: write cached information into a file being written */
674 bfd_elfNN_write_object_contents,
675 bfd_elfNN_write_archive_contents,
676 bfd_elfNN_write_corefile_contents,
679 BFD_JUMP_TABLE_GENERIC (bfd_elfNN),
680 BFD_JUMP_TABLE_COPY (bfd_elfNN),
681 BFD_JUMP_TABLE_CORE (bfd_elfNN),
682 #ifdef bfd_elfNN_archive_functions
683 BFD_JUMP_TABLE_ARCHIVE (bfd_elfNN_archive),
685 BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_coff),
687 BFD_JUMP_TABLE_SYMBOLS (bfd_elfNN),
688 BFD_JUMP_TABLE_RELOCS (bfd_elfNN),
689 BFD_JUMP_TABLE_WRITE (bfd_elfNN),
690 BFD_JUMP_TABLE_LINK (bfd_elfNN),
691 BFD_JUMP_TABLE_DYNAMIC (bfd_elfNN),
693 /* Alternative endian target. */
694 #ifdef TARGET_BIG_SYM