elfxx-target.h revision 1.1.1.9
1/* Target definitions for NN-bit ELF
2   Copyright (C) 1993-2022 Free Software Foundation, Inc.
3
4   This file is part of BFD, the Binary File Descriptor library.
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 3 of the License, or
9   (at your option) any later version.
10
11   This program is distributed in the hope that it will be useful,
12   but WITHOUT ANY WARRANTY; without even the implied warranty of
13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   GNU General Public License for more details.
15
16   You should have received a copy of the GNU General Public License
17   along with this program; if not, write to the Free Software
18   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
19   MA 02110-1301, USA.  */
20
21
22/* This structure contains everything that BFD knows about a target.
23   It includes things like its byte order, name, what routines to call
24   to do various operations, etc.  Every BFD points to a target structure
25   with its "xvec" member.
26
27   There are two such structures here:  one for big-endian machines and
28   one for little-endian machines.   */
29
30#ifndef bfd_elfNN_close_and_cleanup
31#define	bfd_elfNN_close_and_cleanup _bfd_elf_close_and_cleanup
32#endif
33#ifndef bfd_elfNN_bfd_free_cached_info
34#define bfd_elfNN_bfd_free_cached_info _bfd_free_cached_info
35#endif
36#ifndef bfd_elfNN_get_section_contents
37#define bfd_elfNN_get_section_contents _bfd_generic_get_section_contents
38#endif
39
40#define bfd_elfNN_canonicalize_dynamic_symtab \
41  _bfd_elf_canonicalize_dynamic_symtab
42#ifndef bfd_elfNN_get_synthetic_symtab
43#define bfd_elfNN_get_synthetic_symtab \
44  _bfd_elf_get_synthetic_symtab
45#endif
46#ifndef bfd_elfNN_canonicalize_reloc
47#define bfd_elfNN_canonicalize_reloc	_bfd_elf_canonicalize_reloc
48#endif
49#ifndef bfd_elfNN_set_reloc
50#define bfd_elfNN_set_reloc		_bfd_generic_set_reloc
51#endif
52#ifndef bfd_elfNN_find_nearest_line
53#define bfd_elfNN_find_nearest_line	_bfd_elf_find_nearest_line
54#endif
55#ifndef bfd_elfNN_find_line
56#define bfd_elfNN_find_line		_bfd_elf_find_line
57#endif
58#ifndef bfd_elfNN_find_inliner_info
59#define bfd_elfNN_find_inliner_info	_bfd_elf_find_inliner_info
60#endif
61#define bfd_elfNN_read_minisymbols	_bfd_elf_read_minisymbols
62#define bfd_elfNN_minisymbol_to_symbol	_bfd_elf_minisymbol_to_symbol
63#define bfd_elfNN_get_dynamic_symtab_upper_bound \
64  _bfd_elf_get_dynamic_symtab_upper_bound
65#define bfd_elfNN_get_lineno		_bfd_elf_get_lineno
66#ifndef bfd_elfNN_get_reloc_upper_bound
67#define bfd_elfNN_get_reloc_upper_bound _bfd_elf_get_reloc_upper_bound
68#endif
69#ifndef bfd_elfNN_get_symbol_info
70#define bfd_elfNN_get_symbol_info	_bfd_elf_get_symbol_info
71#endif
72#ifndef bfd_elfNN_get_symbol_version_string
73#define bfd_elfNN_get_symbol_version_string \
74  _bfd_elf_get_symbol_version_string
75#endif
76#define bfd_elfNN_canonicalize_symtab	_bfd_elf_canonicalize_symtab
77#define bfd_elfNN_get_symtab_upper_bound _bfd_elf_get_symtab_upper_bound
78#define bfd_elfNN_make_empty_symbol	_bfd_elf_make_empty_symbol
79#ifndef bfd_elfNN_new_section_hook
80#define bfd_elfNN_new_section_hook	_bfd_elf_new_section_hook
81#endif
82#define bfd_elfNN_set_arch_mach		_bfd_elf_set_arch_mach
83#ifndef bfd_elfNN_set_section_contents
84#define bfd_elfNN_set_section_contents	_bfd_elf_set_section_contents
85#endif
86#define bfd_elfNN_sizeof_headers	_bfd_elf_sizeof_headers
87#define bfd_elfNN_write_object_contents _bfd_elf_write_object_contents
88#define bfd_elfNN_write_corefile_contents _bfd_elf_write_corefile_contents
89
90#define bfd_elfNN_get_section_contents_in_window \
91  _bfd_generic_get_section_contents_in_window
92
93#ifndef elf_backend_can_refcount
94#define elf_backend_can_refcount 0
95#endif
96#ifndef elf_backend_want_got_plt
97#define elf_backend_want_got_plt 0
98#endif
99#ifndef elf_backend_plt_readonly
100#define elf_backend_plt_readonly 0
101#endif
102#ifndef elf_backend_want_plt_sym
103#define elf_backend_want_plt_sym 0
104#endif
105#ifndef elf_backend_plt_not_loaded
106#define elf_backend_plt_not_loaded 0
107#endif
108#ifndef elf_backend_plt_alignment
109#define elf_backend_plt_alignment 2
110#endif
111#ifndef elf_backend_want_dynbss
112#define elf_backend_want_dynbss 1
113#endif
114#ifndef elf_backend_want_dynrelro
115#define elf_backend_want_dynrelro 0
116#endif
117#ifndef elf_backend_want_p_paddr_set_to_zero
118#define elf_backend_want_p_paddr_set_to_zero 0
119#endif
120#ifndef elf_backend_no_page_alias
121#define elf_backend_no_page_alias 0
122#endif
123#ifndef elf_backend_default_execstack
124#define elf_backend_default_execstack 1
125#endif
126#ifndef elf_backend_caches_rawsize
127#define elf_backend_caches_rawsize 0
128#endif
129#ifndef elf_backend_extern_protected_data
130#define elf_backend_extern_protected_data 0
131#endif
132#ifndef elf_backend_always_renumber_dynsyms
133#define elf_backend_always_renumber_dynsyms false
134#endif
135#ifndef elf_backend_linux_prpsinfo32_ugid16
136#define elf_backend_linux_prpsinfo32_ugid16 false
137#endif
138#ifndef elf_backend_linux_prpsinfo64_ugid16
139#define elf_backend_linux_prpsinfo64_ugid16 false
140#endif
141#ifndef elf_backend_stack_align
142#define elf_backend_stack_align 16
143#endif
144#ifndef elf_backend_strtab_flags
145#define elf_backend_strtab_flags 0
146#endif
147
148#define bfd_elfNN_bfd_debug_info_start		_bfd_void_bfd
149#define bfd_elfNN_bfd_debug_info_end		_bfd_void_bfd
150#define bfd_elfNN_bfd_debug_info_accumulate	_bfd_void_bfd_asection
151
152#ifndef bfd_elfNN_bfd_get_relocated_section_contents
153#define bfd_elfNN_bfd_get_relocated_section_contents \
154  bfd_generic_get_relocated_section_contents
155#endif
156
157#ifndef bfd_elfNN_bfd_relax_section
158#define bfd_elfNN_bfd_relax_section bfd_generic_relax_section
159#endif
160
161#ifndef elf_backend_can_gc_sections
162#define elf_backend_can_gc_sections 0
163#endif
164#ifndef elf_backend_can_refcount
165#define elf_backend_can_refcount 0
166#endif
167#ifndef elf_backend_want_got_sym
168#define elf_backend_want_got_sym 1
169#endif
170#ifndef elf_backend_gc_keep
171#define elf_backend_gc_keep		_bfd_elf_gc_keep
172#endif
173#ifndef elf_backend_gc_mark_dynamic_ref
174#define elf_backend_gc_mark_dynamic_ref	bfd_elf_gc_mark_dynamic_ref_symbol
175#endif
176#ifndef elf_backend_gc_mark_hook
177#define elf_backend_gc_mark_hook	_bfd_elf_gc_mark_hook
178#endif
179#ifndef elf_backend_gc_mark_extra_sections
180#define elf_backend_gc_mark_extra_sections _bfd_elf_gc_mark_extra_sections
181#endif
182#ifndef bfd_elfNN_bfd_gc_sections
183#define bfd_elfNN_bfd_gc_sections bfd_elf_gc_sections
184#endif
185
186#ifndef bfd_elfNN_bfd_merge_sections
187#define bfd_elfNN_bfd_merge_sections \
188  _bfd_elf_merge_sections
189#endif
190
191#ifndef bfd_elfNN_bfd_is_group_section
192#define bfd_elfNN_bfd_is_group_section bfd_elf_is_group_section
193#endif
194
195#ifndef bfd_elfNN_bfd_group_name
196#define bfd_elfNN_bfd_group_name bfd_elf_group_name
197#endif
198
199#ifndef bfd_elfNN_bfd_discard_group
200#define bfd_elfNN_bfd_discard_group bfd_generic_discard_group
201#endif
202
203#ifndef bfd_elfNN_section_already_linked
204#define bfd_elfNN_section_already_linked \
205  _bfd_elf_section_already_linked
206#endif
207
208#ifndef bfd_elfNN_bfd_define_common_symbol
209#define bfd_elfNN_bfd_define_common_symbol bfd_generic_define_common_symbol
210#endif
211
212#ifndef bfd_elfNN_bfd_link_hide_symbol
213#define bfd_elfNN_bfd_link_hide_symbol _bfd_elf_link_hide_symbol
214#endif
215
216#ifndef bfd_elfNN_bfd_lookup_section_flags
217#define bfd_elfNN_bfd_lookup_section_flags bfd_elf_lookup_section_flags
218#endif
219
220#ifndef bfd_elfNN_bfd_make_debug_symbol
221#define bfd_elfNN_bfd_make_debug_symbol _bfd_nosymbols_bfd_make_debug_symbol
222#endif
223
224#ifndef bfd_elfNN_bfd_copy_private_symbol_data
225#define bfd_elfNN_bfd_copy_private_symbol_data \
226  _bfd_elf_copy_private_symbol_data
227#endif
228
229#ifndef bfd_elfNN_bfd_copy_private_section_data
230#define bfd_elfNN_bfd_copy_private_section_data \
231  _bfd_elf_copy_private_section_data
232#endif
233#ifndef bfd_elfNN_bfd_copy_private_header_data
234#define bfd_elfNN_bfd_copy_private_header_data \
235  _bfd_elf_copy_private_header_data
236#endif
237#ifndef bfd_elfNN_bfd_copy_private_bfd_data
238#define bfd_elfNN_bfd_copy_private_bfd_data \
239  _bfd_elf_copy_private_bfd_data
240#endif
241#ifndef bfd_elfNN_bfd_print_private_bfd_data
242#define bfd_elfNN_bfd_print_private_bfd_data \
243  _bfd_elf_print_private_bfd_data
244#endif
245#ifndef bfd_elfNN_bfd_merge_private_bfd_data
246#define bfd_elfNN_bfd_merge_private_bfd_data _bfd_bool_bfd_link_true
247#endif
248#ifndef bfd_elfNN_bfd_set_private_flags
249#define bfd_elfNN_bfd_set_private_flags _bfd_bool_bfd_uint_true
250#endif
251#ifndef bfd_elfNN_bfd_is_local_label_name
252#define bfd_elfNN_bfd_is_local_label_name _bfd_elf_is_local_label_name
253#endif
254#ifndef bfd_elfNN_bfd_is_target_special_symbol
255#define bfd_elfNN_bfd_is_target_special_symbol _bfd_bool_bfd_asymbol_false
256#endif
257
258#ifndef bfd_elfNN_get_dynamic_reloc_upper_bound
259#define bfd_elfNN_get_dynamic_reloc_upper_bound \
260  _bfd_elf_get_dynamic_reloc_upper_bound
261#endif
262#ifndef bfd_elfNN_canonicalize_dynamic_reloc
263#define bfd_elfNN_canonicalize_dynamic_reloc \
264  _bfd_elf_canonicalize_dynamic_reloc
265#endif
266
267#ifdef elf_backend_relocate_section
268#ifndef bfd_elfNN_bfd_link_hash_table_create
269#define bfd_elfNN_bfd_link_hash_table_create _bfd_elf_link_hash_table_create
270#endif
271#ifndef bfd_elfNN_bfd_copy_link_hash_symbol_type
272#define bfd_elfNN_bfd_copy_link_hash_symbol_type \
273  _bfd_elf_copy_link_hash_symbol_type
274#endif
275#ifndef bfd_elfNN_bfd_link_add_symbols
276#define bfd_elfNN_bfd_link_add_symbols	bfd_elf_link_add_symbols
277#endif
278#ifndef bfd_elfNN_bfd_define_start_stop
279#define bfd_elfNN_bfd_define_start_stop bfd_elf_define_start_stop
280#endif
281#ifndef bfd_elfNN_bfd_final_link
282#define bfd_elfNN_bfd_final_link	bfd_elf_final_link
283#endif
284#else /* ! defined (elf_backend_relocate_section) */
285/* If no backend relocate_section routine, use the generic linker.
286   Note - this will prevent the port from being able to use some of
287   the other features of the ELF linker, because the generic hash structure
288   does not have the fields needed by the ELF linker.  In particular it
289   means that linking directly to S-records will not work.  */
290#ifndef bfd_elfNN_bfd_link_hash_table_create
291#define bfd_elfNN_bfd_link_hash_table_create \
292  _bfd_generic_link_hash_table_create
293#endif
294#ifndef bfd_elfNN_bfd_copy_link_hash_symbol_type
295#define bfd_elfNN_bfd_copy_link_hash_symbol_type \
296  _bfd_generic_copy_link_hash_symbol_type
297#endif
298#ifndef bfd_elfNN_bfd_link_add_symbols
299#define bfd_elfNN_bfd_link_add_symbols	_bfd_generic_link_add_symbols
300#endif
301#ifndef bfd_elfNN_bfd_define_start_stop
302#define bfd_elfNN_bfd_define_start_stop bfd_generic_define_start_stop
303#endif
304#ifndef bfd_elfNN_bfd_final_link
305#define bfd_elfNN_bfd_final_link	_bfd_generic_final_link
306#endif
307#endif /* ! defined (elf_backend_relocate_section) */
308
309#ifndef bfd_elfNN_bfd_link_just_syms
310#define bfd_elfNN_bfd_link_just_syms	_bfd_elf_link_just_syms
311#endif
312
313#ifndef bfd_elfNN_bfd_link_split_section
314#define bfd_elfNN_bfd_link_split_section _bfd_generic_link_split_section
315#endif
316
317#ifndef bfd_elfNN_bfd_link_check_relocs
318#define bfd_elfNN_bfd_link_check_relocs  _bfd_elf_link_check_relocs
319#endif
320
321#ifndef bfd_elfNN_archive_p
322#define bfd_elfNN_archive_p bfd_generic_archive_p
323#endif
324
325#ifndef bfd_elfNN_write_archive_contents
326#define bfd_elfNN_write_archive_contents _bfd_write_archive_contents
327#endif
328
329#ifndef bfd_elfNN_mkobject
330#define bfd_elfNN_mkobject bfd_elf_make_object
331#endif
332
333#ifndef bfd_elfNN_mkcorefile
334#define bfd_elfNN_mkcorefile bfd_elf_mkcorefile
335#endif
336
337#ifndef bfd_elfNN_mkarchive
338#define bfd_elfNN_mkarchive _bfd_generic_mkarchive
339#endif
340
341#ifndef bfd_elfNN_print_symbol
342#define bfd_elfNN_print_symbol bfd_elf_print_symbol
343#endif
344
345#ifndef elf_symbol_leading_char
346#define elf_symbol_leading_char 0
347#endif
348
349#ifndef elf_info_to_howto
350#define elf_info_to_howto NULL
351#endif
352
353#ifndef elf_info_to_howto_rel
354#define elf_info_to_howto_rel NULL
355#endif
356
357#ifndef elf_backend_arch_data
358#define elf_backend_arch_data NULL
359#endif
360
361#ifndef ELF_TARGET_ID
362#define ELF_TARGET_ID	GENERIC_ELF_DATA
363#endif
364
365#ifndef ELF_TARGET_OS
366#define ELF_TARGET_OS	is_normal
367#endif
368
369#ifndef ELF_OSABI
370#define ELF_OSABI ELFOSABI_NONE
371#endif
372
373#ifndef ELF_MAXPAGESIZE
374# error ELF_MAXPAGESIZE is not defined
375#define ELF_MAXPAGESIZE 1
376#endif
377
378#ifndef ELF_COMMONPAGESIZE
379#define ELF_COMMONPAGESIZE ELF_MAXPAGESIZE
380#endif
381
382#ifndef ELF_MINPAGESIZE
383#define ELF_MINPAGESIZE ELF_COMMONPAGESIZE
384#endif
385
386#if ELF_COMMONPAGESIZE > ELF_MAXPAGESIZE
387# error ELF_COMMONPAGESIZE > ELF_MAXPAGESIZE
388#endif
389#if ELF_MINPAGESIZE > ELF_COMMONPAGESIZE
390# error ELF_MINPAGESIZE > ELF_COMMONPAGESIZE
391#endif
392
393#ifndef ELF_P_ALIGN
394#define ELF_P_ALIGN 0
395#endif
396
397#ifndef ELF_DYNAMIC_SEC_FLAGS
398/* Note that we set the SEC_IN_MEMORY flag for these sections.  */
399#define ELF_DYNAMIC_SEC_FLAGS			\
400  (SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS	\
401   | SEC_IN_MEMORY | SEC_LINKER_CREATED)
402#endif
403
404#ifndef elf_backend_collect
405#define elf_backend_collect false
406#endif
407#ifndef elf_backend_type_change_ok
408#define elf_backend_type_change_ok false
409#endif
410
411#ifndef elf_backend_sym_is_global
412#define elf_backend_sym_is_global	0
413#endif
414#ifndef elf_backend_object_p
415#define elf_backend_object_p		0
416#endif
417#ifndef elf_backend_symbol_processing
418#define elf_backend_symbol_processing	0
419#endif
420#ifndef elf_backend_symbol_table_processing
421#define elf_backend_symbol_table_processing	0
422#endif
423#ifndef elf_backend_get_symbol_type
424#define elf_backend_get_symbol_type 0
425#endif
426#ifndef elf_backend_archive_symbol_lookup
427#define elf_backend_archive_symbol_lookup _bfd_elf_archive_symbol_lookup
428#endif
429#ifndef elf_backend_name_local_section_symbols
430#define elf_backend_name_local_section_symbols	0
431#endif
432#ifndef elf_backend_section_processing
433#define elf_backend_section_processing	0
434#endif
435#ifndef elf_backend_section_from_shdr
436#define elf_backend_section_from_shdr	_bfd_elf_make_section_from_shdr
437#endif
438#ifndef elf_backend_section_flags
439#define elf_backend_section_flags	0
440#endif
441#ifndef elf_backend_get_sec_type_attr
442#define elf_backend_get_sec_type_attr	_bfd_elf_get_sec_type_attr
443#endif
444#ifndef elf_backend_section_from_phdr
445#define elf_backend_section_from_phdr	_bfd_elf_make_section_from_phdr
446#endif
447#ifndef elf_backend_fake_sections
448#define elf_backend_fake_sections	0
449#endif
450#ifndef elf_backend_section_from_bfd_section
451#define elf_backend_section_from_bfd_section	0
452#endif
453#ifndef elf_backend_add_symbol_hook
454#define elf_backend_add_symbol_hook	0
455#endif
456#ifndef elf_backend_link_output_symbol_hook
457#define elf_backend_link_output_symbol_hook 0
458#endif
459#ifndef elf_backend_create_dynamic_sections
460#define elf_backend_create_dynamic_sections 0
461#endif
462#ifndef elf_backend_omit_section_dynsym
463#define elf_backend_omit_section_dynsym _bfd_elf_omit_section_dynsym_default
464#endif
465#ifndef elf_backend_relocs_compatible
466#define elf_backend_relocs_compatible _bfd_elf_default_relocs_compatible
467#endif
468#ifndef elf_backend_check_relocs
469#define elf_backend_check_relocs	0
470#endif
471#ifndef elf_backend_size_relative_relocs
472#define elf_backend_size_relative_relocs 0
473#endif
474#ifndef elf_backend_finish_relative_relocs
475#define elf_backend_finish_relative_relocs 0
476#endif
477#ifndef elf_backend_check_directives
478#define elf_backend_check_directives	0
479#endif
480#ifndef elf_backend_notice_as_needed
481#define elf_backend_notice_as_needed	_bfd_elf_notice_as_needed
482#endif
483#ifndef elf_backend_adjust_dynamic_symbol
484#define elf_backend_adjust_dynamic_symbol 0
485#endif
486#ifndef elf_backend_always_size_sections
487#define elf_backend_always_size_sections 0
488#endif
489#ifndef elf_backend_size_dynamic_sections
490#define elf_backend_size_dynamic_sections 0
491#endif
492#ifndef elf_backend_strip_zero_sized_dynamic_sections
493#define elf_backend_strip_zero_sized_dynamic_sections 0
494#endif
495#ifndef elf_backend_init_index_section
496#define elf_backend_init_index_section _bfd_void_bfd_link
497#endif
498#ifndef elf_backend_relocate_section
499#define elf_backend_relocate_section	0
500#endif
501#ifndef elf_backend_finish_dynamic_symbol
502#define elf_backend_finish_dynamic_symbol	0
503#endif
504#ifndef elf_backend_finish_dynamic_sections
505#define elf_backend_finish_dynamic_sections	0
506#endif
507#ifndef elf_backend_begin_write_processing
508#define elf_backend_begin_write_processing	0
509#endif
510#ifndef elf_backend_final_write_processing
511#define elf_backend_final_write_processing	_bfd_elf_final_write_processing
512#endif
513#ifndef elf_backend_additional_program_headers
514#define elf_backend_additional_program_headers	0
515#endif
516#ifndef elf_backend_modify_segment_map
517#define elf_backend_modify_segment_map	0
518#endif
519#ifndef elf_backend_modify_headers
520#define elf_backend_modify_headers		_bfd_elf_modify_headers
521#endif
522#ifndef elf_backend_allow_non_load_phdr
523#define elf_backend_allow_non_load_phdr	0
524#endif
525#ifndef elf_backend_ecoff_debug_swap
526#define elf_backend_ecoff_debug_swap	0
527#endif
528#ifndef elf_backend_bfd_from_remote_memory
529#define elf_backend_bfd_from_remote_memory _bfd_elfNN_bfd_from_remote_memory
530#endif
531#ifndef elf_backend_core_find_build_id
532#define elf_backend_core_find_build_id _bfd_elfNN_core_find_build_id
533#endif
534#ifndef elf_backend_got_header_size
535#define elf_backend_got_header_size	0
536#endif
537#ifndef elf_backend_got_elt_size
538#define elf_backend_got_elt_size _bfd_elf_default_got_elt_size
539#endif
540#ifndef elf_backend_obj_attrs_vendor
541#define elf_backend_obj_attrs_vendor		NULL
542#endif
543#ifndef elf_backend_obj_attrs_section
544#define elf_backend_obj_attrs_section		NULL
545#endif
546#ifndef elf_backend_obj_attrs_arg_type
547#define elf_backend_obj_attrs_arg_type		NULL
548#endif
549#ifndef elf_backend_obj_attrs_section_type
550#define elf_backend_obj_attrs_section_type		SHT_GNU_ATTRIBUTES
551#endif
552#ifndef elf_backend_obj_attrs_order
553#define elf_backend_obj_attrs_order		NULL
554#endif
555#ifndef elf_backend_obj_attrs_handle_unknown
556#define elf_backend_obj_attrs_handle_unknown	NULL
557#endif
558#ifndef elf_backend_parse_gnu_properties
559#define elf_backend_parse_gnu_properties	NULL
560#endif
561#ifndef elf_backend_merge_gnu_properties
562#define elf_backend_merge_gnu_properties	NULL
563#endif
564#ifndef elf_backend_setup_gnu_properties
565#define elf_backend_setup_gnu_properties	_bfd_elf_link_setup_gnu_properties
566#endif
567#ifndef elf_backend_fixup_gnu_properties
568#define elf_backend_fixup_gnu_properties	NULL
569#endif
570#ifndef elf_backend_static_tls_alignment
571#define elf_backend_static_tls_alignment	1
572#endif
573#ifndef elf_backend_init_file_header
574#define elf_backend_init_file_header		_bfd_elf_init_file_header
575#endif
576#ifndef elf_backend_print_symbol_all
577#define elf_backend_print_symbol_all		NULL
578#endif
579#ifndef elf_backend_output_arch_local_syms
580#define elf_backend_output_arch_local_syms	NULL
581#endif
582#ifndef elf_backend_output_arch_syms
583#define elf_backend_output_arch_syms		NULL
584#endif
585#ifndef elf_backend_filter_implib_symbols
586#define elf_backend_filter_implib_symbols	NULL
587#endif
588#ifndef elf_backend_copy_indirect_symbol
589#define elf_backend_copy_indirect_symbol	_bfd_elf_link_hash_copy_indirect
590#endif
591#ifndef elf_backend_hide_symbol
592#define elf_backend_hide_symbol			_bfd_elf_link_hash_hide_symbol
593#endif
594#ifndef elf_backend_fixup_symbol
595#define elf_backend_fixup_symbol		NULL
596#endif
597#ifndef elf_backend_merge_symbol_attribute
598#define elf_backend_merge_symbol_attribute	NULL
599#endif
600#ifndef elf_backend_get_target_dtag
601#define elf_backend_get_target_dtag		NULL
602#endif
603#ifndef elf_backend_ignore_undef_symbol
604#define elf_backend_ignore_undef_symbol		NULL
605#endif
606#ifndef elf_backend_emit_relocs
607#define elf_backend_emit_relocs			_bfd_elf_link_output_relocs
608#endif
609#ifndef elf_backend_update_relocs
610#define elf_backend_update_relocs		NULL
611#endif
612#ifndef elf_backend_count_relocs
613#define elf_backend_count_relocs		NULL
614#endif
615#ifndef elf_backend_count_additional_relocs
616#define elf_backend_count_additional_relocs	NULL
617#endif
618#ifndef elf_backend_sort_relocs_p
619#define elf_backend_sort_relocs_p		NULL
620#endif
621#ifndef elf_backend_grok_prstatus
622#define elf_backend_grok_prstatus		NULL
623#endif
624#ifndef elf_backend_grok_psinfo
625#define elf_backend_grok_psinfo			NULL
626#endif
627#ifndef elf_backend_grok_freebsd_prstatus
628#define elf_backend_grok_freebsd_prstatus	NULL
629#endif
630#ifndef elf_backend_write_core_note
631#define elf_backend_write_core_note		NULL
632#endif
633#ifndef elf_backend_lookup_section_flags_hook
634#define elf_backend_lookup_section_flags_hook	NULL
635#endif
636#ifndef elf_backend_reloc_type_class
637#define elf_backend_reloc_type_class		_bfd_elf_reloc_type_class
638#endif
639#ifndef elf_backend_discard_info
640#define elf_backend_discard_info		NULL
641#endif
642#ifndef elf_backend_ignore_discarded_relocs
643#define elf_backend_ignore_discarded_relocs	NULL
644#endif
645#ifndef elf_backend_action_discarded
646#define elf_backend_action_discarded _bfd_elf_default_action_discarded
647#endif
648#ifndef elf_backend_eh_frame_address_size
649#define elf_backend_eh_frame_address_size _bfd_elf_eh_frame_address_size
650#endif
651#ifndef elf_backend_can_make_relative_eh_frame
652#define elf_backend_can_make_relative_eh_frame	_bfd_elf_can_make_relative
653#endif
654#ifndef elf_backend_can_make_lsda_relative_eh_frame
655#define elf_backend_can_make_lsda_relative_eh_frame	_bfd_elf_can_make_relative
656#endif
657#ifndef elf_backend_encode_eh_address
658#define elf_backend_encode_eh_address		_bfd_elf_encode_eh_address
659#endif
660#ifndef elf_backend_write_section
661#define elf_backend_write_section		NULL
662#endif
663#ifndef elf_backend_elfsym_local_is_section
664#define elf_backend_elfsym_local_is_section	NULL
665#endif
666#ifndef elf_backend_mips_irix_compat
667#define elf_backend_mips_irix_compat		NULL
668#endif
669#ifndef elf_backend_mips_rtype_to_howto
670#define elf_backend_mips_rtype_to_howto		NULL
671#endif
672
673/* Previously, backends could only use SHT_REL or SHT_RELA relocation
674   sections, but not both.  They defined USE_REL to indicate SHT_REL
675   sections, and left it undefined to indicated SHT_RELA sections.
676   For backwards compatibility, we still support this usage.  */
677#ifndef USE_REL
678#define USE_REL 0
679#endif
680
681/* Use these in new code.  */
682#ifndef elf_backend_may_use_rel_p
683#define elf_backend_may_use_rel_p USE_REL
684#endif
685#ifndef elf_backend_may_use_rela_p
686#define elf_backend_may_use_rela_p !USE_REL
687#endif
688#ifndef elf_backend_default_use_rela_p
689#define elf_backend_default_use_rela_p !USE_REL
690#endif
691#ifndef elf_backend_rela_plts_and_copies_p
692#define elf_backend_rela_plts_and_copies_p elf_backend_default_use_rela_p
693#endif
694
695#ifndef elf_backend_rela_normal
696#define elf_backend_rela_normal 0
697#endif
698
699#ifndef elf_backend_dtrel_excludes_plt
700#define elf_backend_dtrel_excludes_plt 0
701#endif
702
703#ifndef elf_backend_plt_sym_val
704#define elf_backend_plt_sym_val NULL
705#endif
706#ifndef elf_backend_relplt_name
707#define elf_backend_relplt_name NULL
708#endif
709
710#ifndef ELF_MACHINE_ALT1
711#define ELF_MACHINE_ALT1 0
712#endif
713
714#ifndef ELF_MACHINE_ALT2
715#define ELF_MACHINE_ALT2 0
716#endif
717
718#ifndef elf_backend_size_info
719#define elf_backend_size_info _bfd_elfNN_size_info
720#endif
721
722#ifndef elf_backend_special_sections
723#define elf_backend_special_sections NULL
724#endif
725
726#ifndef elf_backend_sign_extend_vma
727#define elf_backend_sign_extend_vma 0
728#endif
729
730#ifndef elf_backend_link_order_error_handler
731#define elf_backend_link_order_error_handler _bfd_error_handler
732#endif
733
734#ifndef elf_backend_common_definition
735#define elf_backend_common_definition _bfd_elf_common_definition
736#endif
737
738#ifndef elf_backend_common_section_index
739#define elf_backend_common_section_index _bfd_elf_common_section_index
740#endif
741
742#ifndef elf_backend_common_section
743#define elf_backend_common_section _bfd_elf_common_section
744#endif
745
746#ifndef elf_backend_merge_symbol
747#define elf_backend_merge_symbol NULL
748#endif
749
750#ifndef elf_backend_hash_symbol
751#define elf_backend_hash_symbol _bfd_elf_hash_symbol
752#endif
753
754#ifndef elf_backend_record_xhash_symbol
755#define elf_backend_record_xhash_symbol NULL
756#endif
757
758#ifndef elf_backend_is_function_type
759#define elf_backend_is_function_type _bfd_elf_is_function_type
760#endif
761
762#ifndef elf_backend_maybe_function_sym
763#define elf_backend_maybe_function_sym _bfd_elf_maybe_function_sym
764#endif
765
766#ifndef elf_backend_get_reloc_section
767#define elf_backend_get_reloc_section _bfd_elf_plt_get_reloc_section
768#endif
769
770#ifndef elf_backend_copy_special_section_fields
771#define elf_backend_copy_special_section_fields _bfd_elf_copy_special_section_fields
772#endif
773
774#ifndef elf_backend_compact_eh_encoding
775#define elf_backend_compact_eh_encoding NULL
776#endif
777
778#ifndef elf_backend_cant_unwind_opcode
779#define elf_backend_cant_unwind_opcode NULL
780#endif
781
782#ifndef elf_backend_init_secondary_reloc_section
783#define elf_backend_init_secondary_reloc_section _bfd_elf_init_secondary_reloc_section
784#endif
785
786#ifndef elf_backend_slurp_secondary_reloc_section
787#define elf_backend_slurp_secondary_reloc_section _bfd_elf_slurp_secondary_reloc_section
788#endif
789
790#ifndef elf_backend_write_secondary_reloc_section
791#define elf_backend_write_secondary_reloc_section _bfd_elf_write_secondary_reloc_section
792#endif
793
794#ifndef elf_backend_symbol_section_index
795#define elf_backend_symbol_section_index NULL
796#endif
797
798#ifndef elf_match_priority
799#define elf_match_priority \
800  (ELF_ARCH == bfd_arch_unknown ? 2 : ELF_OSABI == ELFOSABI_NONE ? 1 : 0)
801#endif
802
803extern const struct elf_size_info _bfd_elfNN_size_info;
804
805static const struct elf_backend_data elfNN_bed =
806{
807  ELF_ARCH,			/* arch */
808  ELF_TARGET_ID,		/* target_id */
809  ELF_TARGET_OS,		/* target_os */
810  ELF_MACHINE_CODE,		/* elf_machine_code */
811  ELF_OSABI,			/* elf_osabi  */
812  ELF_MAXPAGESIZE,		/* maxpagesize */
813  ELF_MINPAGESIZE,		/* minpagesize */
814  ELF_COMMONPAGESIZE,		/* commonpagesize */
815  ELF_P_ALIGN,			/* p_align */
816  ELF_DYNAMIC_SEC_FLAGS,	/* dynamic_sec_flags */
817  elf_backend_arch_data,
818  elf_info_to_howto,
819  elf_info_to_howto_rel,
820  elf_backend_sym_is_global,
821  elf_backend_object_p,
822  elf_backend_symbol_processing,
823  elf_backend_symbol_table_processing,
824  elf_backend_get_symbol_type,
825  elf_backend_archive_symbol_lookup,
826  elf_backend_name_local_section_symbols,
827  elf_backend_section_processing,
828  elf_backend_section_from_shdr,
829  elf_backend_section_flags,
830  elf_backend_get_sec_type_attr,
831  elf_backend_section_from_phdr,
832  elf_backend_fake_sections,
833  elf_backend_section_from_bfd_section,
834  elf_backend_add_symbol_hook,
835  elf_backend_link_output_symbol_hook,
836  elf_backend_create_dynamic_sections,
837  elf_backend_omit_section_dynsym,
838  elf_backend_relocs_compatible,
839  elf_backend_check_relocs,
840  elf_backend_size_relative_relocs,
841  elf_backend_finish_relative_relocs,
842  elf_backend_check_directives,
843  elf_backend_notice_as_needed,
844  elf_backend_adjust_dynamic_symbol,
845  elf_backend_always_size_sections,
846  elf_backend_size_dynamic_sections,
847  elf_backend_strip_zero_sized_dynamic_sections,
848  elf_backend_init_index_section,
849  elf_backend_relocate_section,
850  elf_backend_finish_dynamic_symbol,
851  elf_backend_finish_dynamic_sections,
852  elf_backend_begin_write_processing,
853  elf_backend_final_write_processing,
854  elf_backend_additional_program_headers,
855  elf_backend_modify_segment_map,
856  elf_backend_modify_headers,
857  elf_backend_allow_non_load_phdr,
858  elf_backend_gc_keep,
859  elf_backend_gc_mark_dynamic_ref,
860  elf_backend_gc_mark_hook,
861  elf_backend_gc_mark_extra_sections,
862  elf_backend_init_file_header,
863  elf_backend_print_symbol_all,
864  elf_backend_output_arch_local_syms,
865  elf_backend_output_arch_syms,
866  elf_backend_filter_implib_symbols,
867  elf_backend_copy_indirect_symbol,
868  elf_backend_hide_symbol,
869  elf_backend_fixup_symbol,
870  elf_backend_merge_symbol_attribute,
871  elf_backend_get_target_dtag,
872  elf_backend_ignore_undef_symbol,
873  elf_backend_emit_relocs,
874  elf_backend_update_relocs,
875  elf_backend_count_relocs,
876  elf_backend_count_additional_relocs,
877  elf_backend_sort_relocs_p,
878  elf_backend_grok_prstatus,
879  elf_backend_grok_psinfo,
880  elf_backend_grok_freebsd_prstatus,
881  elf_backend_write_core_note,
882  elf_backend_lookup_section_flags_hook,
883  elf_backend_reloc_type_class,
884  elf_backend_discard_info,
885  elf_backend_ignore_discarded_relocs,
886  elf_backend_action_discarded,
887  elf_backend_eh_frame_address_size,
888  elf_backend_can_make_relative_eh_frame,
889  elf_backend_can_make_lsda_relative_eh_frame,
890  elf_backend_encode_eh_address,
891  elf_backend_write_section,
892  elf_backend_elfsym_local_is_section,
893  elf_backend_mips_irix_compat,
894  elf_backend_mips_rtype_to_howto,
895  elf_backend_ecoff_debug_swap,
896  elf_backend_bfd_from_remote_memory,
897  elf_backend_core_find_build_id,
898  elf_backend_plt_sym_val,
899  elf_backend_common_definition,
900  elf_backend_common_section_index,
901  elf_backend_common_section,
902  elf_backend_merge_symbol,
903  elf_backend_hash_symbol,
904  elf_backend_record_xhash_symbol,
905  elf_backend_is_function_type,
906  elf_backend_maybe_function_sym,
907  elf_backend_get_reloc_section,
908  elf_backend_copy_special_section_fields,
909  elf_backend_link_order_error_handler,
910  elf_backend_relplt_name,
911  ELF_MACHINE_ALT1,
912  ELF_MACHINE_ALT2,
913  &elf_backend_size_info,
914  elf_backend_special_sections,
915  elf_backend_got_header_size,
916  elf_backend_got_elt_size,
917  elf_backend_obj_attrs_vendor,
918  elf_backend_obj_attrs_section,
919  elf_backend_obj_attrs_arg_type,
920  elf_backend_obj_attrs_section_type,
921  elf_backend_obj_attrs_order,
922  elf_backend_obj_attrs_handle_unknown,
923  elf_backend_parse_gnu_properties,
924  elf_backend_merge_gnu_properties,
925  elf_backend_setup_gnu_properties,
926  elf_backend_fixup_gnu_properties,
927  elf_backend_compact_eh_encoding,
928  elf_backend_cant_unwind_opcode,
929  elf_backend_symbol_section_index,
930  elf_backend_init_secondary_reloc_section,
931  elf_backend_slurp_secondary_reloc_section,
932  elf_backend_write_secondary_reloc_section,
933  elf_backend_static_tls_alignment,
934  elf_backend_stack_align,
935  elf_backend_strtab_flags,
936  elf_backend_collect,
937  elf_backend_type_change_ok,
938  elf_backend_may_use_rel_p,
939  elf_backend_may_use_rela_p,
940  elf_backend_default_use_rela_p,
941  elf_backend_rela_plts_and_copies_p,
942  elf_backend_rela_normal,
943  elf_backend_dtrel_excludes_plt,
944  elf_backend_sign_extend_vma,
945  elf_backend_want_got_plt,
946  elf_backend_plt_readonly,
947  elf_backend_want_plt_sym,
948  elf_backend_plt_not_loaded,
949  elf_backend_plt_alignment,
950  elf_backend_can_gc_sections,
951  elf_backend_can_refcount,
952  elf_backend_want_got_sym,
953  elf_backend_want_dynbss,
954  elf_backend_want_dynrelro,
955  elf_backend_want_p_paddr_set_to_zero,
956  elf_backend_no_page_alias,
957  elf_backend_default_execstack,
958  elf_backend_caches_rawsize,
959  elf_backend_extern_protected_data,
960  elf_backend_always_renumber_dynsyms,
961  elf_backend_linux_prpsinfo32_ugid16,
962  elf_backend_linux_prpsinfo64_ugid16
963};
964
965/* Forward declaration for use when initialising alternative_target field.  */
966#ifdef TARGET_LITTLE_SYM
967extern const bfd_target TARGET_LITTLE_SYM;
968#endif
969
970#ifdef TARGET_BIG_SYM
971const bfd_target TARGET_BIG_SYM =
972{
973  /* name: identify kind of target */
974  TARGET_BIG_NAME,
975
976  /* flavour: general indication about file */
977  bfd_target_elf_flavour,
978
979  /* byteorder: data is big endian */
980  BFD_ENDIAN_BIG,
981
982  /* header_byteorder: header is also big endian */
983  BFD_ENDIAN_BIG,
984
985  /* object_flags: mask of all file flags */
986  (HAS_RELOC | EXEC_P | HAS_LINENO | HAS_DEBUG | HAS_SYMS | HAS_LOCALS
987   | DYNAMIC | WP_TEXT | D_PAGED | BFD_COMPRESS | BFD_DECOMPRESS
988   | BFD_COMPRESS_GABI | BFD_CONVERT_ELF_COMMON | BFD_USE_ELF_STT_COMMON),
989
990  /* section_flags: mask of all section flags */
991  (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_READONLY
992   | SEC_CODE | SEC_DATA | SEC_DEBUGGING | SEC_EXCLUDE | SEC_SORT_ENTRIES
993   | SEC_SMALL_DATA | SEC_MERGE | SEC_STRINGS | SEC_GROUP),
994
995   /* leading_symbol_char: is the first char of a user symbol
996      predictable, and if so what is it */
997  elf_symbol_leading_char,
998
999  /* ar_pad_char: pad character for filenames within an archive header
1000     FIXME:  this really has nothing to do with ELF, this is a characteristic
1001     of the archiver and/or os and should be independently tunable */
1002  '/',
1003
1004  /* ar_max_namelen: maximum number of characters in an archive header
1005     FIXME:  this really has nothing to do with ELF, this is a characteristic
1006     of the archiver and should be independently tunable.  The System V ABI,
1007     Chapter 7 (Formats & Protocols), Archive section sets this as 15.  */
1008  15,
1009
1010  elf_match_priority,
1011
1012  /* TRUE if unused section symbols should be kept.  */
1013  TARGET_KEEP_UNUSED_SECTION_SYMBOLS,
1014
1015  /* Routines to byte-swap various sized integers from the data sections */
1016  bfd_getb64, bfd_getb_signed_64, bfd_putb64,
1017    bfd_getb32, bfd_getb_signed_32, bfd_putb32,
1018    bfd_getb16, bfd_getb_signed_16, bfd_putb16,
1019
1020  /* Routines to byte-swap various sized integers from the file headers */
1021  bfd_getb64, bfd_getb_signed_64, bfd_putb64,
1022    bfd_getb32, bfd_getb_signed_32, bfd_putb32,
1023    bfd_getb16, bfd_getb_signed_16, bfd_putb16,
1024
1025  /* bfd_check_format: check the format of a file being read */
1026  { _bfd_dummy_target,		/* unknown format */
1027    bfd_elfNN_object_p,		/* assembler/linker output (object file) */
1028    bfd_elfNN_archive_p,	/* an archive */
1029    bfd_elfNN_core_file_p	/* a core file */
1030  },
1031
1032  /* bfd_set_format: set the format of a file being written */
1033  { _bfd_bool_bfd_false_error,
1034    bfd_elfNN_mkobject,
1035    bfd_elfNN_mkarchive,
1036    bfd_elfNN_mkcorefile
1037  },
1038
1039  /* bfd_write_contents: write cached information into a file being written */
1040  { _bfd_bool_bfd_false_error,
1041    bfd_elfNN_write_object_contents,
1042    bfd_elfNN_write_archive_contents,
1043    bfd_elfNN_write_corefile_contents,
1044  },
1045
1046  BFD_JUMP_TABLE_GENERIC (bfd_elfNN),
1047  BFD_JUMP_TABLE_COPY (bfd_elfNN),
1048  BFD_JUMP_TABLE_CORE (bfd_elfNN),
1049#ifdef bfd_elfNN_archive_functions
1050  BFD_JUMP_TABLE_ARCHIVE (bfd_elfNN_archive),
1051#elif defined USE_64_BIT_ARCHIVE
1052  BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_64_bit),
1053#else
1054  BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_coff),
1055#endif
1056  BFD_JUMP_TABLE_SYMBOLS (bfd_elfNN),
1057  BFD_JUMP_TABLE_RELOCS (bfd_elfNN),
1058  BFD_JUMP_TABLE_WRITE (bfd_elfNN),
1059  BFD_JUMP_TABLE_LINK (bfd_elfNN),
1060  BFD_JUMP_TABLE_DYNAMIC (bfd_elfNN),
1061
1062  /* Alternative endian target.  */
1063#ifdef TARGET_LITTLE_SYM
1064  & TARGET_LITTLE_SYM,
1065#else
1066  NULL,
1067#endif
1068
1069  /* backend_data: */
1070  &elfNN_bed
1071};
1072#endif
1073
1074#ifdef TARGET_LITTLE_SYM
1075const bfd_target TARGET_LITTLE_SYM =
1076{
1077  /* name: identify kind of target */
1078  TARGET_LITTLE_NAME,
1079
1080  /* flavour: general indication about file */
1081  bfd_target_elf_flavour,
1082
1083  /* byteorder: data is little endian */
1084  BFD_ENDIAN_LITTLE,
1085
1086  /* header_byteorder: header is also little endian */
1087  BFD_ENDIAN_LITTLE,
1088
1089  /* object_flags: mask of all file flags */
1090  (HAS_RELOC | EXEC_P | HAS_LINENO | HAS_DEBUG | HAS_SYMS | HAS_LOCALS
1091   | DYNAMIC | WP_TEXT | D_PAGED | BFD_COMPRESS | BFD_DECOMPRESS
1092   | BFD_COMPRESS_GABI | BFD_CONVERT_ELF_COMMON | BFD_USE_ELF_STT_COMMON),
1093
1094  /* section_flags: mask of all section flags */
1095  (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_READONLY
1096   | SEC_CODE | SEC_DATA | SEC_DEBUGGING | SEC_EXCLUDE | SEC_SORT_ENTRIES
1097   | SEC_SMALL_DATA | SEC_MERGE | SEC_STRINGS | SEC_GROUP),
1098
1099   /* leading_symbol_char: is the first char of a user symbol
1100      predictable, and if so what is it */
1101  elf_symbol_leading_char,
1102
1103  /* ar_pad_char: pad character for filenames within an archive header
1104     FIXME:  this really has nothing to do with ELF, this is a characteristic
1105     of the archiver and/or os and should be independently tunable */
1106  '/',
1107
1108  /* ar_max_namelen: maximum number of characters in an archive header
1109     FIXME:  this really has nothing to do with ELF, this is a characteristic
1110     of the archiver and should be independently tunable.  The System V ABI,
1111     Chapter 7 (Formats & Protocols), Archive section sets this as 15.  */
1112  15,
1113
1114  elf_match_priority,
1115
1116  /* TRUE if unused section symbols should be kept.  */
1117  TARGET_KEEP_UNUSED_SECTION_SYMBOLS,
1118
1119  /* Routines to byte-swap various sized integers from the data sections */
1120  bfd_getl64, bfd_getl_signed_64, bfd_putl64,
1121    bfd_getl32, bfd_getl_signed_32, bfd_putl32,
1122    bfd_getl16, bfd_getl_signed_16, bfd_putl16,
1123
1124  /* Routines to byte-swap various sized integers from the file headers */
1125  bfd_getl64, bfd_getl_signed_64, bfd_putl64,
1126    bfd_getl32, bfd_getl_signed_32, bfd_putl32,
1127    bfd_getl16, bfd_getl_signed_16, bfd_putl16,
1128
1129  /* bfd_check_format: check the format of a file being read */
1130  { _bfd_dummy_target,		/* unknown format */
1131    bfd_elfNN_object_p,		/* assembler/linker output (object file) */
1132    bfd_elfNN_archive_p,	/* an archive */
1133    bfd_elfNN_core_file_p	/* a core file */
1134  },
1135
1136  /* bfd_set_format: set the format of a file being written */
1137  { _bfd_bool_bfd_false_error,
1138    bfd_elfNN_mkobject,
1139    bfd_elfNN_mkarchive,
1140    bfd_elfNN_mkcorefile
1141  },
1142
1143  /* bfd_write_contents: write cached information into a file being written */
1144  { _bfd_bool_bfd_false_error,
1145    bfd_elfNN_write_object_contents,
1146    bfd_elfNN_write_archive_contents,
1147    bfd_elfNN_write_corefile_contents,
1148  },
1149
1150  BFD_JUMP_TABLE_GENERIC (bfd_elfNN),
1151  BFD_JUMP_TABLE_COPY (bfd_elfNN),
1152  BFD_JUMP_TABLE_CORE (bfd_elfNN),
1153#ifdef bfd_elfNN_archive_functions
1154  BFD_JUMP_TABLE_ARCHIVE (bfd_elfNN_archive),
1155#elif defined USE_64_BIT_ARCHIVE
1156  BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_64_bit),
1157#else
1158  BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_coff),
1159#endif
1160  BFD_JUMP_TABLE_SYMBOLS (bfd_elfNN),
1161  BFD_JUMP_TABLE_RELOCS (bfd_elfNN),
1162  BFD_JUMP_TABLE_WRITE (bfd_elfNN),
1163  BFD_JUMP_TABLE_LINK (bfd_elfNN),
1164  BFD_JUMP_TABLE_DYNAMIC (bfd_elfNN),
1165
1166  /* Alternative endian target.  */
1167#ifdef TARGET_BIG_SYM
1168  & TARGET_BIG_SYM,
1169#else
1170  NULL,
1171#endif
1172
1173  /* backend_data: */
1174  &elfNN_bed
1175};
1176#endif
1177