packaging: Enable testing infrastructure
[external/binutils.git] / bfd / elfxx-target.h
1 /* Target definitions for NN-bit ELF
2    Copyright (C) 1993-2019 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_discard_group
196 #define bfd_elfNN_bfd_discard_group bfd_generic_discard_group
197 #endif
198
199 #ifndef bfd_elfNN_section_already_linked
200 #define bfd_elfNN_section_already_linked \
201   _bfd_elf_section_already_linked
202 #endif
203
204 #ifndef bfd_elfNN_bfd_define_common_symbol
205 #define bfd_elfNN_bfd_define_common_symbol bfd_generic_define_common_symbol
206 #endif
207
208 #ifndef bfd_elfNN_bfd_link_hide_symbol
209 #define bfd_elfNN_bfd_link_hide_symbol _bfd_elf_link_hide_symbol
210 #endif
211
212 #ifndef bfd_elfNN_bfd_lookup_section_flags
213 #define bfd_elfNN_bfd_lookup_section_flags bfd_elf_lookup_section_flags
214 #endif
215
216 #ifndef bfd_elfNN_bfd_make_debug_symbol
217 #define bfd_elfNN_bfd_make_debug_symbol _bfd_nosymbols_bfd_make_debug_symbol
218 #endif
219
220 #ifndef bfd_elfNN_bfd_copy_private_symbol_data
221 #define bfd_elfNN_bfd_copy_private_symbol_data \
222   _bfd_elf_copy_private_symbol_data
223 #endif
224
225 #ifndef bfd_elfNN_bfd_copy_private_section_data
226 #define bfd_elfNN_bfd_copy_private_section_data \
227   _bfd_elf_copy_private_section_data
228 #endif
229 #ifndef bfd_elfNN_bfd_copy_private_header_data
230 #define bfd_elfNN_bfd_copy_private_header_data \
231   _bfd_elf_copy_private_header_data
232 #endif
233 #ifndef bfd_elfNN_bfd_copy_private_bfd_data
234 #define bfd_elfNN_bfd_copy_private_bfd_data \
235   _bfd_elf_copy_private_bfd_data
236 #endif
237 #ifndef bfd_elfNN_bfd_print_private_bfd_data
238 #define bfd_elfNN_bfd_print_private_bfd_data \
239   _bfd_elf_print_private_bfd_data
240 #endif
241 #ifndef bfd_elfNN_bfd_merge_private_bfd_data
242 #define bfd_elfNN_bfd_merge_private_bfd_data _bfd_bool_bfd_link_true
243 #endif
244 #ifndef bfd_elfNN_bfd_set_private_flags
245 #define bfd_elfNN_bfd_set_private_flags _bfd_bool_bfd_uint_true
246 #endif
247 #ifndef bfd_elfNN_bfd_is_local_label_name
248 #define bfd_elfNN_bfd_is_local_label_name _bfd_elf_is_local_label_name
249 #endif
250 #ifndef bfd_elfNN_bfd_is_target_special_symbol
251 #define bfd_elfNN_bfd_is_target_special_symbol _bfd_bool_bfd_asymbol_false
252 #endif
253
254 #ifndef bfd_elfNN_get_dynamic_reloc_upper_bound
255 #define bfd_elfNN_get_dynamic_reloc_upper_bound \
256   _bfd_elf_get_dynamic_reloc_upper_bound
257 #endif
258 #ifndef bfd_elfNN_canonicalize_dynamic_reloc
259 #define bfd_elfNN_canonicalize_dynamic_reloc \
260   _bfd_elf_canonicalize_dynamic_reloc
261 #endif
262
263 #ifdef elf_backend_relocate_section
264 #ifndef bfd_elfNN_bfd_link_hash_table_create
265 #define bfd_elfNN_bfd_link_hash_table_create _bfd_elf_link_hash_table_create
266 #endif
267 #ifndef bfd_elfNN_bfd_copy_link_hash_symbol_type
268 #define bfd_elfNN_bfd_copy_link_hash_symbol_type \
269   _bfd_elf_copy_link_hash_symbol_type
270 #endif
271 #ifndef bfd_elfNN_bfd_link_add_symbols
272 #define bfd_elfNN_bfd_link_add_symbols  bfd_elf_link_add_symbols
273 #endif
274 #ifndef bfd_elfNN_bfd_define_start_stop
275 #define bfd_elfNN_bfd_define_start_stop bfd_elf_define_start_stop
276 #endif
277 #ifndef bfd_elfNN_bfd_final_link
278 #define bfd_elfNN_bfd_final_link        bfd_elf_final_link
279 #endif
280 #else /* ! defined (elf_backend_relocate_section) */
281 /* If no backend relocate_section routine, use the generic linker.
282    Note - this will prevent the port from being able to use some of
283    the other features of the ELF linker, because the generic hash structure
284    does not have the fields needed by the ELF linker.  In particular it
285    means that linking directly to S-records will not work.  */
286 #ifndef bfd_elfNN_bfd_link_hash_table_create
287 #define bfd_elfNN_bfd_link_hash_table_create \
288   _bfd_generic_link_hash_table_create
289 #endif
290 #ifndef bfd_elfNN_bfd_copy_link_hash_symbol_type
291 #define bfd_elfNN_bfd_copy_link_hash_symbol_type \
292   _bfd_generic_copy_link_hash_symbol_type
293 #endif
294 #ifndef bfd_elfNN_bfd_link_add_symbols
295 #define bfd_elfNN_bfd_link_add_symbols  _bfd_generic_link_add_symbols
296 #endif
297 #ifndef bfd_elfNN_bfd_define_start_stop
298 #define bfd_elfNN_bfd_define_start_stop bfd_generic_define_start_stop
299 #endif
300 #ifndef bfd_elfNN_bfd_final_link
301 #define bfd_elfNN_bfd_final_link        _bfd_generic_final_link
302 #endif
303 #endif /* ! defined (elf_backend_relocate_section) */
304
305 #ifndef bfd_elfNN_bfd_link_just_syms
306 #define bfd_elfNN_bfd_link_just_syms    _bfd_elf_link_just_syms
307 #endif
308
309 #ifndef bfd_elfNN_bfd_link_split_section
310 #define bfd_elfNN_bfd_link_split_section _bfd_generic_link_split_section
311 #endif
312
313 #ifndef bfd_elfNN_bfd_link_check_relocs
314 #define bfd_elfNN_bfd_link_check_relocs  _bfd_elf_link_check_relocs
315 #endif
316
317 #ifndef bfd_elfNN_archive_p
318 #define bfd_elfNN_archive_p bfd_generic_archive_p
319 #endif
320
321 #ifndef bfd_elfNN_write_archive_contents
322 #define bfd_elfNN_write_archive_contents _bfd_write_archive_contents
323 #endif
324
325 #ifndef bfd_elfNN_mkobject
326 #define bfd_elfNN_mkobject bfd_elf_make_object
327 #endif
328
329 #ifndef bfd_elfNN_mkcorefile
330 #define bfd_elfNN_mkcorefile bfd_elf_mkcorefile
331 #endif
332
333 #ifndef bfd_elfNN_mkarchive
334 #define bfd_elfNN_mkarchive _bfd_generic_mkarchive
335 #endif
336
337 #ifndef bfd_elfNN_print_symbol
338 #define bfd_elfNN_print_symbol bfd_elf_print_symbol
339 #endif
340
341 #ifndef elf_symbol_leading_char
342 #define elf_symbol_leading_char 0
343 #endif
344
345 #ifndef elf_info_to_howto
346 #define elf_info_to_howto NULL
347 #endif
348
349 #ifndef elf_info_to_howto_rel
350 #define elf_info_to_howto_rel NULL
351 #endif
352
353 #ifndef elf_backend_arch_data
354 #define elf_backend_arch_data NULL
355 #endif
356
357 #ifndef ELF_TARGET_ID
358 #define ELF_TARGET_ID   GENERIC_ELF_DATA
359 #endif
360
361 #ifndef ELF_OSABI
362 #define ELF_OSABI ELFOSABI_NONE
363 #endif
364
365 #ifndef ELF_MAXPAGESIZE
366 # error ELF_MAXPAGESIZE is not defined
367 #define ELF_MAXPAGESIZE 1
368 #endif
369
370 #ifndef ELF_COMMONPAGESIZE
371 #define ELF_COMMONPAGESIZE ELF_MAXPAGESIZE
372 #endif
373
374 #ifndef ELF_RELROPAGESIZE
375 #define ELF_RELROPAGESIZE ELF_COMMONPAGESIZE
376 #endif
377
378 #ifndef ELF_MINPAGESIZE
379 #define ELF_MINPAGESIZE ELF_COMMONPAGESIZE
380 #endif
381
382 #if ELF_COMMONPAGESIZE > ELF_MAXPAGESIZE
383 # error ELF_COMMONPAGESIZE > ELF_MAXPAGESIZE
384 #endif
385 #if ELF_RELROPAGESIZE > ELF_MAXPAGESIZE
386 # error ELF_RELROPAGESIZE > ELF_MAXPAGESIZE
387 #endif
388 #if ELF_MINPAGESIZE > ELF_COMMONPAGESIZE
389 # error ELF_MINPAGESIZE > ELF_COMMONPAGESIZE
390 #endif
391 #if ELF_MINPAGESIZE > ELF_RELROPAGESIZE
392 # error ELF_MINPAGESIZE > ELF_RELROPAGESIZE
393 #endif
394
395 #ifndef ELF_DYNAMIC_SEC_FLAGS
396 /* Note that we set the SEC_IN_MEMORY flag for these sections.  */
397 #define ELF_DYNAMIC_SEC_FLAGS                   \
398   (SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS      \
399    | SEC_IN_MEMORY | SEC_LINKER_CREATED)
400 #endif
401
402 #ifndef elf_backend_collect
403 #define elf_backend_collect FALSE
404 #endif
405 #ifndef elf_backend_type_change_ok
406 #define elf_backend_type_change_ok FALSE
407 #endif
408
409 #ifndef elf_backend_sym_is_global
410 #define elf_backend_sym_is_global       0
411 #endif
412 #ifndef elf_backend_object_p
413 #define elf_backend_object_p            0
414 #endif
415 #ifndef elf_backend_symbol_processing
416 #define elf_backend_symbol_processing   0
417 #endif
418 #ifndef elf_backend_symbol_table_processing
419 #define elf_backend_symbol_table_processing     0
420 #endif
421 #ifndef elf_backend_get_symbol_type
422 #define elf_backend_get_symbol_type 0
423 #endif
424 #ifndef elf_backend_archive_symbol_lookup
425 #define elf_backend_archive_symbol_lookup _bfd_elf_archive_symbol_lookup
426 #endif
427 #ifndef elf_backend_name_local_section_symbols
428 #define elf_backend_name_local_section_symbols  0
429 #endif
430 #ifndef elf_backend_section_processing
431 #define elf_backend_section_processing  0
432 #endif
433 #ifndef elf_backend_section_from_shdr
434 #define elf_backend_section_from_shdr   _bfd_elf_make_section_from_shdr
435 #endif
436 #ifndef elf_backend_section_flags
437 #define elf_backend_section_flags       0
438 #endif
439 #ifndef elf_backend_get_sec_type_attr
440 #define elf_backend_get_sec_type_attr   _bfd_elf_get_sec_type_attr
441 #endif
442 #ifndef elf_backend_section_from_phdr
443 #define elf_backend_section_from_phdr   _bfd_elf_make_section_from_phdr
444 #endif
445 #ifndef elf_backend_fake_sections
446 #define elf_backend_fake_sections       0
447 #endif
448 #ifndef elf_backend_section_from_bfd_section
449 #define elf_backend_section_from_bfd_section    0
450 #endif
451 #ifndef elf_backend_add_symbol_hook
452 #define elf_backend_add_symbol_hook     0
453 #endif
454 #ifndef elf_backend_link_output_symbol_hook
455 #define elf_backend_link_output_symbol_hook 0
456 #endif
457 #ifndef elf_backend_create_dynamic_sections
458 #define elf_backend_create_dynamic_sections 0
459 #endif
460 #ifndef elf_backend_omit_section_dynsym
461 #define elf_backend_omit_section_dynsym _bfd_elf_omit_section_dynsym_default
462 #endif
463 #ifndef elf_backend_relocs_compatible
464 #define elf_backend_relocs_compatible _bfd_elf_default_relocs_compatible
465 #endif
466 #ifndef elf_backend_check_relocs
467 #define elf_backend_check_relocs        0
468 #endif
469 #ifndef elf_backend_check_directives
470 #define elf_backend_check_directives    0
471 #endif
472 #ifndef elf_backend_notice_as_needed
473 #define elf_backend_notice_as_needed    _bfd_elf_notice_as_needed
474 #endif
475 #ifndef elf_backend_adjust_dynamic_symbol
476 #define elf_backend_adjust_dynamic_symbol 0
477 #endif
478 #ifndef elf_backend_always_size_sections
479 #define elf_backend_always_size_sections 0
480 #endif
481 #ifndef elf_backend_size_dynamic_sections
482 #define elf_backend_size_dynamic_sections 0
483 #endif
484 #ifndef elf_backend_init_index_section
485 #define elf_backend_init_index_section _bfd_void_bfd_link
486 #endif
487 #ifndef elf_backend_relocate_section
488 #define elf_backend_relocate_section    0
489 #endif
490 #ifndef elf_backend_finish_dynamic_symbol
491 #define elf_backend_finish_dynamic_symbol       0
492 #endif
493 #ifndef elf_backend_finish_dynamic_sections
494 #define elf_backend_finish_dynamic_sections     0
495 #endif
496 #ifndef elf_backend_begin_write_processing
497 #define elf_backend_begin_write_processing      0
498 #endif
499 #ifndef elf_backend_final_write_processing
500 #define elf_backend_final_write_processing      _bfd_elf_final_write_processing
501 #endif
502 #ifndef elf_backend_additional_program_headers
503 #define elf_backend_additional_program_headers  0
504 #endif
505 #ifndef elf_backend_modify_segment_map
506 #define elf_backend_modify_segment_map  0
507 #endif
508 #ifndef elf_backend_modify_program_headers
509 #define elf_backend_modify_program_headers      0
510 #endif
511 #ifndef elf_backend_allow_non_load_phdr
512 #define elf_backend_allow_non_load_phdr 0
513 #endif
514 #ifndef elf_backend_ecoff_debug_swap
515 #define elf_backend_ecoff_debug_swap    0
516 #endif
517 #ifndef elf_backend_bfd_from_remote_memory
518 #define elf_backend_bfd_from_remote_memory _bfd_elfNN_bfd_from_remote_memory
519 #endif
520 #ifndef elf_backend_got_header_size
521 #define elf_backend_got_header_size     0
522 #endif
523 #ifndef elf_backend_got_elt_size
524 #define elf_backend_got_elt_size _bfd_elf_default_got_elt_size
525 #endif
526 #ifndef elf_backend_obj_attrs_vendor
527 #define elf_backend_obj_attrs_vendor            NULL
528 #endif
529 #ifndef elf_backend_obj_attrs_section
530 #define elf_backend_obj_attrs_section           NULL
531 #endif
532 #ifndef elf_backend_obj_attrs_arg_type
533 #define elf_backend_obj_attrs_arg_type          NULL
534 #endif
535 #ifndef elf_backend_obj_attrs_section_type
536 #define elf_backend_obj_attrs_section_type              SHT_GNU_ATTRIBUTES
537 #endif
538 #ifndef elf_backend_obj_attrs_order
539 #define elf_backend_obj_attrs_order             NULL
540 #endif
541 #ifndef elf_backend_obj_attrs_handle_unknown
542 #define elf_backend_obj_attrs_handle_unknown    NULL
543 #endif
544 #ifndef elf_backend_parse_gnu_properties
545 #define elf_backend_parse_gnu_properties        NULL
546 #endif
547 #ifndef elf_backend_merge_gnu_properties
548 #define elf_backend_merge_gnu_properties        NULL
549 #endif
550 #ifndef elf_backend_setup_gnu_properties
551 #define elf_backend_setup_gnu_properties        _bfd_elf_link_setup_gnu_properties
552 #endif
553 #ifndef elf_backend_fixup_gnu_properties
554 #define elf_backend_fixup_gnu_properties        NULL
555 #endif
556 #ifndef elf_backend_static_tls_alignment
557 #define elf_backend_static_tls_alignment        1
558 #endif
559 #ifndef elf_backend_post_process_headers
560 #define elf_backend_post_process_headers        _bfd_elf_post_process_headers
561 #endif
562 #ifndef elf_backend_print_symbol_all
563 #define elf_backend_print_symbol_all            NULL
564 #endif
565 #ifndef elf_backend_output_arch_local_syms
566 #define elf_backend_output_arch_local_syms      NULL
567 #endif
568 #ifndef elf_backend_output_arch_syms
569 #define elf_backend_output_arch_syms            NULL
570 #endif
571 #ifndef elf_backend_filter_implib_symbols
572 #define elf_backend_filter_implib_symbols       NULL
573 #endif
574 #ifndef elf_backend_copy_indirect_symbol
575 #define elf_backend_copy_indirect_symbol        _bfd_elf_link_hash_copy_indirect
576 #endif
577 #ifndef elf_backend_hide_symbol
578 #define elf_backend_hide_symbol                 _bfd_elf_link_hash_hide_symbol
579 #endif
580 #ifndef elf_backend_fixup_symbol
581 #define elf_backend_fixup_symbol                NULL
582 #endif
583 #ifndef elf_backend_merge_symbol_attribute
584 #define elf_backend_merge_symbol_attribute      NULL
585 #endif
586 #ifndef elf_backend_get_target_dtag
587 #define elf_backend_get_target_dtag             NULL
588 #endif
589 #ifndef elf_backend_ignore_undef_symbol
590 #define elf_backend_ignore_undef_symbol         NULL
591 #endif
592 #ifndef elf_backend_emit_relocs
593 #define elf_backend_emit_relocs                 _bfd_elf_link_output_relocs
594 #endif
595 #ifndef elf_backend_update_relocs
596 #define elf_backend_update_relocs               NULL
597 #endif
598 #ifndef elf_backend_count_relocs
599 #define elf_backend_count_relocs                NULL
600 #endif
601 #ifndef elf_backend_count_additional_relocs
602 #define elf_backend_count_additional_relocs     NULL
603 #endif
604 #ifndef elf_backend_sort_relocs_p
605 #define elf_backend_sort_relocs_p               NULL
606 #endif
607 #ifndef elf_backend_grok_prstatus
608 #define elf_backend_grok_prstatus               NULL
609 #endif
610 #ifndef elf_backend_grok_psinfo
611 #define elf_backend_grok_psinfo                 NULL
612 #endif
613 #ifndef elf_backend_grok_freebsd_prstatus
614 #define elf_backend_grok_freebsd_prstatus       NULL
615 #endif
616 #ifndef elf_backend_write_core_note
617 #define elf_backend_write_core_note             NULL
618 #endif
619 #ifndef elf_backend_lookup_section_flags_hook
620 #define elf_backend_lookup_section_flags_hook   NULL
621 #endif
622 #ifndef elf_backend_reloc_type_class
623 #define elf_backend_reloc_type_class            _bfd_elf_reloc_type_class
624 #endif
625 #ifndef elf_backend_discard_info
626 #define elf_backend_discard_info                NULL
627 #endif
628 #ifndef elf_backend_ignore_discarded_relocs
629 #define elf_backend_ignore_discarded_relocs     NULL
630 #endif
631 #ifndef elf_backend_action_discarded
632 #define elf_backend_action_discarded _bfd_elf_default_action_discarded
633 #endif
634 #ifndef elf_backend_eh_frame_address_size
635 #define elf_backend_eh_frame_address_size _bfd_elf_eh_frame_address_size
636 #endif
637 #ifndef elf_backend_can_make_relative_eh_frame
638 #define elf_backend_can_make_relative_eh_frame  _bfd_elf_can_make_relative
639 #endif
640 #ifndef elf_backend_can_make_lsda_relative_eh_frame
641 #define elf_backend_can_make_lsda_relative_eh_frame     _bfd_elf_can_make_relative
642 #endif
643 #ifndef elf_backend_encode_eh_address
644 #define elf_backend_encode_eh_address           _bfd_elf_encode_eh_address
645 #endif
646 #ifndef elf_backend_write_section
647 #define elf_backend_write_section               NULL
648 #endif
649 #ifndef elf_backend_mips_irix_compat
650 #define elf_backend_mips_irix_compat            NULL
651 #endif
652 #ifndef elf_backend_mips_rtype_to_howto
653 #define elf_backend_mips_rtype_to_howto         NULL
654 #endif
655
656 /* Previously, backends could only use SHT_REL or SHT_RELA relocation
657    sections, but not both.  They defined USE_REL to indicate SHT_REL
658    sections, and left it undefined to indicated SHT_RELA sections.
659    For backwards compatibility, we still support this usage.  */
660 #ifndef USE_REL
661 #define USE_REL 0
662 #endif
663
664 /* Use these in new code.  */
665 #ifndef elf_backend_may_use_rel_p
666 #define elf_backend_may_use_rel_p USE_REL
667 #endif
668 #ifndef elf_backend_may_use_rela_p
669 #define elf_backend_may_use_rela_p !USE_REL
670 #endif
671 #ifndef elf_backend_default_use_rela_p
672 #define elf_backend_default_use_rela_p !USE_REL
673 #endif
674 #ifndef elf_backend_rela_plts_and_copies_p
675 #define elf_backend_rela_plts_and_copies_p elf_backend_default_use_rela_p
676 #endif
677
678 #ifndef elf_backend_rela_normal
679 #define elf_backend_rela_normal 0
680 #endif
681
682 #ifndef elf_backend_dtrel_excludes_plt
683 #define elf_backend_dtrel_excludes_plt 0
684 #endif
685
686 #ifndef elf_backend_plt_sym_val
687 #define elf_backend_plt_sym_val NULL
688 #endif
689 #ifndef elf_backend_relplt_name
690 #define elf_backend_relplt_name NULL
691 #endif
692
693 #ifndef ELF_MACHINE_ALT1
694 #define ELF_MACHINE_ALT1 0
695 #endif
696
697 #ifndef ELF_MACHINE_ALT2
698 #define ELF_MACHINE_ALT2 0
699 #endif
700
701 #ifndef elf_backend_size_info
702 #define elf_backend_size_info _bfd_elfNN_size_info
703 #endif
704
705 #ifndef elf_backend_special_sections
706 #define elf_backend_special_sections NULL
707 #endif
708
709 #ifndef elf_backend_sign_extend_vma
710 #define elf_backend_sign_extend_vma 0
711 #endif
712
713 #ifndef elf_backend_link_order_error_handler
714 #define elf_backend_link_order_error_handler _bfd_error_handler
715 #endif
716
717 #ifndef elf_backend_common_definition
718 #define elf_backend_common_definition _bfd_elf_common_definition
719 #endif
720
721 #ifndef elf_backend_common_section_index
722 #define elf_backend_common_section_index _bfd_elf_common_section_index
723 #endif
724
725 #ifndef elf_backend_common_section
726 #define elf_backend_common_section _bfd_elf_common_section
727 #endif
728
729 #ifndef elf_backend_merge_symbol
730 #define elf_backend_merge_symbol NULL
731 #endif
732
733 #ifndef elf_backend_hash_symbol
734 #define elf_backend_hash_symbol _bfd_elf_hash_symbol
735 #endif
736
737 #ifndef elf_backend_record_xhash_symbol
738 #define elf_backend_record_xhash_symbol NULL
739 #endif
740
741 #ifndef elf_backend_is_function_type
742 #define elf_backend_is_function_type _bfd_elf_is_function_type
743 #endif
744
745 #ifndef elf_backend_maybe_function_sym
746 #define elf_backend_maybe_function_sym _bfd_elf_maybe_function_sym
747 #endif
748
749 #ifndef elf_backend_get_reloc_section
750 #define elf_backend_get_reloc_section _bfd_elf_plt_get_reloc_section
751 #endif
752
753 #ifndef elf_backend_copy_special_section_fields
754 #define elf_backend_copy_special_section_fields NULL
755 #endif
756
757 #ifndef elf_backend_compact_eh_encoding
758 #define elf_backend_compact_eh_encoding NULL
759 #endif
760
761 #ifndef elf_backend_cant_unwind_opcode
762 #define elf_backend_cant_unwind_opcode 0
763 #endif
764
765 #ifndef elf_match_priority
766 #define elf_match_priority \
767   (ELF_ARCH == bfd_arch_unknown ? 2 : ELF_OSABI == ELFOSABI_NONE ? 1 : 0)
768 #endif
769
770 extern const struct elf_size_info _bfd_elfNN_size_info;
771
772 static struct elf_backend_data elfNN_bed =
773 {
774   ELF_ARCH,                     /* arch */
775   ELF_TARGET_ID,                /* target_id */
776   ELF_MACHINE_CODE,             /* elf_machine_code */
777   ELF_OSABI,                    /* elf_osabi  */
778   ELF_MAXPAGESIZE,              /* maxpagesize */
779   ELF_MINPAGESIZE,              /* minpagesize */
780   ELF_COMMONPAGESIZE,           /* commonpagesize */
781   ELF_RELROPAGESIZE,            /* commonpagesize to use with -z relro */
782   ELF_DYNAMIC_SEC_FLAGS,        /* dynamic_sec_flags */
783   elf_backend_arch_data,
784   elf_info_to_howto,
785   elf_info_to_howto_rel,
786   elf_backend_sym_is_global,
787   elf_backend_object_p,
788   elf_backend_symbol_processing,
789   elf_backend_symbol_table_processing,
790   elf_backend_get_symbol_type,
791   elf_backend_archive_symbol_lookup,
792   elf_backend_name_local_section_symbols,
793   elf_backend_section_processing,
794   elf_backend_section_from_shdr,
795   elf_backend_section_flags,
796   elf_backend_get_sec_type_attr,
797   elf_backend_section_from_phdr,
798   elf_backend_fake_sections,
799   elf_backend_section_from_bfd_section,
800   elf_backend_add_symbol_hook,
801   elf_backend_link_output_symbol_hook,
802   elf_backend_create_dynamic_sections,
803   elf_backend_omit_section_dynsym,
804   elf_backend_relocs_compatible,
805   elf_backend_check_relocs,
806   elf_backend_check_directives,
807   elf_backend_notice_as_needed,
808   elf_backend_adjust_dynamic_symbol,
809   elf_backend_always_size_sections,
810   elf_backend_size_dynamic_sections,
811   elf_backend_init_index_section,
812   elf_backend_relocate_section,
813   elf_backend_finish_dynamic_symbol,
814   elf_backend_finish_dynamic_sections,
815   elf_backend_begin_write_processing,
816   elf_backend_final_write_processing,
817   elf_backend_additional_program_headers,
818   elf_backend_modify_segment_map,
819   elf_backend_modify_program_headers,
820   elf_backend_allow_non_load_phdr,
821   elf_backend_gc_keep,
822   elf_backend_gc_mark_dynamic_ref,
823   elf_backend_gc_mark_hook,
824   elf_backend_gc_mark_extra_sections,
825   elf_backend_post_process_headers,
826   elf_backend_print_symbol_all,
827   elf_backend_output_arch_local_syms,
828   elf_backend_output_arch_syms,
829   elf_backend_filter_implib_symbols,
830   elf_backend_copy_indirect_symbol,
831   elf_backend_hide_symbol,
832   elf_backend_fixup_symbol,
833   elf_backend_merge_symbol_attribute,
834   elf_backend_get_target_dtag,
835   elf_backend_ignore_undef_symbol,
836   elf_backend_emit_relocs,
837   elf_backend_update_relocs,
838   elf_backend_count_relocs,
839   elf_backend_count_additional_relocs,
840   elf_backend_sort_relocs_p,
841   elf_backend_grok_prstatus,
842   elf_backend_grok_psinfo,
843   elf_backend_grok_freebsd_prstatus,
844   elf_backend_write_core_note,
845   elf_backend_lookup_section_flags_hook,
846   elf_backend_reloc_type_class,
847   elf_backend_discard_info,
848   elf_backend_ignore_discarded_relocs,
849   elf_backend_action_discarded,
850   elf_backend_eh_frame_address_size,
851   elf_backend_can_make_relative_eh_frame,
852   elf_backend_can_make_lsda_relative_eh_frame,
853   elf_backend_encode_eh_address,
854   elf_backend_write_section,
855   elf_backend_mips_irix_compat,
856   elf_backend_mips_rtype_to_howto,
857   elf_backend_ecoff_debug_swap,
858   elf_backend_bfd_from_remote_memory,
859   elf_backend_plt_sym_val,
860   elf_backend_common_definition,
861   elf_backend_common_section_index,
862   elf_backend_common_section,
863   elf_backend_merge_symbol,
864   elf_backend_hash_symbol,
865   elf_backend_record_xhash_symbol,
866   elf_backend_is_function_type,
867   elf_backend_maybe_function_sym,
868   elf_backend_get_reloc_section,
869   elf_backend_copy_special_section_fields,
870   elf_backend_link_order_error_handler,
871   elf_backend_relplt_name,
872   ELF_MACHINE_ALT1,
873   ELF_MACHINE_ALT2,
874   &elf_backend_size_info,
875   elf_backend_special_sections,
876   elf_backend_got_header_size,
877   elf_backend_got_elt_size,
878   elf_backend_obj_attrs_vendor,
879   elf_backend_obj_attrs_section,
880   elf_backend_obj_attrs_arg_type,
881   elf_backend_obj_attrs_section_type,
882   elf_backend_obj_attrs_order,
883   elf_backend_obj_attrs_handle_unknown,
884   elf_backend_parse_gnu_properties,
885   elf_backend_merge_gnu_properties,
886   elf_backend_setup_gnu_properties,
887   elf_backend_fixup_gnu_properties,
888   elf_backend_compact_eh_encoding,
889   elf_backend_cant_unwind_opcode,
890   elf_backend_static_tls_alignment,
891   elf_backend_stack_align,
892   elf_backend_strtab_flags,
893   elf_backend_collect,
894   elf_backend_type_change_ok,
895   elf_backend_may_use_rel_p,
896   elf_backend_may_use_rela_p,
897   elf_backend_default_use_rela_p,
898   elf_backend_rela_plts_and_copies_p,
899   elf_backend_rela_normal,
900   elf_backend_dtrel_excludes_plt,
901   elf_backend_sign_extend_vma,
902   elf_backend_want_got_plt,
903   elf_backend_plt_readonly,
904   elf_backend_want_plt_sym,
905   elf_backend_plt_not_loaded,
906   elf_backend_plt_alignment,
907   elf_backend_can_gc_sections,
908   elf_backend_can_refcount,
909   elf_backend_want_got_sym,
910   elf_backend_want_dynbss,
911   elf_backend_want_dynrelro,
912   elf_backend_want_p_paddr_set_to_zero,
913   elf_backend_no_page_alias,
914   elf_backend_default_execstack,
915   elf_backend_caches_rawsize,
916   elf_backend_extern_protected_data,
917   elf_backend_always_renumber_dynsyms,
918   elf_backend_linux_prpsinfo32_ugid16,
919   elf_backend_linux_prpsinfo64_ugid16
920 };
921
922 /* Forward declaration for use when initialising alternative_target field.  */
923 #ifdef TARGET_LITTLE_SYM
924 extern const bfd_target TARGET_LITTLE_SYM;
925 #endif
926
927 #ifdef TARGET_BIG_SYM
928 const bfd_target TARGET_BIG_SYM =
929 {
930   /* name: identify kind of target */
931   TARGET_BIG_NAME,
932
933   /* flavour: general indication about file */
934   bfd_target_elf_flavour,
935
936   /* byteorder: data is big endian */
937   BFD_ENDIAN_BIG,
938
939   /* header_byteorder: header is also big endian */
940   BFD_ENDIAN_BIG,
941
942   /* object_flags: mask of all file flags */
943   (HAS_RELOC | EXEC_P | HAS_LINENO | HAS_DEBUG | HAS_SYMS | HAS_LOCALS
944    | DYNAMIC | WP_TEXT | D_PAGED | BFD_COMPRESS | BFD_DECOMPRESS
945    | BFD_COMPRESS_GABI | BFD_CONVERT_ELF_COMMON | BFD_USE_ELF_STT_COMMON),
946
947   /* section_flags: mask of all section flags */
948   (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_READONLY
949    | SEC_CODE | SEC_DATA | SEC_DEBUGGING | SEC_EXCLUDE | SEC_SORT_ENTRIES
950    | SEC_SMALL_DATA | SEC_MERGE | SEC_STRINGS | SEC_GROUP),
951
952    /* leading_symbol_char: is the first char of a user symbol
953       predictable, and if so what is it */
954   elf_symbol_leading_char,
955
956   /* ar_pad_char: pad character for filenames within an archive header
957      FIXME:  this really has nothing to do with ELF, this is a characteristic
958      of the archiver and/or os and should be independently tunable */
959   '/',
960
961   /* ar_max_namelen: maximum number of characters in an archive header
962      FIXME:  this really has nothing to do with ELF, this is a characteristic
963      of the archiver and should be independently tunable.  The System V ABI,
964      Chapter 7 (Formats & Protocols), Archive section sets this as 15.  */
965   15,
966
967   elf_match_priority,
968
969   /* Routines to byte-swap various sized integers from the data sections */
970   bfd_getb64, bfd_getb_signed_64, bfd_putb64,
971     bfd_getb32, bfd_getb_signed_32, bfd_putb32,
972     bfd_getb16, bfd_getb_signed_16, bfd_putb16,
973
974   /* Routines to byte-swap various sized integers from the file headers */
975   bfd_getb64, bfd_getb_signed_64, bfd_putb64,
976     bfd_getb32, bfd_getb_signed_32, bfd_putb32,
977     bfd_getb16, bfd_getb_signed_16, bfd_putb16,
978
979   /* bfd_check_format: check the format of a file being read */
980   { _bfd_dummy_target,          /* unknown format */
981     bfd_elfNN_object_p,         /* assembler/linker output (object file) */
982     bfd_elfNN_archive_p,        /* an archive */
983     bfd_elfNN_core_file_p       /* a core file */
984   },
985
986   /* bfd_set_format: set the format of a file being written */
987   { _bfd_bool_bfd_false_error,
988     bfd_elfNN_mkobject,
989     bfd_elfNN_mkarchive,
990     bfd_elfNN_mkcorefile
991   },
992
993   /* bfd_write_contents: write cached information into a file being written */
994   { _bfd_bool_bfd_false_error,
995     bfd_elfNN_write_object_contents,
996     bfd_elfNN_write_archive_contents,
997     bfd_elfNN_write_corefile_contents,
998   },
999
1000   BFD_JUMP_TABLE_GENERIC (bfd_elfNN),
1001   BFD_JUMP_TABLE_COPY (bfd_elfNN),
1002   BFD_JUMP_TABLE_CORE (bfd_elfNN),
1003 #ifdef bfd_elfNN_archive_functions
1004   BFD_JUMP_TABLE_ARCHIVE (bfd_elfNN_archive),
1005 #elif defined USE_64_BIT_ARCHIVE
1006   BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_64_bit),
1007 #else
1008   BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_coff),
1009 #endif
1010   BFD_JUMP_TABLE_SYMBOLS (bfd_elfNN),
1011   BFD_JUMP_TABLE_RELOCS (bfd_elfNN),
1012   BFD_JUMP_TABLE_WRITE (bfd_elfNN),
1013   BFD_JUMP_TABLE_LINK (bfd_elfNN),
1014   BFD_JUMP_TABLE_DYNAMIC (bfd_elfNN),
1015
1016   /* Alternative endian target.  */
1017 #ifdef TARGET_LITTLE_SYM
1018   & TARGET_LITTLE_SYM,
1019 #else
1020   NULL,
1021 #endif
1022
1023   /* backend_data: */
1024   &elfNN_bed
1025 };
1026 #endif
1027
1028 #ifdef TARGET_LITTLE_SYM
1029 const bfd_target TARGET_LITTLE_SYM =
1030 {
1031   /* name: identify kind of target */
1032   TARGET_LITTLE_NAME,
1033
1034   /* flavour: general indication about file */
1035   bfd_target_elf_flavour,
1036
1037   /* byteorder: data is little endian */
1038   BFD_ENDIAN_LITTLE,
1039
1040   /* header_byteorder: header is also little endian */
1041   BFD_ENDIAN_LITTLE,
1042
1043   /* object_flags: mask of all file flags */
1044   (HAS_RELOC | EXEC_P | HAS_LINENO | HAS_DEBUG | HAS_SYMS | HAS_LOCALS
1045    | DYNAMIC | WP_TEXT | D_PAGED | BFD_COMPRESS | BFD_DECOMPRESS
1046    | BFD_COMPRESS_GABI | BFD_CONVERT_ELF_COMMON | BFD_USE_ELF_STT_COMMON),
1047
1048   /* section_flags: mask of all section flags */
1049   (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_READONLY
1050    | SEC_CODE | SEC_DATA | SEC_DEBUGGING | SEC_EXCLUDE | SEC_SORT_ENTRIES
1051    | SEC_SMALL_DATA | SEC_MERGE | SEC_STRINGS | SEC_GROUP),
1052
1053    /* leading_symbol_char: is the first char of a user symbol
1054       predictable, and if so what is it */
1055   elf_symbol_leading_char,
1056
1057   /* ar_pad_char: pad character for filenames within an archive header
1058      FIXME:  this really has nothing to do with ELF, this is a characteristic
1059      of the archiver and/or os and should be independently tunable */
1060   '/',
1061
1062   /* ar_max_namelen: maximum number of characters in an archive header
1063      FIXME:  this really has nothing to do with ELF, this is a characteristic
1064      of the archiver and should be independently tunable.  The System V ABI,
1065      Chapter 7 (Formats & Protocols), Archive section sets this as 15.  */
1066   15,
1067
1068   elf_match_priority,
1069
1070   /* Routines to byte-swap various sized integers from the data sections */
1071   bfd_getl64, bfd_getl_signed_64, bfd_putl64,
1072     bfd_getl32, bfd_getl_signed_32, bfd_putl32,
1073     bfd_getl16, bfd_getl_signed_16, bfd_putl16,
1074
1075   /* Routines to byte-swap various sized integers from the file headers */
1076   bfd_getl64, bfd_getl_signed_64, bfd_putl64,
1077     bfd_getl32, bfd_getl_signed_32, bfd_putl32,
1078     bfd_getl16, bfd_getl_signed_16, bfd_putl16,
1079
1080   /* bfd_check_format: check the format of a file being read */
1081   { _bfd_dummy_target,          /* unknown format */
1082     bfd_elfNN_object_p,         /* assembler/linker output (object file) */
1083     bfd_elfNN_archive_p,        /* an archive */
1084     bfd_elfNN_core_file_p       /* a core file */
1085   },
1086
1087   /* bfd_set_format: set the format of a file being written */
1088   { _bfd_bool_bfd_false_error,
1089     bfd_elfNN_mkobject,
1090     bfd_elfNN_mkarchive,
1091     bfd_elfNN_mkcorefile
1092   },
1093
1094   /* bfd_write_contents: write cached information into a file being written */
1095   { _bfd_bool_bfd_false_error,
1096     bfd_elfNN_write_object_contents,
1097     bfd_elfNN_write_archive_contents,
1098     bfd_elfNN_write_corefile_contents,
1099   },
1100
1101   BFD_JUMP_TABLE_GENERIC (bfd_elfNN),
1102   BFD_JUMP_TABLE_COPY (bfd_elfNN),
1103   BFD_JUMP_TABLE_CORE (bfd_elfNN),
1104 #ifdef bfd_elfNN_archive_functions
1105   BFD_JUMP_TABLE_ARCHIVE (bfd_elfNN_archive),
1106 #elif defined USE_64_BIT_ARCHIVE
1107   BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_64_bit),
1108 #else
1109   BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_coff),
1110 #endif
1111   BFD_JUMP_TABLE_SYMBOLS (bfd_elfNN),
1112   BFD_JUMP_TABLE_RELOCS (bfd_elfNN),
1113   BFD_JUMP_TABLE_WRITE (bfd_elfNN),
1114   BFD_JUMP_TABLE_LINK (bfd_elfNN),
1115   BFD_JUMP_TABLE_DYNAMIC (bfd_elfNN),
1116
1117   /* Alternative endian target.  */
1118 #ifdef TARGET_BIG_SYM
1119   & TARGET_BIG_SYM,
1120 #else
1121   NULL,
1122 #endif
1123
1124   /* backend_data: */
1125   &elfNN_bed
1126 };
1127 #endif