Lines Matching refs:abfd
45 vms_initialize (bfd * abfd) in vms_initialize() argument
50 bfd_set_start_address (abfd, (bfd_vma) -1); in vms_initialize()
53 abfd->tdata.any = bfd_alloc (abfd, amt); in vms_initialize()
54 if (abfd->tdata.any == NULL) in vms_initialize()
70 PRIV (stack) = bfd_alloc (abfd, amt); in vms_initialize()
76 PRIV (vms_symbol_table) = bfd_alloc (abfd, amt); in vms_initialize()
85 PRIV (location_stack) = bfd_alloc (abfd, amt); in vms_initialize()
93 PRIV (output_buf) = bfd_alloc (abfd, amt); in vms_initialize()
108 bfd_release (abfd, abfd->tdata.any); in vms_initialize()
109 abfd->tdata.any = NULL; in vms_initialize()
156 vms_fixup_sections (bfd * abfd) in vms_fixup_sections() argument
176 vms_object_p (bfd * abfd) in vms_object_p() argument
182 void * tdata_save = abfd->tdata.any; in vms_object_p()
183 bfd_vma saddr_save = bfd_get_start_address (abfd); in vms_object_p()
186 vms_debug (1, "vms_object_p (%p)\n", abfd); in vms_object_p()
189 if (!vms_initialize (abfd)) in vms_object_p()
192 if (bfd_seek (abfd, (file_ptr) 0, SEEK_SET)) in vms_object_p()
200 vms_debug (7, "reading at %08lx\n", bfd_tell (abfd)); in vms_object_p()
202 if (_bfd_vms_next_record (abfd) < 0) in vms_object_p()
213 if (! vms_fixup_sections (abfd)) in vms_object_p()
236 err = _bfd_vms_slurp_hdr (abfd, prev_type); in vms_object_p()
241 err = _bfd_vms_slurp_eom (abfd, prev_type); in vms_object_p()
245 err = _bfd_vms_slurp_gsd (abfd, prev_type); in vms_object_p()
249 err = _bfd_vms_slurp_tir (abfd, prev_type); in vms_object_p()
253 err = _bfd_vms_slurp_dbg (abfd, prev_type); in vms_object_p()
257 err = _bfd_vms_slurp_tbt (abfd, prev_type); in vms_object_p()
260 err = _bfd_vms_slurp_lnk (abfd, prev_type); in vms_object_p()
277 if (! vms_fixup_sections (abfd)) in vms_object_p()
311 abfd->arch_info = arch; in vms_object_p()
318 if (abfd->tdata.any != tdata_save && abfd->tdata.any != NULL) in vms_object_p()
319 bfd_release (abfd, abfd->tdata.any); in vms_object_p()
320 abfd->tdata.any = tdata_save; in vms_object_p()
321 bfd_set_start_address (abfd, saddr_save); in vms_object_p()
329 vms_archive_p (bfd * abfd ATTRIBUTE_UNUSED) in vms_archive_p()
332 vms_debug (1, "vms_archive_p (%p)\n", abfd); in vms_archive_p()
341 vms_mkobject (bfd * abfd) in vms_mkobject() argument
344 vms_debug (1, "vms_mkobject (%p)\n", abfd); in vms_mkobject()
347 if (!vms_initialize (abfd)) in vms_mkobject()
361 abfd->arch_info = arch; in vms_mkobject()
370 vms_write_object_contents (bfd * abfd) in vms_write_object_contents() argument
373 vms_debug (1, "vms_write_object_contents (%p)\n", abfd); in vms_write_object_contents()
376 if (abfd->section_count > 0) /* we have sections */ in vms_write_object_contents()
380 if (_bfd_vms_write_hdr (abfd, OBJ_S_C_HDR) != 0) in vms_write_object_contents()
382 if (_bfd_vms_write_gsd (abfd, OBJ_S_C_GSD) != 0) in vms_write_object_contents()
384 if (_bfd_vms_write_tir (abfd, OBJ_S_C_TIR) != 0) in vms_write_object_contents()
386 if (_bfd_vms_write_tbt (abfd, OBJ_S_C_TBT) != 0) in vms_write_object_contents()
388 if (_bfd_vms_write_dbg (abfd, OBJ_S_C_DBG) != 0) in vms_write_object_contents()
390 if (abfd->section_count > 255) in vms_write_object_contents()
392 if (_bfd_vms_write_eom (abfd, OBJ_S_C_EOMW) != 0) in vms_write_object_contents()
397 if (_bfd_vms_write_eom (abfd, OBJ_S_C_EOM) != 0) in vms_write_object_contents()
403 if (_bfd_vms_write_hdr (abfd, EOBJ_S_C_EMH) != 0) in vms_write_object_contents()
405 if (_bfd_vms_write_gsd (abfd, EOBJ_S_C_EGSD) != 0) in vms_write_object_contents()
407 if (_bfd_vms_write_tir (abfd, EOBJ_S_C_ETIR) != 0) in vms_write_object_contents()
409 if (_bfd_vms_write_tbt (abfd, EOBJ_S_C_ETBT) != 0) in vms_write_object_contents()
411 if (_bfd_vms_write_dbg (abfd, EOBJ_S_C_EDBG) != 0) in vms_write_object_contents()
413 if (_bfd_vms_write_eom (abfd, EOBJ_S_C_EEOM) != 0) in vms_write_object_contents()
425 vms_close_and_cleanup (bfd * abfd) in vms_close_and_cleanup() argument
428 vms_debug (1, "vms_close_and_cleanup (%p)\n", abfd); in vms_close_and_cleanup()
430 if (abfd == NULL) in vms_close_and_cleanup()
442 bfd_release (abfd, abfd->tdata.any); in vms_close_and_cleanup()
443 abfd->tdata.any = NULL; in vms_close_and_cleanup()
451 vms_bfd_free_cached_info (bfd * abfd ATTRIBUTE_UNUSED) in vms_bfd_free_cached_info()
454 vms_debug (1, "vms_bfd_free_cached_info (%p)\n", abfd); in vms_bfd_free_cached_info()
462 vms_new_section_hook (bfd * abfd, asection *section) in vms_new_section_hook() argument
465 unsigned int section_count = abfd->section_count + 1; in vms_new_section_hook()
469 abfd, section->index, section->name, section_count); in vms_new_section_hook()
471 bfd_set_section_alignment (abfd, section, 4); in vms_new_section_hook()
498 vms_get_section_contents (bfd * abfd ATTRIBUTE_UNUSED, in vms_get_section_contents()
506 abfd, section->name, buf, offset, (int)buf_size); in vms_get_section_contents()
518 vms_get_section_contents_in_window (bfd * abfd ATTRIBUTE_UNUSED, in vms_get_section_contents_in_window()
526 abfd, section->name, w, offset, (int)count); in vms_get_section_contents_in_window()
573 vms_bfd_set_private_flags (bfd * abfd ATTRIBUTE_UNUSED, in vms_bfd_set_private_flags()
577 vms_debug (1,"vms_bfd_set_private_flags (%p, %lx)\n", abfd, (long)flags); in vms_bfd_set_private_flags()
620 vms_core_file_failing_command (bfd * abfd ATTRIBUTE_UNUSED) in vms_core_file_failing_command()
623 vms_debug (1, "vms_core_file_failing_command (%p)\n", abfd); in vms_core_file_failing_command()
632 vms_core_file_failing_signal (bfd * abfd ATTRIBUTE_UNUSED) in vms_core_file_failing_signal()
635 vms_debug (1, "vms_core_file_failing_signal (%p)\n", abfd); in vms_core_file_failing_signal()
644 vms_core_file_matches_executable_p (bfd * abfd ATTRIBUTE_UNUSED, in vms_core_file_matches_executable_p()
648 vms_debug (1, "vms_core_file_matches_executable_p (%p, %p)\n", abfd, bbfd); in vms_core_file_matches_executable_p()
659 vms_slurp_armap (bfd * abfd ATTRIBUTE_UNUSED) in vms_slurp_armap()
662 vms_debug (1, "vms_slurp_armap (%p)\n", abfd); in vms_slurp_armap()
671 vms_slurp_extended_name_table (bfd * abfd ATTRIBUTE_UNUSED) in vms_slurp_extended_name_table()
674 vms_debug (1, "vms_slurp_extended_name_table (%p)\n", abfd); in vms_slurp_extended_name_table()
683 vms_construct_extended_name_table (bfd * abfd ATTRIBUTE_UNUSED, in vms_construct_extended_name_table()
689 vms_debug (1, "vms_construct_extended_name_table (%p)\n", abfd); in vms_construct_extended_name_table()
697 vms_truncate_arname (bfd * abfd ATTRIBUTE_UNUSED, in vms_truncate_arname()
702 vms_debug (1, "vms_truncate_arname (%p, %s, %s)\n", abfd, pathname, arhdr); in vms_truncate_arname()
726 vms_read_ar_hdr (bfd * abfd ATTRIBUTE_UNUSED) in vms_read_ar_hdr()
729 vms_debug (1, "vms_read_ar_hdr (%p)\n", abfd); in vms_read_ar_hdr()
754 vms_get_elt_at_index (bfd * abfd, symindex index) in vms_get_elt_at_index() argument
757 vms_debug (1, "vms_get_elt_at_index (%p, %p)\n", abfd, index); in vms_get_elt_at_index()
759 return _bfd_generic_get_elt_at_index (abfd, index); in vms_get_elt_at_index()
766 vms_generic_stat_arch_elt (bfd * abfd, struct stat *st) in vms_generic_stat_arch_elt() argument
769 vms_debug (1, "vms_generic_stat_arch_elt (%p, %p)\n", abfd, st); in vms_generic_stat_arch_elt()
771 return bfd_generic_stat_arch_elt (abfd, st); in vms_generic_stat_arch_elt()
777 vms_update_armap_timestamp (bfd * abfd ATTRIBUTE_UNUSED) in vms_update_armap_timestamp()
780 vms_debug (1, "vms_update_armap_timestamp (%p)\n", abfd); in vms_update_armap_timestamp()
793 vms_get_symtab_upper_bound (bfd * abfd) in vms_get_symtab_upper_bound() argument
796 vms_debug (1, "vms_get_symtab_upper_bound (%p), %d symbols\n", abfd, PRIV (gsd_sym_count)); in vms_get_symtab_upper_bound()
809 bfd * abfd = (bfd *) arg; in copy_symbols() local
825 vms_canonicalize_symtab (bfd * abfd, asymbol **symbols) in vms_canonicalize_symtab() argument
828 vms_debug (1, "vms_canonicalize_symtab (%p, <ret>)\n", abfd); in vms_canonicalize_symtab()
832 copy_symbols (NULL, abfd); in vms_canonicalize_symtab()
836 bfd_hash_traverse (PRIV (vms_symbol_table), copy_symbols, abfd); in vms_canonicalize_symtab()
849 vms_print_symbol (bfd * abfd, in vms_print_symbol() argument
855 vms_debug (1, "vms_print_symbol (%p, %p, %p, %d)\n", abfd, file, symbol, how); in vms_print_symbol()
869 bfd_print_symbol_vandf (abfd, file, symbol); in vms_print_symbol()
892 vms_get_symbol_info (bfd * abfd ATTRIBUTE_UNUSED, in vms_get_symbol_info()
899 vms_debug (1, "vms_get_symbol_info (%p, %p, %p)\n", abfd, symbol, ret); in vms_get_symbol_info()
915 else if (bfd_get_section_flags (abfd, sec) & SEC_CODE) in vms_get_symbol_info()
917 else if (bfd_get_section_flags (abfd, sec) & SEC_DATA) in vms_get_symbol_info()
919 else if (bfd_get_section_flags (abfd, sec) & SEC_ALLOC) in vms_get_symbol_info()
935 vms_bfd_is_local_label_name (bfd * abfd ATTRIBUTE_UNUSED, in vms_bfd_is_local_label_name()
939 vms_debug (1, "vms_bfd_is_local_label_name (%p, %s)\n", abfd, name); in vms_bfd_is_local_label_name()
947 vms_get_lineno (bfd * abfd ATTRIBUTE_UNUSED, in vms_get_lineno()
951 vms_debug (1, "vms_get_lineno (%p, %p)\n", abfd, symbol); in vms_get_lineno()
961 vms_find_nearest_line (bfd * abfd ATTRIBUTE_UNUSED, in vms_find_nearest_line()
971 abfd, section->name, symbols, (long int)offset); in vms_find_nearest_line()
977 vms_find_inliner_info (bfd * abfd ATTRIBUTE_UNUSED, in vms_find_inliner_info()
984 abfd); in vms_find_inliner_info()
994 vms_bfd_make_debug_symbol (bfd * abfd ATTRIBUTE_UNUSED, in vms_bfd_make_debug_symbol()
999 vms_debug (1, "vms_bfd_make_debug_symbol (%p, %p, %ld)\n", abfd, ptr, size); in vms_bfd_make_debug_symbol()
1009 vms_read_minisymbols (bfd * abfd, in vms_read_minisymbols() argument
1015 vms_debug (1, "vms_read_minisymbols (%p, %d, %p, %d)\n", abfd, dynamic, minisymsp, *sizep); in vms_read_minisymbols()
1017 return _bfd_generic_read_minisymbols (abfd, dynamic, minisymsp, sizep); in vms_read_minisymbols()
1025 vms_minisymbol_to_symbol (bfd * abfd, in vms_minisymbol_to_symbol() argument
1031 vms_debug (1, "vms_minisymbol_to_symbol (%p, %d, %p, %p)\n", abfd, dynamic, minisym, sym); in vms_minisymbol_to_symbol()
1033 return _bfd_generic_minisymbol_to_symbol (abfd, dynamic, minisym, sym); in vms_minisymbol_to_symbol()
1043 vms_get_reloc_upper_bound (bfd * abfd ATTRIBUTE_UNUSED, in vms_get_reloc_upper_bound()
1047 vms_debug (1, "vms_get_reloc_upper_bound (%p, %s)\n", abfd, section->name); in vms_get_reloc_upper_bound()
1059 vms_canonicalize_reloc (bfd * abfd ATTRIBUTE_UNUSED, in vms_canonicalize_reloc()
1065 vms_debug (1, "vms_canonicalize_reloc (%p, %s, <ret>, <ret>)\n", abfd, section->name); in vms_canonicalize_reloc()
1075 reloc_nil (bfd * abfd ATTRIBUTE_UNUSED, in reloc_nil()
1084 vms_debug (1, "reloc_nil (abfd %p, output_bfd %p)\n", abfd, output_bfd); in reloc_nil()
1324 vms_bfd_reloc_type_lookup (bfd * abfd ATTRIBUTE_UNUSED, in vms_bfd_reloc_type_lookup()
1330 vms_debug (1, "vms_bfd_reloc_type_lookup (%p, %d)\t", abfd, code); in vms_bfd_reloc_type_lookup()
1363 vms_set_arch_mach (bfd * abfd, in vms_set_arch_mach() argument
1368 vms_debug (1, "vms_set_arch_mach (%p, %d, %ld)\n", abfd, arch, mach); in vms_set_arch_mach()
1370 abfd->arch_info = bfd_scan_arch ("alpha"); in vms_set_arch_mach()
1385 vms_set_section_contents (bfd * abfd, in vms_set_section_contents() argument
1393 abfd, section->name, location, (long int)offset, (int)count); in vms_set_section_contents()
1396 return _bfd_save_vms_section (abfd, section, location, offset, count); in vms_set_section_contents()
1404 vms_sizeof_headers (bfd * abfd ATTRIBUTE_UNUSED, in vms_sizeof_headers()
1408 vms_debug (1, "vms_sizeof_headers (%p, %s)\n", abfd, (reloc)?"True":"False"); in vms_sizeof_headers()
1417 vms_bfd_get_relocated_section_contents (bfd * abfd ATTRIBUTE_UNUSED, in vms_bfd_get_relocated_section_contents()
1426 abfd, link_info, link_order, data, (relocatable)?"True":"False", symbols); in vms_bfd_get_relocated_section_contents()
1434 vms_bfd_relax_section (bfd * abfd ATTRIBUTE_UNUSED, in vms_bfd_relax_section()
1441 abfd, section->name, link_info); in vms_bfd_relax_section()
1447 vms_bfd_gc_sections (bfd * abfd ATTRIBUTE_UNUSED, in vms_bfd_gc_sections()
1451 vms_debug (1, "vms_bfd_gc_sections (%p, %p)\n", abfd, link_info); in vms_bfd_gc_sections()
1457 vms_bfd_merge_sections (bfd * abfd ATTRIBUTE_UNUSED, in vms_bfd_merge_sections()
1461 vms_debug (1, "vms_bfd_merge_sections (%p, %p)\n", abfd, link_info); in vms_bfd_merge_sections()
1470 vms_bfd_link_hash_table_create (bfd * abfd ATTRIBUTE_UNUSED) in vms_bfd_link_hash_table_create()
1473 vms_debug (1, "vms_bfd_link_hash_table_create (%p)\n", abfd); in vms_bfd_link_hash_table_create()
1484 vms_debug (1, "vms_bfd_link_hash_table_free (%p)\n", abfd); in vms_bfd_link_hash_table_free()
1491 vms_bfd_link_add_symbols (bfd * abfd ATTRIBUTE_UNUSED, in vms_bfd_link_add_symbols()
1495 vms_debug (1, "vms_bfd_link_add_symbols (%p, %p)\n", abfd, link_info); in vms_bfd_link_add_symbols()
1504 vms_bfd_final_link (bfd * abfd ATTRIBUTE_UNUSED, in vms_bfd_final_link()
1508 vms_debug (1, "vms_bfd_final_link (%p, %p)\n", abfd, link_info); in vms_bfd_final_link()
1516 vms_bfd_link_split_section (bfd * abfd ATTRIBUTE_UNUSED, in vms_bfd_link_split_section()
1520 vms_debug (1, "vms_bfd_link_split_section (%p, %s)\n", abfd, section->name); in vms_bfd_link_split_section()
1530 vms_get_dynamic_symtab_upper_bound (bfd * abfd ATTRIBUTE_UNUSED) in vms_get_dynamic_symtab_upper_bound()
1533 vms_debug (1, "vms_get_dynamic_symtab_upper_bound (%p)\n", abfd); in vms_get_dynamic_symtab_upper_bound()
1539 vms_bfd_print_private_bfd_data (bfd * abfd ATTRIBUTE_UNUSED, in vms_bfd_print_private_bfd_data()
1543 vms_debug (1, "vms_bfd_print_private_bfd_data (%p)\n", abfd); in vms_bfd_print_private_bfd_data()
1551 vms_canonicalize_dynamic_symtab (bfd * abfd ATTRIBUTE_UNUSED, in vms_canonicalize_dynamic_symtab()
1555 vms_debug (1, "vms_canonicalize_dynamic_symtab (%p, <ret>)\n", abfd); in vms_canonicalize_dynamic_symtab()
1563 vms_get_dynamic_reloc_upper_bound (bfd * abfd ATTRIBUTE_UNUSED) in vms_get_dynamic_reloc_upper_bound()
1566 vms_debug (1, "vms_get_dynamic_reloc_upper_bound (%p)\n", abfd); in vms_get_dynamic_reloc_upper_bound()
1574 vms_canonicalize_dynamic_reloc (bfd * abfd ATTRIBUTE_UNUSED, in vms_canonicalize_dynamic_reloc()
1579 vms_debug (1, "vms_canonicalize_dynamic_reloc (%p)\n", abfd); in vms_canonicalize_dynamic_reloc()