1 /* Target definitions for NN-bit ELF
2 Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
3 2003 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 \
36 _bfd_elf_canonicalize_dynamic_symtab
37 #ifndef bfd_elfNN_canonicalize_reloc
38 #define bfd_elfNN_canonicalize_reloc _bfd_elf_canonicalize_reloc
40 #ifndef bfd_elfNN_find_nearest_line
41 #define bfd_elfNN_find_nearest_line _bfd_elf_find_nearest_line
43 #define bfd_elfNN_read_minisymbols _bfd_elf_read_minisymbols
44 #define bfd_elfNN_minisymbol_to_symbol _bfd_elf_minisymbol_to_symbol
45 #define bfd_elfNN_get_dynamic_symtab_upper_bound \
46 _bfd_elf_get_dynamic_symtab_upper_bound
47 #define bfd_elfNN_get_lineno _bfd_elf_get_lineno
48 #ifndef bfd_elfNN_get_reloc_upper_bound
49 #define bfd_elfNN_get_reloc_upper_bound _bfd_elf_get_reloc_upper_bound
51 #ifndef bfd_elfNN_get_symbol_info
52 #define bfd_elfNN_get_symbol_info _bfd_elf_get_symbol_info
54 #define bfd_elfNN_canonicalize_symtab _bfd_elf_canonicalize_symtab
55 #define bfd_elfNN_get_symtab_upper_bound _bfd_elf_get_symtab_upper_bound
56 #define bfd_elfNN_make_empty_symbol _bfd_elf_make_empty_symbol
57 #ifndef bfd_elfNN_new_section_hook
58 #define bfd_elfNN_new_section_hook _bfd_elf_new_section_hook
60 #define bfd_elfNN_set_arch_mach _bfd_elf_set_arch_mach
61 #ifndef bfd_elfNN_set_section_contents
62 #define bfd_elfNN_set_section_contents _bfd_elf_set_section_contents
64 #define bfd_elfNN_sizeof_headers _bfd_elf_sizeof_headers
65 #define bfd_elfNN_write_object_contents _bfd_elf_write_object_contents
66 #define bfd_elfNN_write_corefile_contents _bfd_elf_write_corefile_contents
68 #define bfd_elfNN_get_section_contents_in_window \
69 _bfd_generic_get_section_contents_in_window
71 #ifndef elf_backend_got_symbol_offset
72 #define elf_backend_got_symbol_offset (bfd_vma) 0
74 #ifndef elf_backend_can_refcount
75 #define elf_backend_can_refcount 0
77 #ifndef elf_backend_want_got_plt
78 #define elf_backend_want_got_plt 0
80 #ifndef elf_backend_plt_readonly
81 #define elf_backend_plt_readonly 0
83 #ifndef elf_backend_want_plt_sym
84 #define elf_backend_want_plt_sym 0
86 #ifndef elf_backend_plt_not_loaded
87 #define elf_backend_plt_not_loaded 0
89 #ifndef elf_backend_plt_alignment
90 #define elf_backend_plt_alignment 2
92 #ifndef elf_backend_want_dynbss
93 #define elf_backend_want_dynbss 1
95 #ifndef elf_backend_want_p_paddr_set_to_zero
96 #define elf_backend_want_p_paddr_set_to_zero 0
99 #define bfd_elfNN_bfd_debug_info_start bfd_void
100 #define bfd_elfNN_bfd_debug_info_end bfd_void
101 #define bfd_elfNN_bfd_debug_info_accumulate \
102 ((void (*) (bfd*, struct bfd_section *)) bfd_void)
104 #ifndef bfd_elfNN_bfd_get_relocated_section_contents
105 #define bfd_elfNN_bfd_get_relocated_section_contents \
106 bfd_generic_get_relocated_section_contents
109 #ifndef bfd_elfNN_bfd_relax_section
110 #define bfd_elfNN_bfd_relax_section bfd_generic_relax_section
113 #ifndef elf_backend_can_gc_sections
114 #define elf_backend_can_gc_sections 0
116 #ifndef elf_backend_can_refcount
117 #define elf_backend_can_refcount 0
119 #ifndef elf_backend_want_got_sym
120 #define elf_backend_want_got_sym 1
122 #ifndef elf_backend_gc_mark_hook
123 #define elf_backend_gc_mark_hook NULL
125 #ifndef elf_backend_gc_sweep_hook
126 #define elf_backend_gc_sweep_hook NULL
128 #ifndef bfd_elfNN_bfd_gc_sections
129 #define bfd_elfNN_bfd_gc_sections _bfd_elfNN_gc_sections
132 #ifndef bfd_elfNN_bfd_merge_sections
133 #define bfd_elfNN_bfd_merge_sections \
134 _bfd_elf_merge_sections
137 #ifndef bfd_elfNN_bfd_discard_group
138 #define bfd_elfNN_bfd_discard_group bfd_elf_discard_group
141 #ifndef bfd_elfNN_bfd_make_debug_symbol
142 #define bfd_elfNN_bfd_make_debug_symbol \
143 ((asymbol * (*) (bfd *, void *, unsigned long)) bfd_nullvoidptr)
146 #ifndef bfd_elfNN_bfd_copy_private_symbol_data
147 #define bfd_elfNN_bfd_copy_private_symbol_data \
148 _bfd_elf_copy_private_symbol_data
151 #ifndef bfd_elfNN_bfd_copy_private_section_data
152 #define bfd_elfNN_bfd_copy_private_section_data \
153 _bfd_elf_copy_private_section_data
155 #ifndef bfd_elfNN_bfd_copy_private_bfd_data
156 #define bfd_elfNN_bfd_copy_private_bfd_data \
157 _bfd_elf_copy_private_bfd_data
159 #ifndef bfd_elfNN_bfd_print_private_bfd_data
160 #define bfd_elfNN_bfd_print_private_bfd_data \
161 _bfd_elf_print_private_bfd_data
163 #ifndef bfd_elfNN_bfd_merge_private_bfd_data
164 #define bfd_elfNN_bfd_merge_private_bfd_data \
165 ((bfd_boolean (*) (bfd *, bfd *)) bfd_true)
167 #ifndef bfd_elfNN_bfd_set_private_flags
168 #define bfd_elfNN_bfd_set_private_flags \
169 ((bfd_boolean (*) (bfd *, flagword)) bfd_true)
171 #ifndef bfd_elfNN_bfd_is_local_label_name
172 #define bfd_elfNN_bfd_is_local_label_name _bfd_elf_is_local_label_name
175 #ifndef bfd_elfNN_get_dynamic_reloc_upper_bound
176 #define bfd_elfNN_get_dynamic_reloc_upper_bound \
177 _bfd_elf_get_dynamic_reloc_upper_bound
179 #ifndef bfd_elfNN_canonicalize_dynamic_reloc
180 #define bfd_elfNN_canonicalize_dynamic_reloc \
181 _bfd_elf_canonicalize_dynamic_reloc
184 #ifndef bfd_elfNN_bfd_link_hash_table_free
185 #define bfd_elfNN_bfd_link_hash_table_free _bfd_generic_link_hash_table_free
188 #ifdef elf_backend_relocate_section
189 #ifndef bfd_elfNN_bfd_link_hash_table_create
190 #define bfd_elfNN_bfd_link_hash_table_create _bfd_elf_link_hash_table_create
192 #ifndef bfd_elfNN_bfd_link_add_symbols
193 #define bfd_elfNN_bfd_link_add_symbols bfd_elf_link_add_symbols
195 #else /* ! defined (elf_backend_relocate_section) */
196 /* If no backend relocate_section routine, use the generic linker.
197 Note - this will prevent the port from being able to use some of
198 the other features of the ELF linker, because the generic hash structure
199 does not have the fields needed by the ELF linker. In particular it
200 means that linking directly to S-records will not work. */
201 #ifndef bfd_elfNN_bfd_link_hash_table_create
202 #define bfd_elfNN_bfd_link_hash_table_create \
203 _bfd_generic_link_hash_table_create
205 #ifndef bfd_elfNN_bfd_link_add_symbols
206 #define bfd_elfNN_bfd_link_add_symbols _bfd_generic_link_add_symbols
208 #ifndef bfd_elfNN_bfd_final_link
209 #define bfd_elfNN_bfd_final_link _bfd_generic_final_link
211 #endif /* ! defined (elf_backend_relocate_section) */
213 #ifndef bfd_elfNN_bfd_link_just_syms
214 #define bfd_elfNN_bfd_link_just_syms _bfd_elf_link_just_syms
217 #ifndef bfd_elfNN_bfd_link_split_section
218 #define bfd_elfNN_bfd_link_split_section _bfd_generic_link_split_section
221 #ifndef bfd_elfNN_archive_p
222 #define bfd_elfNN_archive_p bfd_generic_archive_p
225 #ifndef bfd_elfNN_write_archive_contents
226 #define bfd_elfNN_write_archive_contents _bfd_write_archive_contents
229 #ifndef bfd_elfNN_mkobject
230 #define bfd_elfNN_mkobject bfd_elf_mkobject
233 #ifndef bfd_elfNN_mkcorefile
234 #define bfd_elfNN_mkcorefile bfd_elf_mkcorefile
237 #ifndef bfd_elfNN_mkarchive
238 #define bfd_elfNN_mkarchive _bfd_generic_mkarchive
241 #ifndef elf_symbol_leading_char
242 #define elf_symbol_leading_char 0
245 #ifndef elf_info_to_howto
246 #define elf_info_to_howto 0
249 #ifndef elf_info_to_howto_rel
250 #define elf_info_to_howto_rel 0
253 #ifndef ELF_MAXPAGESIZE
254 #error ELF_MAXPAGESIZE is not defined
255 #define ELF_MAXPAGESIZE 1
258 #ifndef elf_backend_collect
259 #define elf_backend_collect FALSE
261 #ifndef elf_backend_type_change_ok
262 #define elf_backend_type_change_ok FALSE
265 #ifndef elf_backend_sym_is_global
266 #define elf_backend_sym_is_global 0
268 #ifndef elf_backend_object_p
269 #define elf_backend_object_p 0
271 #ifndef elf_backend_symbol_processing
272 #define elf_backend_symbol_processing 0
274 #ifndef elf_backend_symbol_table_processing
275 #define elf_backend_symbol_table_processing 0
277 #ifndef elf_backend_get_symbol_type
278 #define elf_backend_get_symbol_type 0
280 #ifndef elf_backend_name_local_section_symbols
281 #define elf_backend_name_local_section_symbols 0
283 #ifndef elf_backend_section_processing
284 #define elf_backend_section_processing 0
286 #ifndef elf_backend_section_from_shdr
287 #define elf_backend_section_from_shdr 0
289 #ifndef elf_backend_section_flags
290 #define elf_backend_section_flags 0
292 #ifndef elf_backend_section_from_phdr
293 #define elf_backend_section_from_phdr 0
295 #ifndef elf_backend_fake_sections
296 #define elf_backend_fake_sections 0
298 #ifndef elf_backend_section_from_bfd_section
299 #define elf_backend_section_from_bfd_section 0
301 #ifndef elf_backend_add_symbol_hook
302 #define elf_backend_add_symbol_hook 0
304 #ifndef elf_backend_link_output_symbol_hook
305 #define elf_backend_link_output_symbol_hook 0
307 #ifndef elf_backend_create_dynamic_sections
308 #define elf_backend_create_dynamic_sections 0
310 #ifndef elf_backend_check_relocs
311 #define elf_backend_check_relocs 0
313 #ifndef elf_backend_adjust_dynamic_symbol
314 #define elf_backend_adjust_dynamic_symbol 0
316 #ifndef elf_backend_always_size_sections
317 #define elf_backend_always_size_sections 0
319 #ifndef elf_backend_size_dynamic_sections
320 #define elf_backend_size_dynamic_sections 0
322 #ifndef elf_backend_relocate_section
323 #define elf_backend_relocate_section 0
325 #ifndef elf_backend_finish_dynamic_symbol
326 #define elf_backend_finish_dynamic_symbol 0
328 #ifndef elf_backend_finish_dynamic_sections
329 #define elf_backend_finish_dynamic_sections 0
331 #ifndef elf_backend_begin_write_processing
332 #define elf_backend_begin_write_processing 0
334 #ifndef elf_backend_final_write_processing
335 #define elf_backend_final_write_processing 0
337 #ifndef elf_backend_additional_program_headers
338 #define elf_backend_additional_program_headers 0
340 #ifndef elf_backend_modify_segment_map
341 #define elf_backend_modify_segment_map 0
343 #ifndef elf_backend_ecoff_debug_swap
344 #define elf_backend_ecoff_debug_swap 0
346 #ifndef elf_backend_bfd_from_remote_memory
347 #define elf_backend_bfd_from_remote_memory _bfd_elfNN_bfd_from_remote_memory
349 #ifndef elf_backend_got_header_size
350 #define elf_backend_got_header_size 0
352 #ifndef elf_backend_post_process_headers
353 #define elf_backend_post_process_headers NULL
355 #ifndef elf_backend_print_symbol_all
356 #define elf_backend_print_symbol_all NULL
358 #ifndef elf_backend_output_arch_syms
359 #define elf_backend_output_arch_syms NULL
361 #ifndef elf_backend_copy_indirect_symbol
362 #define elf_backend_copy_indirect_symbol _bfd_elf_link_hash_copy_indirect
364 #ifndef elf_backend_hide_symbol
365 #define elf_backend_hide_symbol _bfd_elf_link_hash_hide_symbol
367 #ifndef elf_backend_merge_symbol_attribute
368 #define elf_backend_merge_symbol_attribute NULL
370 #ifndef elf_backend_emit_relocs
371 #define elf_backend_emit_relocs NULL
373 #ifndef elf_backend_count_relocs
374 #define elf_backend_count_relocs NULL
376 #ifndef elf_backend_grok_prstatus
377 #define elf_backend_grok_prstatus NULL
379 #ifndef elf_backend_grok_psinfo
380 #define elf_backend_grok_psinfo NULL
382 #ifndef elf_backend_sprintf_vma
383 #define elf_backend_sprintf_vma _bfd_elf_sprintf_vma
385 #ifndef elf_backend_fprintf_vma
386 #define elf_backend_fprintf_vma _bfd_elf_fprintf_vma
388 #ifndef elf_backend_reloc_type_class
389 #define elf_backend_reloc_type_class _bfd_elf_reloc_type_class
391 #ifndef elf_backend_discard_info
392 #define elf_backend_discard_info NULL
394 #ifndef elf_backend_ignore_discarded_relocs
395 #define elf_backend_ignore_discarded_relocs NULL
397 #ifndef elf_backend_can_make_relative_eh_frame
398 #define elf_backend_can_make_relative_eh_frame _bfd_elf_can_make_relative
400 #ifndef elf_backend_can_make_lsda_relative_eh_frame
401 #define elf_backend_can_make_lsda_relative_eh_frame _bfd_elf_can_make_relative
403 #ifndef elf_backend_encode_eh_address
404 #define elf_backend_encode_eh_address _bfd_elf_encode_eh_address
406 #ifndef elf_backend_write_section
407 #define elf_backend_write_section NULL
409 #ifndef elf_backend_mips_irix_compat
410 #define elf_backend_mips_irix_compat NULL
412 #ifndef elf_backend_mips_rtype_to_howto
413 #define elf_backend_mips_rtype_to_howto NULL
416 /* Previously, backends could only use SHT_REL or SHT_RELA relocation
417 sections, but not both. They defined USE_REL to indicate SHT_REL
418 sections, and left it undefined to indicated SHT_RELA sections.
419 For backwards compatibility, we still support this usage. */
424 /* Use these in new code. */
425 #ifndef elf_backend_may_use_rel_p
426 #define elf_backend_may_use_rel_p USE_REL
428 #ifndef elf_backend_may_use_rela_p
429 #define elf_backend_may_use_rela_p !USE_REL
431 #ifndef elf_backend_default_use_rela_p
432 #define elf_backend_default_use_rela_p !USE_REL
435 #ifndef elf_backend_rela_normal
436 #define elf_backend_rela_normal 0
439 #ifndef ELF_MACHINE_ALT1
440 #define ELF_MACHINE_ALT1 0
443 #ifndef ELF_MACHINE_ALT2
444 #define ELF_MACHINE_ALT2 0
447 #ifndef elf_backend_size_info
448 #define elf_backend_size_info _bfd_elfNN_size_info
451 #ifndef elf_backend_special_sections
452 #define elf_backend_special_sections NULL
455 #ifndef elf_backend_sign_extend_vma
456 #define elf_backend_sign_extend_vma 0
459 extern const struct elf_size_info _bfd_elfNN_size_info
;
461 #ifndef INCLUDED_TARGET_FILE
462 static const struct elf_backend_data elfNN_bed
=
465 ELF_MACHINE_CODE
, /* elf_machine_code */
466 ELF_MAXPAGESIZE
, /* maxpagesize */
468 elf_info_to_howto_rel
,
469 elf_backend_sym_is_global
,
470 elf_backend_object_p
,
471 elf_backend_symbol_processing
,
472 elf_backend_symbol_table_processing
,
473 elf_backend_get_symbol_type
,
474 elf_backend_name_local_section_symbols
,
475 elf_backend_section_processing
,
476 elf_backend_section_from_shdr
,
477 elf_backend_section_flags
,
478 elf_backend_section_from_phdr
,
479 elf_backend_fake_sections
,
480 elf_backend_section_from_bfd_section
,
481 elf_backend_add_symbol_hook
,
482 elf_backend_link_output_symbol_hook
,
483 elf_backend_create_dynamic_sections
,
484 elf_backend_check_relocs
,
485 elf_backend_adjust_dynamic_symbol
,
486 elf_backend_always_size_sections
,
487 elf_backend_size_dynamic_sections
,
488 elf_backend_relocate_section
,
489 elf_backend_finish_dynamic_symbol
,
490 elf_backend_finish_dynamic_sections
,
491 elf_backend_begin_write_processing
,
492 elf_backend_final_write_processing
,
493 elf_backend_additional_program_headers
,
494 elf_backend_modify_segment_map
,
495 elf_backend_gc_mark_hook
,
496 elf_backend_gc_sweep_hook
,
497 elf_backend_post_process_headers
,
498 elf_backend_print_symbol_all
,
499 elf_backend_output_arch_syms
,
500 elf_backend_copy_indirect_symbol
,
501 elf_backend_hide_symbol
,
502 elf_backend_merge_symbol_attribute
,
503 elf_backend_emit_relocs
,
504 elf_backend_count_relocs
,
505 elf_backend_grok_prstatus
,
506 elf_backend_grok_psinfo
,
507 elf_backend_sprintf_vma
,
508 elf_backend_fprintf_vma
,
509 elf_backend_reloc_type_class
,
510 elf_backend_discard_info
,
511 elf_backend_ignore_discarded_relocs
,
512 elf_backend_can_make_relative_eh_frame
,
513 elf_backend_can_make_lsda_relative_eh_frame
,
514 elf_backend_encode_eh_address
,
515 elf_backend_write_section
,
516 elf_backend_mips_irix_compat
,
517 elf_backend_mips_rtype_to_howto
,
518 elf_backend_ecoff_debug_swap
,
519 elf_backend_bfd_from_remote_memory
,
522 &elf_backend_size_info
,
523 elf_backend_special_sections
,
524 elf_backend_got_symbol_offset
,
525 elf_backend_got_header_size
,
527 elf_backend_type_change_ok
,
528 elf_backend_may_use_rel_p
,
529 elf_backend_may_use_rela_p
,
530 elf_backend_default_use_rela_p
,
531 elf_backend_rela_normal
,
532 elf_backend_sign_extend_vma
,
533 elf_backend_want_got_plt
,
534 elf_backend_plt_readonly
,
535 elf_backend_want_plt_sym
,
536 elf_backend_plt_not_loaded
,
537 elf_backend_plt_alignment
,
538 elf_backend_can_gc_sections
,
539 elf_backend_can_refcount
,
540 elf_backend_want_got_sym
,
541 elf_backend_want_dynbss
,
542 elf_backend_want_p_paddr_set_to_zero
546 /* Forward declaration for use when initialising alternative_target field. */
547 #ifdef TARGET_LITTLE_SYM
548 extern const bfd_target TARGET_LITTLE_SYM
;
551 #ifdef TARGET_BIG_SYM
552 const bfd_target TARGET_BIG_SYM
=
554 /* name: identify kind of target */
557 /* flavour: general indication about file */
558 bfd_target_elf_flavour
,
560 /* byteorder: data is big endian */
563 /* header_byteorder: header is also big endian */
566 /* object_flags: mask of all file flags */
567 (HAS_RELOC
| EXEC_P
| HAS_LINENO
| HAS_DEBUG
| HAS_SYMS
| HAS_LOCALS
568 | DYNAMIC
| WP_TEXT
| D_PAGED
),
570 /* section_flags: mask of all section flags */
571 (SEC_HAS_CONTENTS
| SEC_ALLOC
| SEC_LOAD
| SEC_RELOC
| SEC_READONLY
572 | SEC_CODE
| SEC_DATA
| SEC_DEBUGGING
| SEC_EXCLUDE
| SEC_SORT_ENTRIES
573 | SEC_ARCH_BIT_0
| SEC_SMALL_DATA
| SEC_MERGE
| SEC_STRINGS
| SEC_GROUP
),
575 /* leading_symbol_char: is the first char of a user symbol
576 predictable, and if so what is it */
577 elf_symbol_leading_char
,
579 /* ar_pad_char: pad character for filenames within an archive header
580 FIXME: this really has nothing to do with ELF, this is a characteristic
581 of the archiver and/or os and should be independently tunable */
584 /* ar_max_namelen: maximum number of characters in an archive header
585 FIXME: this really has nothing to do with ELF, this is a characteristic
586 of the archiver and should be independently tunable. The System V ABI,
587 Chapter 7 (Formats & Protocols), Archive section sets this as 15. */
590 /* Routines to byte-swap various sized integers from the data sections */
591 bfd_getb64
, bfd_getb_signed_64
, bfd_putb64
,
592 bfd_getb32
, bfd_getb_signed_32
, bfd_putb32
,
593 bfd_getb16
, bfd_getb_signed_16
, bfd_putb16
,
595 /* Routines to byte-swap various sized integers from the file headers */
596 bfd_getb64
, bfd_getb_signed_64
, bfd_putb64
,
597 bfd_getb32
, bfd_getb_signed_32
, bfd_putb32
,
598 bfd_getb16
, bfd_getb_signed_16
, bfd_putb16
,
600 /* bfd_check_format: check the format of a file being read */
601 { _bfd_dummy_target
, /* unknown format */
602 bfd_elfNN_object_p
, /* assembler/linker output (object file) */
603 bfd_elfNN_archive_p
, /* an archive */
604 bfd_elfNN_core_file_p
/* a core file */
607 /* bfd_set_format: set the format of a file being written */
614 /* bfd_write_contents: write cached information into a file being written */
616 bfd_elfNN_write_object_contents
,
617 bfd_elfNN_write_archive_contents
,
618 bfd_elfNN_write_corefile_contents
,
621 BFD_JUMP_TABLE_GENERIC (bfd_elfNN
),
622 BFD_JUMP_TABLE_COPY (bfd_elfNN
),
623 BFD_JUMP_TABLE_CORE (bfd_elfNN
),
624 #ifdef bfd_elfNN_archive_functions
625 BFD_JUMP_TABLE_ARCHIVE (bfd_elfNN_archive
),
627 BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_coff
),
629 BFD_JUMP_TABLE_SYMBOLS (bfd_elfNN
),
630 BFD_JUMP_TABLE_RELOCS (bfd_elfNN
),
631 BFD_JUMP_TABLE_WRITE (bfd_elfNN
),
632 BFD_JUMP_TABLE_LINK (bfd_elfNN
),
633 BFD_JUMP_TABLE_DYNAMIC (bfd_elfNN
),
635 /* Alternative endian target. */
636 #ifdef TARGET_LITTLE_SYM
647 #ifdef TARGET_LITTLE_SYM
648 const bfd_target TARGET_LITTLE_SYM
=
650 /* name: identify kind of target */
653 /* flavour: general indication about file */
654 bfd_target_elf_flavour
,
656 /* byteorder: data is little endian */
659 /* header_byteorder: header is also little endian */
662 /* object_flags: mask of all file flags */
663 (HAS_RELOC
| EXEC_P
| HAS_LINENO
| HAS_DEBUG
| HAS_SYMS
| HAS_LOCALS
664 | DYNAMIC
| WP_TEXT
| D_PAGED
),
666 /* section_flags: mask of all section flags */
667 (SEC_HAS_CONTENTS
| SEC_ALLOC
| SEC_LOAD
| SEC_RELOC
| SEC_READONLY
668 | SEC_CODE
| SEC_DATA
| SEC_DEBUGGING
| SEC_EXCLUDE
| SEC_SORT_ENTRIES
669 | SEC_ARCH_BIT_0
| SEC_SMALL_DATA
| SEC_MERGE
| SEC_STRINGS
| SEC_GROUP
),
671 /* leading_symbol_char: is the first char of a user symbol
672 predictable, and if so what is it */
673 elf_symbol_leading_char
,
675 /* ar_pad_char: pad character for filenames within an archive header
676 FIXME: this really has nothing to do with ELF, this is a characteristic
677 of the archiver and/or os and should be independently tunable */
680 /* ar_max_namelen: maximum number of characters in an archive header
681 FIXME: this really has nothing to do with ELF, this is a characteristic
682 of the archiver and should be independently tunable. The System V ABI,
683 Chapter 7 (Formats & Protocols), Archive section sets this as 15. */
686 /* Routines to byte-swap various sized integers from the data sections */
687 bfd_getl64
, bfd_getl_signed_64
, bfd_putl64
,
688 bfd_getl32
, bfd_getl_signed_32
, bfd_putl32
,
689 bfd_getl16
, bfd_getl_signed_16
, bfd_putl16
,
691 /* Routines to byte-swap various sized integers from the file headers */
692 bfd_getl64
, bfd_getl_signed_64
, bfd_putl64
,
693 bfd_getl32
, bfd_getl_signed_32
, bfd_putl32
,
694 bfd_getl16
, bfd_getl_signed_16
, bfd_putl16
,
696 /* bfd_check_format: check the format of a file being read */
697 { _bfd_dummy_target
, /* unknown format */
698 bfd_elfNN_object_p
, /* assembler/linker output (object file) */
699 bfd_elfNN_archive_p
, /* an archive */
700 bfd_elfNN_core_file_p
/* a core file */
703 /* bfd_set_format: set the format of a file being written */
710 /* bfd_write_contents: write cached information into a file being written */
712 bfd_elfNN_write_object_contents
,
713 bfd_elfNN_write_archive_contents
,
714 bfd_elfNN_write_corefile_contents
,
717 BFD_JUMP_TABLE_GENERIC (bfd_elfNN
),
718 BFD_JUMP_TABLE_COPY (bfd_elfNN
),
719 BFD_JUMP_TABLE_CORE (bfd_elfNN
),
720 #ifdef bfd_elfNN_archive_functions
721 BFD_JUMP_TABLE_ARCHIVE (bfd_elfNN_archive
),
723 BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_coff
),
725 BFD_JUMP_TABLE_SYMBOLS (bfd_elfNN
),
726 BFD_JUMP_TABLE_RELOCS (bfd_elfNN
),
727 BFD_JUMP_TABLE_WRITE (bfd_elfNN
),
728 BFD_JUMP_TABLE_LINK (bfd_elfNN
),
729 BFD_JUMP_TABLE_DYNAMIC (bfd_elfNN
),
731 /* Alternative endian target. */
732 #ifdef TARGET_BIG_SYM