gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / bfd / elfxx-target.h
1 /* Target definitions for NN-bit ELF
2 Copyright (C) 1993-2020 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_OSABI
366 #define ELF_OSABI ELFOSABI_NONE
367 #endif
368
369 #ifndef ELF_MAXPAGESIZE
370 # error ELF_MAXPAGESIZE is not defined
371 #define ELF_MAXPAGESIZE 1
372 #endif
373
374 #ifndef ELF_COMMONPAGESIZE
375 #define ELF_COMMONPAGESIZE ELF_MAXPAGESIZE
376 #endif
377
378 #ifndef ELF_RELROPAGESIZE
379 #define ELF_RELROPAGESIZE ELF_COMMONPAGESIZE
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_RELROPAGESIZE > ELF_MAXPAGESIZE
390 # error ELF_RELROPAGESIZE > ELF_MAXPAGESIZE
391 #endif
392 #if ELF_MINPAGESIZE > ELF_COMMONPAGESIZE
393 # error ELF_MINPAGESIZE > ELF_COMMONPAGESIZE
394 #endif
395 #if ELF_MINPAGESIZE > ELF_RELROPAGESIZE
396 # error ELF_MINPAGESIZE > ELF_RELROPAGESIZE
397 #endif
398
399 #ifndef ELF_DYNAMIC_SEC_FLAGS
400 /* Note that we set the SEC_IN_MEMORY flag for these sections. */
401 #define ELF_DYNAMIC_SEC_FLAGS \
402 (SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS \
403 | SEC_IN_MEMORY | SEC_LINKER_CREATED)
404 #endif
405
406 #ifndef elf_backend_collect
407 #define elf_backend_collect FALSE
408 #endif
409 #ifndef elf_backend_type_change_ok
410 #define elf_backend_type_change_ok FALSE
411 #endif
412
413 #ifndef elf_backend_sym_is_global
414 #define elf_backend_sym_is_global 0
415 #endif
416 #ifndef elf_backend_object_p
417 #define elf_backend_object_p 0
418 #endif
419 #ifndef elf_backend_symbol_processing
420 #define elf_backend_symbol_processing 0
421 #endif
422 #ifndef elf_backend_symbol_table_processing
423 #define elf_backend_symbol_table_processing 0
424 #endif
425 #ifndef elf_backend_get_symbol_type
426 #define elf_backend_get_symbol_type 0
427 #endif
428 #ifndef elf_backend_archive_symbol_lookup
429 #define elf_backend_archive_symbol_lookup _bfd_elf_archive_symbol_lookup
430 #endif
431 #ifndef elf_backend_name_local_section_symbols
432 #define elf_backend_name_local_section_symbols 0
433 #endif
434 #ifndef elf_backend_section_processing
435 #define elf_backend_section_processing 0
436 #endif
437 #ifndef elf_backend_section_from_shdr
438 #define elf_backend_section_from_shdr _bfd_elf_make_section_from_shdr
439 #endif
440 #ifndef elf_backend_section_flags
441 #define elf_backend_section_flags 0
442 #endif
443 #ifndef elf_backend_get_sec_type_attr
444 #define elf_backend_get_sec_type_attr _bfd_elf_get_sec_type_attr
445 #endif
446 #ifndef elf_backend_section_from_phdr
447 #define elf_backend_section_from_phdr _bfd_elf_make_section_from_phdr
448 #endif
449 #ifndef elf_backend_fake_sections
450 #define elf_backend_fake_sections 0
451 #endif
452 #ifndef elf_backend_section_from_bfd_section
453 #define elf_backend_section_from_bfd_section 0
454 #endif
455 #ifndef elf_backend_add_symbol_hook
456 #define elf_backend_add_symbol_hook 0
457 #endif
458 #ifndef elf_backend_link_output_symbol_hook
459 #define elf_backend_link_output_symbol_hook 0
460 #endif
461 #ifndef elf_backend_create_dynamic_sections
462 #define elf_backend_create_dynamic_sections 0
463 #endif
464 #ifndef elf_backend_omit_section_dynsym
465 #define elf_backend_omit_section_dynsym _bfd_elf_omit_section_dynsym_default
466 #endif
467 #ifndef elf_backend_relocs_compatible
468 #define elf_backend_relocs_compatible _bfd_elf_default_relocs_compatible
469 #endif
470 #ifndef elf_backend_check_relocs
471 #define elf_backend_check_relocs 0
472 #endif
473 #ifndef elf_backend_check_directives
474 #define elf_backend_check_directives 0
475 #endif
476 #ifndef elf_backend_notice_as_needed
477 #define elf_backend_notice_as_needed _bfd_elf_notice_as_needed
478 #endif
479 #ifndef elf_backend_adjust_dynamic_symbol
480 #define elf_backend_adjust_dynamic_symbol 0
481 #endif
482 #ifndef elf_backend_always_size_sections
483 #define elf_backend_always_size_sections 0
484 #endif
485 #ifndef elf_backend_size_dynamic_sections
486 #define elf_backend_size_dynamic_sections 0
487 #endif
488 #ifndef elf_backend_strip_zero_sized_dynamic_sections
489 #define elf_backend_strip_zero_sized_dynamic_sections 0
490 #endif
491 #ifndef elf_backend_init_index_section
492 #define elf_backend_init_index_section _bfd_void_bfd_link
493 #endif
494 #ifndef elf_backend_relocate_section
495 #define elf_backend_relocate_section 0
496 #endif
497 #ifndef elf_backend_finish_dynamic_symbol
498 #define elf_backend_finish_dynamic_symbol 0
499 #endif
500 #ifndef elf_backend_finish_dynamic_sections
501 #define elf_backend_finish_dynamic_sections 0
502 #endif
503 #ifndef elf_backend_begin_write_processing
504 #define elf_backend_begin_write_processing 0
505 #endif
506 #ifndef elf_backend_final_write_processing
507 #define elf_backend_final_write_processing _bfd_elf_final_write_processing
508 #endif
509 #ifndef elf_backend_additional_program_headers
510 #define elf_backend_additional_program_headers 0
511 #endif
512 #ifndef elf_backend_modify_segment_map
513 #define elf_backend_modify_segment_map 0
514 #endif
515 #ifndef elf_backend_modify_headers
516 #define elf_backend_modify_headers _bfd_elf_modify_headers
517 #endif
518 #ifndef elf_backend_allow_non_load_phdr
519 #define elf_backend_allow_non_load_phdr 0
520 #endif
521 #ifndef elf_backend_ecoff_debug_swap
522 #define elf_backend_ecoff_debug_swap 0
523 #endif
524 #ifndef elf_backend_bfd_from_remote_memory
525 #define elf_backend_bfd_from_remote_memory _bfd_elfNN_bfd_from_remote_memory
526 #endif
527 #ifndef elf_backend_core_find_build_id
528 #define elf_backend_core_find_build_id _bfd_elfNN_core_find_build_id
529 #endif
530 #ifndef elf_backend_got_header_size
531 #define elf_backend_got_header_size 0
532 #endif
533 #ifndef elf_backend_got_elt_size
534 #define elf_backend_got_elt_size _bfd_elf_default_got_elt_size
535 #endif
536 #ifndef elf_backend_obj_attrs_vendor
537 #define elf_backend_obj_attrs_vendor NULL
538 #endif
539 #ifndef elf_backend_obj_attrs_section
540 #define elf_backend_obj_attrs_section NULL
541 #endif
542 #ifndef elf_backend_obj_attrs_arg_type
543 #define elf_backend_obj_attrs_arg_type NULL
544 #endif
545 #ifndef elf_backend_obj_attrs_section_type
546 #define elf_backend_obj_attrs_section_type SHT_GNU_ATTRIBUTES
547 #endif
548 #ifndef elf_backend_obj_attrs_order
549 #define elf_backend_obj_attrs_order NULL
550 #endif
551 #ifndef elf_backend_obj_attrs_handle_unknown
552 #define elf_backend_obj_attrs_handle_unknown NULL
553 #endif
554 #ifndef elf_backend_parse_gnu_properties
555 #define elf_backend_parse_gnu_properties NULL
556 #endif
557 #ifndef elf_backend_merge_gnu_properties
558 #define elf_backend_merge_gnu_properties NULL
559 #endif
560 #ifndef elf_backend_setup_gnu_properties
561 #define elf_backend_setup_gnu_properties _bfd_elf_link_setup_gnu_properties
562 #endif
563 #ifndef elf_backend_fixup_gnu_properties
564 #define elf_backend_fixup_gnu_properties NULL
565 #endif
566 #ifndef elf_backend_static_tls_alignment
567 #define elf_backend_static_tls_alignment 1
568 #endif
569 #ifndef elf_backend_init_file_header
570 #define elf_backend_init_file_header _bfd_elf_init_file_header
571 #endif
572 #ifndef elf_backend_print_symbol_all
573 #define elf_backend_print_symbol_all NULL
574 #endif
575 #ifndef elf_backend_output_arch_local_syms
576 #define elf_backend_output_arch_local_syms NULL
577 #endif
578 #ifndef elf_backend_output_arch_syms
579 #define elf_backend_output_arch_syms NULL
580 #endif
581 #ifndef elf_backend_filter_implib_symbols
582 #define elf_backend_filter_implib_symbols NULL
583 #endif
584 #ifndef elf_backend_copy_indirect_symbol
585 #define elf_backend_copy_indirect_symbol _bfd_elf_link_hash_copy_indirect
586 #endif
587 #ifndef elf_backend_hide_symbol
588 #define elf_backend_hide_symbol _bfd_elf_link_hash_hide_symbol
589 #endif
590 #ifndef elf_backend_fixup_symbol
591 #define elf_backend_fixup_symbol NULL
592 #endif
593 #ifndef elf_backend_merge_symbol_attribute
594 #define elf_backend_merge_symbol_attribute NULL
595 #endif
596 #ifndef elf_backend_get_target_dtag
597 #define elf_backend_get_target_dtag NULL
598 #endif
599 #ifndef elf_backend_ignore_undef_symbol
600 #define elf_backend_ignore_undef_symbol NULL
601 #endif
602 #ifndef elf_backend_emit_relocs
603 #define elf_backend_emit_relocs _bfd_elf_link_output_relocs
604 #endif
605 #ifndef elf_backend_update_relocs
606 #define elf_backend_update_relocs NULL
607 #endif
608 #ifndef elf_backend_count_relocs
609 #define elf_backend_count_relocs NULL
610 #endif
611 #ifndef elf_backend_count_additional_relocs
612 #define elf_backend_count_additional_relocs NULL
613 #endif
614 #ifndef elf_backend_sort_relocs_p
615 #define elf_backend_sort_relocs_p NULL
616 #endif
617 #ifndef elf_backend_grok_prstatus
618 #define elf_backend_grok_prstatus NULL
619 #endif
620 #ifndef elf_backend_grok_psinfo
621 #define elf_backend_grok_psinfo NULL
622 #endif
623 #ifndef elf_backend_grok_freebsd_prstatus
624 #define elf_backend_grok_freebsd_prstatus NULL
625 #endif
626 #ifndef elf_backend_write_core_note
627 #define elf_backend_write_core_note NULL
628 #endif
629 #ifndef elf_backend_lookup_section_flags_hook
630 #define elf_backend_lookup_section_flags_hook NULL
631 #endif
632 #ifndef elf_backend_reloc_type_class
633 #define elf_backend_reloc_type_class _bfd_elf_reloc_type_class
634 #endif
635 #ifndef elf_backend_discard_info
636 #define elf_backend_discard_info NULL
637 #endif
638 #ifndef elf_backend_ignore_discarded_relocs
639 #define elf_backend_ignore_discarded_relocs NULL
640 #endif
641 #ifndef elf_backend_action_discarded
642 #define elf_backend_action_discarded _bfd_elf_default_action_discarded
643 #endif
644 #ifndef elf_backend_eh_frame_address_size
645 #define elf_backend_eh_frame_address_size _bfd_elf_eh_frame_address_size
646 #endif
647 #ifndef elf_backend_can_make_relative_eh_frame
648 #define elf_backend_can_make_relative_eh_frame _bfd_elf_can_make_relative
649 #endif
650 #ifndef elf_backend_can_make_lsda_relative_eh_frame
651 #define elf_backend_can_make_lsda_relative_eh_frame _bfd_elf_can_make_relative
652 #endif
653 #ifndef elf_backend_encode_eh_address
654 #define elf_backend_encode_eh_address _bfd_elf_encode_eh_address
655 #endif
656 #ifndef elf_backend_write_section
657 #define elf_backend_write_section NULL
658 #endif
659 #ifndef elf_backend_mips_irix_compat
660 #define elf_backend_mips_irix_compat NULL
661 #endif
662 #ifndef elf_backend_mips_rtype_to_howto
663 #define elf_backend_mips_rtype_to_howto NULL
664 #endif
665
666 /* Previously, backends could only use SHT_REL or SHT_RELA relocation
667 sections, but not both. They defined USE_REL to indicate SHT_REL
668 sections, and left it undefined to indicated SHT_RELA sections.
669 For backwards compatibility, we still support this usage. */
670 #ifndef USE_REL
671 #define USE_REL 0
672 #endif
673
674 /* Use these in new code. */
675 #ifndef elf_backend_may_use_rel_p
676 #define elf_backend_may_use_rel_p USE_REL
677 #endif
678 #ifndef elf_backend_may_use_rela_p
679 #define elf_backend_may_use_rela_p !USE_REL
680 #endif
681 #ifndef elf_backend_default_use_rela_p
682 #define elf_backend_default_use_rela_p !USE_REL
683 #endif
684 #ifndef elf_backend_rela_plts_and_copies_p
685 #define elf_backend_rela_plts_and_copies_p elf_backend_default_use_rela_p
686 #endif
687
688 #ifndef elf_backend_rela_normal
689 #define elf_backend_rela_normal 0
690 #endif
691
692 #ifndef elf_backend_dtrel_excludes_plt
693 #define elf_backend_dtrel_excludes_plt 0
694 #endif
695
696 #ifndef elf_backend_plt_sym_val
697 #define elf_backend_plt_sym_val NULL
698 #endif
699 #ifndef elf_backend_relplt_name
700 #define elf_backend_relplt_name NULL
701 #endif
702
703 #ifndef ELF_MACHINE_ALT1
704 #define ELF_MACHINE_ALT1 0
705 #endif
706
707 #ifndef ELF_MACHINE_ALT2
708 #define ELF_MACHINE_ALT2 0
709 #endif
710
711 #ifndef elf_backend_size_info
712 #define elf_backend_size_info _bfd_elfNN_size_info
713 #endif
714
715 #ifndef elf_backend_special_sections
716 #define elf_backend_special_sections NULL
717 #endif
718
719 #ifndef elf_backend_sign_extend_vma
720 #define elf_backend_sign_extend_vma 0
721 #endif
722
723 #ifndef elf_backend_link_order_error_handler
724 #define elf_backend_link_order_error_handler _bfd_error_handler
725 #endif
726
727 #ifndef elf_backend_common_definition
728 #define elf_backend_common_definition _bfd_elf_common_definition
729 #endif
730
731 #ifndef elf_backend_common_section_index
732 #define elf_backend_common_section_index _bfd_elf_common_section_index
733 #endif
734
735 #ifndef elf_backend_common_section
736 #define elf_backend_common_section _bfd_elf_common_section
737 #endif
738
739 #ifndef elf_backend_merge_symbol
740 #define elf_backend_merge_symbol NULL
741 #endif
742
743 #ifndef elf_backend_hash_symbol
744 #define elf_backend_hash_symbol _bfd_elf_hash_symbol
745 #endif
746
747 #ifndef elf_backend_record_xhash_symbol
748 #define elf_backend_record_xhash_symbol NULL
749 #endif
750
751 #ifndef elf_backend_is_function_type
752 #define elf_backend_is_function_type _bfd_elf_is_function_type
753 #endif
754
755 #ifndef elf_backend_maybe_function_sym
756 #define elf_backend_maybe_function_sym _bfd_elf_maybe_function_sym
757 #endif
758
759 #ifndef elf_backend_get_reloc_section
760 #define elf_backend_get_reloc_section _bfd_elf_plt_get_reloc_section
761 #endif
762
763 #ifndef elf_backend_copy_special_section_fields
764 #define elf_backend_copy_special_section_fields _bfd_elf_copy_special_section_fields
765 #endif
766
767 #ifndef elf_backend_compact_eh_encoding
768 #define elf_backend_compact_eh_encoding NULL
769 #endif
770
771 #ifndef elf_backend_cant_unwind_opcode
772 #define elf_backend_cant_unwind_opcode NULL
773 #endif
774
775 #ifndef elf_backend_init_secondary_reloc_section
776 #define elf_backend_init_secondary_reloc_section _bfd_elf_init_secondary_reloc_section
777 #endif
778
779 #ifndef elf_backend_slurp_secondary_reloc_section
780 #define elf_backend_slurp_secondary_reloc_section _bfd_elf_slurp_secondary_reloc_section
781 #endif
782
783 #ifndef elf_backend_write_secondary_reloc_section
784 #define elf_backend_write_secondary_reloc_section _bfd_elf_write_secondary_reloc_section
785 #endif
786
787 #ifndef elf_backend_symbol_section_index
788 #define elf_backend_symbol_section_index NULL
789 #endif
790
791 #ifndef elf_match_priority
792 #define elf_match_priority \
793 (ELF_ARCH == bfd_arch_unknown ? 2 : ELF_OSABI == ELFOSABI_NONE ? 1 : 0)
794 #endif
795
796 extern const struct elf_size_info _bfd_elfNN_size_info;
797
798 static struct elf_backend_data elfNN_bed =
799 {
800 ELF_ARCH, /* arch */
801 ELF_TARGET_ID, /* target_id */
802 ELF_MACHINE_CODE, /* elf_machine_code */
803 ELF_OSABI, /* elf_osabi */
804 ELF_MAXPAGESIZE, /* maxpagesize */
805 ELF_MINPAGESIZE, /* minpagesize */
806 ELF_COMMONPAGESIZE, /* commonpagesize */
807 ELF_RELROPAGESIZE, /* commonpagesize to use with -z relro */
808 ELF_DYNAMIC_SEC_FLAGS, /* dynamic_sec_flags */
809 elf_backend_arch_data,
810 elf_info_to_howto,
811 elf_info_to_howto_rel,
812 elf_backend_sym_is_global,
813 elf_backend_object_p,
814 elf_backend_symbol_processing,
815 elf_backend_symbol_table_processing,
816 elf_backend_get_symbol_type,
817 elf_backend_archive_symbol_lookup,
818 elf_backend_name_local_section_symbols,
819 elf_backend_section_processing,
820 elf_backend_section_from_shdr,
821 elf_backend_section_flags,
822 elf_backend_get_sec_type_attr,
823 elf_backend_section_from_phdr,
824 elf_backend_fake_sections,
825 elf_backend_section_from_bfd_section,
826 elf_backend_add_symbol_hook,
827 elf_backend_link_output_symbol_hook,
828 elf_backend_create_dynamic_sections,
829 elf_backend_omit_section_dynsym,
830 elf_backend_relocs_compatible,
831 elf_backend_check_relocs,
832 elf_backend_check_directives,
833 elf_backend_notice_as_needed,
834 elf_backend_adjust_dynamic_symbol,
835 elf_backend_always_size_sections,
836 elf_backend_size_dynamic_sections,
837 elf_backend_strip_zero_sized_dynamic_sections,
838 elf_backend_init_index_section,
839 elf_backend_relocate_section,
840 elf_backend_finish_dynamic_symbol,
841 elf_backend_finish_dynamic_sections,
842 elf_backend_begin_write_processing,
843 elf_backend_final_write_processing,
844 elf_backend_additional_program_headers,
845 elf_backend_modify_segment_map,
846 elf_backend_modify_headers,
847 elf_backend_allow_non_load_phdr,
848 elf_backend_gc_keep,
849 elf_backend_gc_mark_dynamic_ref,
850 elf_backend_gc_mark_hook,
851 elf_backend_gc_mark_extra_sections,
852 elf_backend_init_file_header,
853 elf_backend_print_symbol_all,
854 elf_backend_output_arch_local_syms,
855 elf_backend_output_arch_syms,
856 elf_backend_filter_implib_symbols,
857 elf_backend_copy_indirect_symbol,
858 elf_backend_hide_symbol,
859 elf_backend_fixup_symbol,
860 elf_backend_merge_symbol_attribute,
861 elf_backend_get_target_dtag,
862 elf_backend_ignore_undef_symbol,
863 elf_backend_emit_relocs,
864 elf_backend_update_relocs,
865 elf_backend_count_relocs,
866 elf_backend_count_additional_relocs,
867 elf_backend_sort_relocs_p,
868 elf_backend_grok_prstatus,
869 elf_backend_grok_psinfo,
870 elf_backend_grok_freebsd_prstatus,
871 elf_backend_write_core_note,
872 elf_backend_lookup_section_flags_hook,
873 elf_backend_reloc_type_class,
874 elf_backend_discard_info,
875 elf_backend_ignore_discarded_relocs,
876 elf_backend_action_discarded,
877 elf_backend_eh_frame_address_size,
878 elf_backend_can_make_relative_eh_frame,
879 elf_backend_can_make_lsda_relative_eh_frame,
880 elf_backend_encode_eh_address,
881 elf_backend_write_section,
882 elf_backend_mips_irix_compat,
883 elf_backend_mips_rtype_to_howto,
884 elf_backend_ecoff_debug_swap,
885 elf_backend_bfd_from_remote_memory,
886 elf_backend_core_find_build_id,
887 elf_backend_plt_sym_val,
888 elf_backend_common_definition,
889 elf_backend_common_section_index,
890 elf_backend_common_section,
891 elf_backend_merge_symbol,
892 elf_backend_hash_symbol,
893 elf_backend_record_xhash_symbol,
894 elf_backend_is_function_type,
895 elf_backend_maybe_function_sym,
896 elf_backend_get_reloc_section,
897 elf_backend_copy_special_section_fields,
898 elf_backend_link_order_error_handler,
899 elf_backend_relplt_name,
900 ELF_MACHINE_ALT1,
901 ELF_MACHINE_ALT2,
902 &elf_backend_size_info,
903 elf_backend_special_sections,
904 elf_backend_got_header_size,
905 elf_backend_got_elt_size,
906 elf_backend_obj_attrs_vendor,
907 elf_backend_obj_attrs_section,
908 elf_backend_obj_attrs_arg_type,
909 elf_backend_obj_attrs_section_type,
910 elf_backend_obj_attrs_order,
911 elf_backend_obj_attrs_handle_unknown,
912 elf_backend_parse_gnu_properties,
913 elf_backend_merge_gnu_properties,
914 elf_backend_setup_gnu_properties,
915 elf_backend_fixup_gnu_properties,
916 elf_backend_compact_eh_encoding,
917 elf_backend_cant_unwind_opcode,
918 elf_backend_symbol_section_index,
919 elf_backend_init_secondary_reloc_section,
920 elf_backend_slurp_secondary_reloc_section,
921 elf_backend_write_secondary_reloc_section,
922 elf_backend_static_tls_alignment,
923 elf_backend_stack_align,
924 elf_backend_strtab_flags,
925 elf_backend_collect,
926 elf_backend_type_change_ok,
927 elf_backend_may_use_rel_p,
928 elf_backend_may_use_rela_p,
929 elf_backend_default_use_rela_p,
930 elf_backend_rela_plts_and_copies_p,
931 elf_backend_rela_normal,
932 elf_backend_dtrel_excludes_plt,
933 elf_backend_sign_extend_vma,
934 elf_backend_want_got_plt,
935 elf_backend_plt_readonly,
936 elf_backend_want_plt_sym,
937 elf_backend_plt_not_loaded,
938 elf_backend_plt_alignment,
939 elf_backend_can_gc_sections,
940 elf_backend_can_refcount,
941 elf_backend_want_got_sym,
942 elf_backend_want_dynbss,
943 elf_backend_want_dynrelro,
944 elf_backend_want_p_paddr_set_to_zero,
945 elf_backend_no_page_alias,
946 elf_backend_default_execstack,
947 elf_backend_caches_rawsize,
948 elf_backend_extern_protected_data,
949 elf_backend_always_renumber_dynsyms,
950 elf_backend_linux_prpsinfo32_ugid16,
951 elf_backend_linux_prpsinfo64_ugid16
952 };
953
954 /* Forward declaration for use when initialising alternative_target field. */
955 #ifdef TARGET_LITTLE_SYM
956 extern const bfd_target TARGET_LITTLE_SYM;
957 #endif
958
959 #ifdef TARGET_BIG_SYM
960 const bfd_target TARGET_BIG_SYM =
961 {
962 /* name: identify kind of target */
963 TARGET_BIG_NAME,
964
965 /* flavour: general indication about file */
966 bfd_target_elf_flavour,
967
968 /* byteorder: data is big endian */
969 BFD_ENDIAN_BIG,
970
971 /* header_byteorder: header is also big endian */
972 BFD_ENDIAN_BIG,
973
974 /* object_flags: mask of all file flags */
975 (HAS_RELOC | EXEC_P | HAS_LINENO | HAS_DEBUG | HAS_SYMS | HAS_LOCALS
976 | DYNAMIC | WP_TEXT | D_PAGED | BFD_COMPRESS | BFD_DECOMPRESS
977 | BFD_COMPRESS_GABI | BFD_CONVERT_ELF_COMMON | BFD_USE_ELF_STT_COMMON),
978
979 /* section_flags: mask of all section flags */
980 (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_READONLY
981 | SEC_CODE | SEC_DATA | SEC_DEBUGGING | SEC_EXCLUDE | SEC_SORT_ENTRIES
982 | SEC_SMALL_DATA | SEC_MERGE | SEC_STRINGS | SEC_GROUP),
983
984 /* leading_symbol_char: is the first char of a user symbol
985 predictable, and if so what is it */
986 elf_symbol_leading_char,
987
988 /* ar_pad_char: pad character for filenames within an archive header
989 FIXME: this really has nothing to do with ELF, this is a characteristic
990 of the archiver and/or os and should be independently tunable */
991 '/',
992
993 /* ar_max_namelen: maximum number of characters in an archive header
994 FIXME: this really has nothing to do with ELF, this is a characteristic
995 of the archiver and should be independently tunable. The System V ABI,
996 Chapter 7 (Formats & Protocols), Archive section sets this as 15. */
997 15,
998
999 elf_match_priority,
1000
1001 /* Routines to byte-swap various sized integers from the data sections */
1002 bfd_getb64, bfd_getb_signed_64, bfd_putb64,
1003 bfd_getb32, bfd_getb_signed_32, bfd_putb32,
1004 bfd_getb16, bfd_getb_signed_16, bfd_putb16,
1005
1006 /* Routines to byte-swap various sized integers from the file headers */
1007 bfd_getb64, bfd_getb_signed_64, bfd_putb64,
1008 bfd_getb32, bfd_getb_signed_32, bfd_putb32,
1009 bfd_getb16, bfd_getb_signed_16, bfd_putb16,
1010
1011 /* bfd_check_format: check the format of a file being read */
1012 { _bfd_dummy_target, /* unknown format */
1013 bfd_elfNN_object_p, /* assembler/linker output (object file) */
1014 bfd_elfNN_archive_p, /* an archive */
1015 bfd_elfNN_core_file_p /* a core file */
1016 },
1017
1018 /* bfd_set_format: set the format of a file being written */
1019 { _bfd_bool_bfd_false_error,
1020 bfd_elfNN_mkobject,
1021 bfd_elfNN_mkarchive,
1022 bfd_elfNN_mkcorefile
1023 },
1024
1025 /* bfd_write_contents: write cached information into a file being written */
1026 { _bfd_bool_bfd_false_error,
1027 bfd_elfNN_write_object_contents,
1028 bfd_elfNN_write_archive_contents,
1029 bfd_elfNN_write_corefile_contents,
1030 },
1031
1032 BFD_JUMP_TABLE_GENERIC (bfd_elfNN),
1033 BFD_JUMP_TABLE_COPY (bfd_elfNN),
1034 BFD_JUMP_TABLE_CORE (bfd_elfNN),
1035 #ifdef bfd_elfNN_archive_functions
1036 BFD_JUMP_TABLE_ARCHIVE (bfd_elfNN_archive),
1037 #elif defined USE_64_BIT_ARCHIVE
1038 BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_64_bit),
1039 #else
1040 BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_coff),
1041 #endif
1042 BFD_JUMP_TABLE_SYMBOLS (bfd_elfNN),
1043 BFD_JUMP_TABLE_RELOCS (bfd_elfNN),
1044 BFD_JUMP_TABLE_WRITE (bfd_elfNN),
1045 BFD_JUMP_TABLE_LINK (bfd_elfNN),
1046 BFD_JUMP_TABLE_DYNAMIC (bfd_elfNN),
1047
1048 /* Alternative endian target. */
1049 #ifdef TARGET_LITTLE_SYM
1050 & TARGET_LITTLE_SYM,
1051 #else
1052 NULL,
1053 #endif
1054
1055 /* backend_data: */
1056 &elfNN_bed
1057 };
1058 #endif
1059
1060 #ifdef TARGET_LITTLE_SYM
1061 const bfd_target TARGET_LITTLE_SYM =
1062 {
1063 /* name: identify kind of target */
1064 TARGET_LITTLE_NAME,
1065
1066 /* flavour: general indication about file */
1067 bfd_target_elf_flavour,
1068
1069 /* byteorder: data is little endian */
1070 BFD_ENDIAN_LITTLE,
1071
1072 /* header_byteorder: header is also little endian */
1073 BFD_ENDIAN_LITTLE,
1074
1075 /* object_flags: mask of all file flags */
1076 (HAS_RELOC | EXEC_P | HAS_LINENO | HAS_DEBUG | HAS_SYMS | HAS_LOCALS
1077 | DYNAMIC | WP_TEXT | D_PAGED | BFD_COMPRESS | BFD_DECOMPRESS
1078 | BFD_COMPRESS_GABI | BFD_CONVERT_ELF_COMMON | BFD_USE_ELF_STT_COMMON),
1079
1080 /* section_flags: mask of all section flags */
1081 (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_READONLY
1082 | SEC_CODE | SEC_DATA | SEC_DEBUGGING | SEC_EXCLUDE | SEC_SORT_ENTRIES
1083 | SEC_SMALL_DATA | SEC_MERGE | SEC_STRINGS | SEC_GROUP),
1084
1085 /* leading_symbol_char: is the first char of a user symbol
1086 predictable, and if so what is it */
1087 elf_symbol_leading_char,
1088
1089 /* ar_pad_char: pad character for filenames within an archive header
1090 FIXME: this really has nothing to do with ELF, this is a characteristic
1091 of the archiver and/or os and should be independently tunable */
1092 '/',
1093
1094 /* ar_max_namelen: maximum number of characters in an archive header
1095 FIXME: this really has nothing to do with ELF, this is a characteristic
1096 of the archiver and should be independently tunable. The System V ABI,
1097 Chapter 7 (Formats & Protocols), Archive section sets this as 15. */
1098 15,
1099
1100 elf_match_priority,
1101
1102 /* Routines to byte-swap various sized integers from the data sections */
1103 bfd_getl64, bfd_getl_signed_64, bfd_putl64,
1104 bfd_getl32, bfd_getl_signed_32, bfd_putl32,
1105 bfd_getl16, bfd_getl_signed_16, bfd_putl16,
1106
1107 /* Routines to byte-swap various sized integers from the file headers */
1108 bfd_getl64, bfd_getl_signed_64, bfd_putl64,
1109 bfd_getl32, bfd_getl_signed_32, bfd_putl32,
1110 bfd_getl16, bfd_getl_signed_16, bfd_putl16,
1111
1112 /* bfd_check_format: check the format of a file being read */
1113 { _bfd_dummy_target, /* unknown format */
1114 bfd_elfNN_object_p, /* assembler/linker output (object file) */
1115 bfd_elfNN_archive_p, /* an archive */
1116 bfd_elfNN_core_file_p /* a core file */
1117 },
1118
1119 /* bfd_set_format: set the format of a file being written */
1120 { _bfd_bool_bfd_false_error,
1121 bfd_elfNN_mkobject,
1122 bfd_elfNN_mkarchive,
1123 bfd_elfNN_mkcorefile
1124 },
1125
1126 /* bfd_write_contents: write cached information into a file being written */
1127 { _bfd_bool_bfd_false_error,
1128 bfd_elfNN_write_object_contents,
1129 bfd_elfNN_write_archive_contents,
1130 bfd_elfNN_write_corefile_contents,
1131 },
1132
1133 BFD_JUMP_TABLE_GENERIC (bfd_elfNN),
1134 BFD_JUMP_TABLE_COPY (bfd_elfNN),
1135 BFD_JUMP_TABLE_CORE (bfd_elfNN),
1136 #ifdef bfd_elfNN_archive_functions
1137 BFD_JUMP_TABLE_ARCHIVE (bfd_elfNN_archive),
1138 #elif defined USE_64_BIT_ARCHIVE
1139 BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_64_bit),
1140 #else
1141 BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_coff),
1142 #endif
1143 BFD_JUMP_TABLE_SYMBOLS (bfd_elfNN),
1144 BFD_JUMP_TABLE_RELOCS (bfd_elfNN),
1145 BFD_JUMP_TABLE_WRITE (bfd_elfNN),
1146 BFD_JUMP_TABLE_LINK (bfd_elfNN),
1147 BFD_JUMP_TABLE_DYNAMIC (bfd_elfNN),
1148
1149 /* Alternative endian target. */
1150 #ifdef TARGET_BIG_SYM
1151 & TARGET_BIG_SYM,
1152 #else
1153 NULL,
1154 #endif
1155
1156 /* backend_data: */
1157 &elfNN_bed
1158 };
1159 #endif
This page took 0.059687 seconds and 4 git commands to generate.