Home
last modified time | relevance | path

Searched refs:obfd (Results 1 – 25 of 75) sorted by relevance

123

/NextBSD/contrib/gdb/gdb/
HDgcore.c47 bfd *obfd; in gcore_command() local
69 obfd = bfd_openw (corefilename, default_gcore_target ()); in gcore_command()
70 if (!obfd) in gcore_command()
74 old_chain = make_cleanup_bfd_close (obfd); in gcore_command()
76 bfd_set_format (obfd, bfd_core); in gcore_command()
77 bfd_set_arch_mach (obfd, default_gcore_arch (), default_gcore_mach ()); in gcore_command()
80 note_data = target_make_corefile_notes (obfd, &note_size); in gcore_command()
85 note_sec = bfd_make_section_anyway (obfd, "note0"); in gcore_command()
90 bfd_set_section_vma (obfd, note_sec, 0); in gcore_command()
91 bfd_set_section_flags (obfd, note_sec, in gcore_command()
[all …]
HDfbsd-proc.c75 void *obfd) in fbsd_find_memory_regions() argument
113 func (start, size, read, write, exec, obfd); in fbsd_find_memory_regions()
121 fbsd_make_corefile_notes (bfd *obfd, int *note_size) in fbsd_make_corefile_notes() argument
130 i_ehdrp = elf_elfheader (obfd); in fbsd_make_corefile_notes()
134 note_data = elfcore_write_prstatus (obfd, note_data, note_size, in fbsd_make_corefile_notes()
139 note_data = elfcore_write_prfpreg (obfd, note_data, note_size, in fbsd_make_corefile_notes()
143 note_data = elfcore_write_thrmisc (obfd, note_data, note_size, in fbsd_make_corefile_notes()
154 note_data = elfcore_write_prpsinfo (obfd, note_data, note_size, in fbsd_make_corefile_notes()
HDsymfile.c392 sect = bfd_get_section_by_name (objfile->obfd, ".text"); in init_objfile_sect_indices()
396 sect = bfd_get_section_by_name (objfile->obfd, ".data"); in init_objfile_sect_indices()
400 sect = bfd_get_section_by_name (objfile->obfd, ".bss"); in init_objfile_sect_indices()
404 sect = bfd_get_section_by_name (objfile->obfd, ".rodata"); in init_objfile_sect_indices()
451 objfile->num_sections = bfd_count_sections (objfile->obfd); in default_symfile_offsets()
541 = alloc_section_addr_info (bfd_count_sections (objfile->obfd)); in syms_from_objfile()
586 lower_sect = bfd_get_section_by_name (objfile->obfd, ".text"); in syms_from_objfile()
588 bfd_map_over_sections (objfile->obfd, find_lowest_section, in syms_from_objfile()
594 if ((bfd_get_section_flags (objfile->obfd, lower_sect) & SEC_CODE) == 0) in syms_from_objfile()
597 bfd_section_name (objfile->obfd, lower_sect), in syms_from_objfile()
[all …]
HDsomread.c331 bfd *abfd = objfile->obfd; in som_symfile_read()
433 objfile->num_sections = bfd_count_sections (objfile->obfd); in som_symfile_offsets()
507 text_section = bfd_get_section_by_name (objfile->obfd, "$SHLIB_INFO$"); in init_import_symbols()
511 bfd_get_section_contents (objfile->obfd, text_section, dl_header, 0, 12 * sizeof (int)); in init_import_symbols()
530 bfd_get_section_contents (objfile->obfd, text_section, string_buffer, in init_import_symbols()
545 bfd_get_section_contents (objfile->obfd, text_section, buffer, in init_import_symbols()
565 bfd_get_section_contents (objfile->obfd, text_section, buffer, in init_import_symbols()
630 text_section = bfd_get_section_by_name (objfile->obfd, "$SHLIB_INFO$"); in init_export_symbols()
634 bfd_get_section_contents (objfile->obfd, text_section, dl_header, 0, 12 * sizeof (int)); in init_export_symbols()
653 bfd_get_section_contents (objfile->obfd, text_section, string_buffer, in init_export_symbols()
[all …]
HDelfread.c165 int stripped = (bfd_get_symcount (objfile->obfd) == 0); in elf_symtab_read()
462 bfd *abfd = objfile->obfd; in elf_symfile_read()
485 storage_needed = bfd_get_symtab_upper_bound (objfile->obfd); in elf_symfile_read()
487 error (_("Can't read symbols from %s: %s"), bfd_get_filename (objfile->obfd), in elf_symfile_read()
494 symcount = bfd_canonicalize_symtab (objfile->obfd, symbol_table); in elf_symfile_read()
497 error (_("Can't read symbols from %s: %s"), bfd_get_filename (objfile->obfd), in elf_symfile_read()
505 storage_needed = bfd_get_dynamic_symtab_upper_bound (objfile->obfd); in elf_symfile_read()
511 dynsymcount = bfd_canonicalize_dynamic_symtab (objfile->obfd, in elf_symfile_read()
515 error (_("Can't read symbols from %s: %s"), bfd_get_filename (objfile->obfd), in elf_symfile_read()
HDxcoffread.c267 bfd_map_over_sections (objfile->obfd, find_targ_sec, &args); in secnum_to_section()
282 bfd_map_over_sections (objfile->obfd, find_targ_sec, &args); in secnum_to_bfd_section()
589 coff_data (this_symtab_psymtab->objfile->obfd)->local_linesz; in process_linenos()
781 abfd = this_symtab_psymtab->objfile->obfd; in enter_line_range()
873 bfd_coff_swap_sym_in (objfile->obfd, raw_symbol, &symbol); in xcoff_next_symbol_text()
888 coff_data (objfile->obfd)->local_symesz; in xcoff_next_symbol_text()
908 bfd *abfd = objfile->obfd; in read_xcoff_symtab()
1611 bfd_coff_swap_sym_in (this_symtab_psymtab->objfile->obfd, in read_symbol()
1635 int xcoff64 = bfd_xcoff_is_xcoff64 (objfile->obfd); in read_symbol_lineno()
1687 bfd_coff_swap_aux_in (objfile->obfd, stbl + symno * local_symesz, in read_symbol_lineno()
[all …]
HDobjfiles.c126 bfd_map_over_sections (objfile->obfd, add_to_objfile_sections, (char *) objfile); in build_objfile_section_table()
180 objfile->obfd = abfd; in allocate_objfile()
242 if (bfd_get_file_flags (objfile->obfd) & EXEC_P) in init_entry_point_info()
246 objfile->ei.entry_point = bfd_get_start_address (objfile->obfd); in init_entry_point_info()
415 if (objfile->obfd != NULL) in free_objfile()
417 char *name = bfd_get_filename (objfile->obfd); in free_objfile()
418 if (!bfd_close (objfile->obfd)) in free_objfile()
643 abfd = objfile->obfd; in objfile_relocate()
HDpa64solib.c276 so->abfd = so->objfile->obfd; in pa64_solib_add_solib_objfile()
411 shlib_info = bfd_get_section_by_name (symfile_objfile->obfd, ".dynamic"); in pa64_solib_add()
416 if (bfd_section_size (symfile_objfile->obfd, shlib_info) == 0) in pa64_solib_add()
484 shlib_info = bfd_get_section_by_name (symfile_objfile->obfd, ".dynamic"); in pa64_solib_create_inferior_hook()
489 if (bfd_section_size (symfile_objfile->obfd, shlib_info) == 0) in pa64_solib_create_inferior_hook()
954 dyninfo_sect = bfd_get_section_by_name (symfile_objfile->obfd, in read_dld_descriptor()
1020 dyninfo_addr = bfd_section_vma (symfile_objfile->obfd, dyninfo_sect); in read_dynamic_info()
1038 dyn_tag = bfd_h_get_64 (symfile_objfile->obfd, in read_dynamic_info()
HDdbxread.c491 if (tempstring[0] == bfd_get_symbol_leading_char (objfile->obfd)) in record_minimal_symbol()
534 sym_bfd = objfile->obfd; in dbx_symfile_read()
621 bfd *sym_bfd = objfile->obfd; in dbx_symfile_init()
984 bfd *abfd = objfile->obfd; in read_dbx_dynamic_symtab()
1238 symfile_bfd = objfile->obfd; /* For next_text_symbol */ in read_dbx_symtab()
1239 abfd = objfile->obfd; in read_dbx_symtab()
2384 bfd_seek (pst->objfile->obfd, SYMBOL_OFFSET (pst), SEEK_SET); in dbx_psymtab_to_symtab_1()
2422 sym_bfd = pst->objfile->obfd; in dbx_psymtab_to_symtab()
2429 = symfile_relocate_debug_section (pst->objfile->obfd, in dbx_psymtab_to_symtab()
2486 abfd = objfile->obfd; in read_ofile_symtab()
[all …]
/NextBSD/contrib/binutils/binutils/
HDarsup.c42 static bfd *obfd; variable
158 obfd = bfd_openw (tname, NULL); in ar_open()
160 if (!obfd) in ar_open()
195 ptr = &(obfd->archive_head); in ar_open()
206 bfd_set_format (obfd, bfd_archive); in ar_open()
208 obfd->has_armap = 1; in ar_open()
219 abfd->archive_next = obfd->archive_head; in ar_addlib_doer()
220 obfd->archive_head = abfd; in ar_addlib_doer()
226 if (obfd == NULL) in ar_addlib()
246 if (!obfd) in ar_addmod()
[all …]
HDobjcopy.c908 filter_symbols (bfd *abfd, bfd *obfd, asymbol **osyms, in filter_symbols() argument
950 && (bfd_get_symbol_leading_char (obfd) != '\0') in filter_symbols()
957 name[0] = bfd_get_symbol_leading_char (obfd); in filter_symbols()
975 *ptr++ = bfd_get_symbol_leading_char (obfd); in filter_symbols()
1247 copy_unknown_object (bfd *ibfd, bfd *obfd) in copy_unknown_object() argument
1277 bfd_get_archive_filename (ibfd), bfd_get_filename (obfd)); in copy_unknown_object()
1295 if (bfd_bwrite (cbuf, (bfd_size_type) tocopy, obfd) in copy_unknown_object()
1298 bfd_nonfatal (bfd_get_filename (obfd)); in copy_unknown_object()
1306 chmod (bfd_get_filename (obfd), buf.st_mode); in copy_unknown_object()
1315 copy_object (bfd *ibfd, bfd *obfd) in copy_object() argument
[all …]
HDar.c924 bfd *obfd; in write_archive() local
937 obfd = bfd_openw (new_name, bfd_get_target (iarch)); in write_archive()
939 if (obfd == NULL) in write_archive()
942 output_bfd = obfd; in write_archive()
944 bfd_set_format (obfd, bfd_archive); in write_archive()
948 obfd->has_armap = write_armap >= 0; in write_archive()
954 obfd->flags |= BFD_TRADITIONAL_FORMAT; in write_archive()
957 if (!bfd_set_archive_head (obfd, contents_head)) in write_archive()
960 if (!bfd_close (obfd)) in write_archive()
/NextBSD/contrib/gdb/gdb/cli/
HDcli-dump.c150 bfd *obfd; in bfd_openw_with_cleanup() local
154 obfd = bfd_openw (filename, target); in bfd_openw_with_cleanup()
155 if (obfd == NULL) in bfd_openw_with_cleanup()
158 make_cleanup_bfd_close (obfd); in bfd_openw_with_cleanup()
159 if (!bfd_set_format (obfd, bfd_object)) in bfd_openw_with_cleanup()
169 return obfd; in bfd_openw_with_cleanup()
212 bfd *obfd; in dump_bfd_file() local
215 obfd = bfd_openw_with_cleanup (filename, target, mode); in dump_bfd_file()
216 osection = bfd_make_section_anyway (obfd, ".newsec"); in dump_bfd_file()
217 bfd_set_section_size (obfd, osection, len); in dump_bfd_file()
[all …]
/NextBSD/contrib/binutils/bfd/
HDcpu-arm.c156 bfd_arm_merge_machines (bfd *ibfd, bfd *obfd) in bfd_arm_merge_machines() argument
159 unsigned int out = bfd_get_mach (obfd); in bfd_arm_merge_machines()
163 bfd_set_arch_mach (obfd, bfd_arch_arm, in); in bfd_arm_merge_machines()
170 bfd_set_arch_mach (obfd, bfd_arch_arm, bfd_mach_arm_unknown); in bfd_arm_merge_machines()
190 ibfd, obfd); in bfd_arm_merge_machines()
201 obfd, ibfd); in bfd_arm_merge_machines()
206 bfd_set_arch_mach (obfd, bfd_arch_arm, in); in bfd_arm_merge_machines()
HDelf32-mep.c745 mep_elf_copy_private_bfd_data (bfd * ibfd, bfd * obfd) in mep_elf_copy_private_bfd_data() argument
748 || bfd_get_flavour (obfd) != bfd_target_elf_flavour) in mep_elf_copy_private_bfd_data()
751 elf_elfheader (obfd)->e_flags = elf_elfheader (ibfd)->e_flags; in mep_elf_copy_private_bfd_data()
752 elf_flags_init (obfd) = TRUE; in mep_elf_copy_private_bfd_data()
755 _bfd_elf_copy_obj_attributes (ibfd, obfd); in mep_elf_copy_private_bfd_data()
764 mep_elf_merge_private_bfd_data (bfd * ibfd, bfd * obfd) in mep_elf_merge_private_bfd_data() argument
771 if (_bfd_generic_verify_endian_match (ibfd, obfd) == FALSE) in mep_elf_merge_private_bfd_data()
775 old_flags = elf_elfheader (obfd)->e_flags; in mep_elf_merge_private_bfd_data()
779 ibfd, old_flags, new_flags, elf_flags_init (obfd) ? "yes" : "no"); in mep_elf_merge_private_bfd_data()
783 if (!elf_flags_init (obfd)) in mep_elf_merge_private_bfd_data()
[all …]
HDelf32-sparc.c70 elf32_sparc_merge_private_bfd_data (bfd *ibfd, bfd *obfd) in elf32_sparc_merge_private_bfd_data() argument
78 || bfd_get_flavour (obfd) != bfd_target_elf_flavour) in elf32_sparc_merge_private_bfd_data()
92 if (bfd_get_mach (obfd) < ibfd_mach) in elf32_sparc_merge_private_bfd_data()
93 bfd_set_arch_mach (obfd, bfd_arch_sparc, ibfd_mach); in elf32_sparc_merge_private_bfd_data()
HDelf-attrs.c353 _bfd_elf_copy_obj_attributes (bfd *ibfd, bfd *obfd) in _bfd_elf_copy_obj_attributes() argument
364 out_attr = &elf_known_obj_attributes (obfd)[vendor][4]; in _bfd_elf_copy_obj_attributes()
370 out_attr->s = _bfd_elf_attr_strdup (obfd, in_attr->s); in _bfd_elf_copy_obj_attributes()
383 bfd_elf_add_obj_attr_int (obfd, vendor, list->tag, in_attr->i); in _bfd_elf_copy_obj_attributes()
386 bfd_elf_add_obj_attr_string (obfd, vendor, list->tag, in _bfd_elf_copy_obj_attributes()
390 bfd_elf_add_obj_attr_compat (obfd, vendor, in_attr->i, in _bfd_elf_copy_obj_attributes()
559 _bfd_elf_merge_object_attributes (bfd *ibfd, bfd *obfd) in _bfd_elf_merge_object_attributes() argument
589 bfd_elf_add_proc_attr_compat (obfd, in_attr->i, in_attr->s); in _bfd_elf_merge_object_attributes()
HDcoff-arm.c2148 coff_arm_adjust_symndx (bfd *obfd ATTRIBUTE_UNUSED, in coff_arm_adjust_symndx()
2176 coff_arm_merge_private_bfd_data (bfd * ibfd, bfd * obfd) in coff_arm_merge_private_bfd_data() argument
2178 BFD_ASSERT (ibfd != NULL && obfd != NULL); in coff_arm_merge_private_bfd_data()
2180 if (ibfd == obfd) in coff_arm_merge_private_bfd_data()
2187 || obfd->xvec->flavour != bfd_target_coff_flavour) in coff_arm_merge_private_bfd_data()
2192 if (! bfd_arm_merge_machines (ibfd, obfd)) in coff_arm_merge_private_bfd_data()
2198 if (APCS_SET (obfd)) in coff_arm_merge_private_bfd_data()
2201 if (APCS_26_FLAG (obfd) != APCS_26_FLAG (ibfd)) in coff_arm_merge_private_bfd_data()
2206 ibfd, obfd, in coff_arm_merge_private_bfd_data()
2208 APCS_26_FLAG (obfd) ? 26 : 32 in coff_arm_merge_private_bfd_data()
[all …]
HDlibcoff.h914 #define bfd_coff_start_final_link(obfd, info)\ argument
915 ((coff_backend_info (obfd)->_bfd_coff_start_final_link)\
916 (obfd, info))
917 #define bfd_coff_relocate_section(obfd,info,ibfd,o,con,rel,isyms,secs)\ argument
919 (obfd, info, ibfd, o, con, rel, isyms, secs))
923 #define bfd_coff_adjust_symndx(obfd, info, ibfd, sec, rel, adjustedp)\ argument
925 (obfd, info, ibfd, sec, rel, adjustedp))
HDelf64-sparc.c629 elf64_sparc_merge_private_bfd_data (bfd *ibfd, bfd *obfd) in elf64_sparc_merge_private_bfd_data() argument
636 || bfd_get_flavour (obfd) != bfd_target_elf_flavour) in elf64_sparc_merge_private_bfd_data()
640 old_flags = elf_elfheader (obfd)->e_flags; in elf64_sparc_merge_private_bfd_data()
642 if (!elf_flags_init (obfd)) /* First call, no flags set */ in elf64_sparc_merge_private_bfd_data()
644 elf_flags_init (obfd) = TRUE; in elf64_sparc_merge_private_bfd_data()
645 elf_elfheader (obfd)->e_flags = new_flags; in elf64_sparc_merge_private_bfd_data()
700 elf_elfheader (obfd)->e_flags = old_flags; in elf64_sparc_merge_private_bfd_data()
HDbfd-in2.h1727 (bfd *ibfd, asection *isec, bfd *obfd, asection *osec);
1729 #define bfd_copy_private_section_data(ibfd, isection, obfd, osection) \ argument
1730 BFD_SEND (obfd, _bfd_copy_private_section_data, \
1731 (ibfd, isection, obfd, osection))
4573 (bfd *ibfd, asymbol *isym, bfd *obfd, asymbol *osym);
4575 #define bfd_copy_private_symbol_data(ibfd, isymbol, obfd, osymbol) \ argument
4576 BFD_SEND (obfd, _bfd_copy_private_symbol_data, \
4577 (ibfd, isymbol, obfd, osymbol))
4810 bfd_boolean bfd_copy_private_header_data (bfd *ibfd, bfd *obfd);
4812 #define bfd_copy_private_header_data(ibfd, obfd) \ argument
[all …]
HDelf32-arm.c2257 bfd * obfd; member
2502 ret->obfd = abfd; in elf32_arm_link_hash_table_create()
3104 if (bfd_elf_get_obj_attr_int (globals->obfd, OBJ_ATTR_PROC, in check_use_blx()
3323 bfd_elf32_arm_set_vfp11_fix (bfd *obfd, struct bfd_link_info *link_info) in bfd_elf32_arm_set_vfp11_fix() argument
3326 obj_attribute *out_attr = elf_known_obj_attributes_proc (obfd); in bfd_elf32_arm_set_vfp11_fix()
3341 "workaround is not necessary for target architecture"), obfd); in bfd_elf32_arm_set_vfp11_fix()
4330 globals->obfd, sec, val, s, in elf32_arm_to_thumb_export_stub()
4493 int arch = bfd_elf_get_obj_attr_int (globals->obfd, OBJ_ATTR_PROC, in using_thumb2()
6666 elf32_arm_copy_private_bfd_data (bfd *ibfd, bfd *obfd) in elf32_arm_copy_private_bfd_data() argument
6672 || bfd_get_flavour (obfd) != bfd_target_elf_flavour) in elf32_arm_copy_private_bfd_data()
[all …]
HDpeXXigen.c1986 _bfd_XX_bfd_copy_private_bfd_data_common (bfd * ibfd, bfd * obfd) in _bfd_XX_bfd_copy_private_bfd_data_common() argument
1990 || obfd->xvec->flavour != bfd_target_coff_flavour) in _bfd_XX_bfd_copy_private_bfd_data_common()
1993 pe_data (obfd)->pe_opthdr = pe_data (ibfd)->pe_opthdr; in _bfd_XX_bfd_copy_private_bfd_data_common()
1994 pe_data (obfd)->dll = pe_data (ibfd)->dll; in _bfd_XX_bfd_copy_private_bfd_data_common()
1998 if (! pe_data (obfd)->has_reloc_section) in _bfd_XX_bfd_copy_private_bfd_data_common()
2000 pe_data (obfd)->pe_opthdr.DataDirectory[PE_BASE_RELOCATION_TABLE].VirtualAddress = 0; in _bfd_XX_bfd_copy_private_bfd_data_common()
2001 pe_data (obfd)->pe_opthdr.DataDirectory[PE_BASE_RELOCATION_TABLE].Size = 0; in _bfd_XX_bfd_copy_private_bfd_data_common()
2011 bfd *obfd, in _bfd_XX_bfd_copy_private_section_data() argument
2015 || bfd_get_flavour (obfd) != bfd_target_coff_flavour) in _bfd_XX_bfd_copy_private_section_data()
2021 if (coff_section_data (obfd, osec) == NULL) in _bfd_XX_bfd_copy_private_section_data()
[all …]
/NextBSD/contrib/binutils/ld/
HDldmain.c994 bfd *obfd, in multiple_definition() argument
1016 if (obfd != NULL) in multiple_definition()
1017 einfo (_("%D: first defined here\n"), obfd, osec, oval); in multiple_definition()
1036 bfd *obfd, in multiple_common() argument
1053 if (obfd != NULL) in multiple_common()
1054 einfo (_("%B: warning: common is here\n"), obfd); in multiple_common()
1063 if (obfd != NULL) in multiple_common()
1064 einfo (_("%B: warning: defined here\n"), obfd); in multiple_common()
1073 if (obfd != NULL) in multiple_common()
1074 einfo (_("%B: warning: larger common is here\n"), obfd); in multiple_common()
[all …]
/NextBSD/gnu/usr.bin/binutils/libbfd/
HDbfd.h1733 (bfd *ibfd, asection *isec, bfd *obfd, asection *osec);
1735 #define bfd_copy_private_section_data(ibfd, isection, obfd, osection) \ argument
1736 BFD_SEND (obfd, _bfd_copy_private_section_data, \
1737 (ibfd, isection, obfd, osection))
4580 (bfd *ibfd, asymbol *isym, bfd *obfd, asymbol *osym);
4582 #define bfd_copy_private_symbol_data(ibfd, isymbol, obfd, osymbol) \ argument
4583 BFD_SEND (obfd, _bfd_copy_private_symbol_data, \
4584 (ibfd, isymbol, obfd, osymbol))
4817 bfd_boolean bfd_copy_private_header_data (bfd *ibfd, bfd *obfd);
4819 #define bfd_copy_private_header_data(ibfd, obfd) \ argument
[all …]

123