Home
last modified time | relevance | path

Searched refs:abfd (Results 1 – 25 of 254) sorted by relevance

1234567891011

/freebsd-12.1/contrib/binutils/bfd/
H A Dcache.c81 insert (bfd *abfd) in insert() argument
85 abfd->lru_next = abfd; in insert()
86 abfd->lru_prev = abfd; in insert()
92 abfd->lru_prev->lru_next = abfd; in insert()
93 abfd->lru_next->lru_prev = abfd; in insert()
101 snip (bfd *abfd) in snip() argument
103 abfd->lru_prev->lru_next = abfd->lru_next; in snip()
104 abfd->lru_next->lru_prev = abfd->lru_prev; in snip()
128 snip (abfd); in bfd_cache_delete()
212 abfd = abfd->my_archive; in bfd_cache_lookup_worker()
[all …]
H A Dcoffswap.h32 #define GET_FCN_LNNOPTR(abfd, ext) \ argument
37 #define GET_FCN_ENDNDX(abfd, ext) \ argument
50 #define GET_LNSZ_LNNO(abfd, ext) \ argument
54 #define GET_LNSZ_SIZE(abfd, ext) \ argument
66 #define GET_SCN_SCNLEN(abfd, ext) \ argument
91 H_GET_16 (abfd, ext->l_lnno);
247 return bfd_coff_relsz (abfd); in coff_swap_reloc_out()
300 return bfd_coff_filhsz (abfd); in coff_swap_filehdr_out()
381 coff_swap_aux_in (bfd *abfd, in coff_swap_aux_in() argument
484 coff_swap_aux_out (bfd * abfd, in coff_swap_aux_out() argument
[all …]
H A Dbfdio.c146 if (abfd->iovec) in bfd_bread()
147 nread = abfd->iovec->bread (abfd, ptr, size); in bfd_bread()
189 if (abfd->iovec) in bfd_bwrite()
190 nwrote = abfd->iovec->bwrite (abfd, ptr, size); in bfd_bwrite()
214 if (abfd->iovec) in bfd_tell()
216 ptr = abfd->iovec->btell (abfd); in bfd_tell()
235 return abfd->iovec->bflush (abfd); in bfd_flush()
250 result = abfd->iovec->bstat (abfd, statbuf); in bfd_stat()
318 if (abfd->format != bfd_archive && abfd->my_archive == 0) in bfd_seek()
399 if (abfd->iovec->bstat (abfd, &buf) != 0) in bfd_get_mtime()
[all …]
H A Decoffswap.h215 if (bfd_header_big_endian (abfd)) in ecoff_swap_fdr_in()
281 if (bfd_header_big_endian (abfd)) in ecoff_swap_fdr_out()
348 if (bfd_header_big_endian (abfd)) in ecoff_swap_pdr_in()
406 if (bfd_header_big_endian (abfd)) in ecoff_swap_pdr_out()
455 if (bfd_header_big_endian (abfd)) in ecoff_swap_sym_in()
506 if (bfd_header_big_endian (abfd)) in ecoff_swap_sym_out()
551 if (bfd_header_big_endian (abfd)) in ecoff_swap_ext_in()
592 if (bfd_header_big_endian (abfd)) in ecoff_swap_ext_out()
652 H_PUT_32 (abfd, *intern, ext->rfd); in ecoff_swap_rfd_out()
669 if (bfd_header_big_endian (abfd)) in ecoff_swap_opt_in()
[all …]
H A Daoutf1.h166 choose_reloc_size (bfd *abfd) in choose_reloc_size() argument
168 switch (bfd_get_arch (abfd)) in choose_reloc_size()
192 switch (bfd_get_arch (abfd)) in sunos_write_object_contents()
230 choose_reloc_size (abfd); in sunos_write_object_contents()
236 WRITE_HEADERS (abfd, execp); in sunos_write_object_contents()
632 core_stacksec (abfd) = bfd_make_section_anyway_with_flags (abfd, ".stack", in sunos4_core_file_p()
639 core_datasec (abfd) = bfd_make_section_anyway_with_flags (abfd, ".data", in sunos4_core_file_p()
645 core_regsec (abfd) = bfd_make_section_anyway_with_flags (abfd, ".reg", in sunos4_core_file_p()
651 core_reg2sec (abfd) = bfd_make_section_anyway_with_flags (abfd, ".reg2", in sunos4_core_file_p()
678 return abfd->xvec; in sunos4_core_file_p()
[all …]
H A Dbfd.c532 if (abfd == NULL) in _bfd_default_error_handler()
537 abfd->my_archive->filename, abfd->filename); in _bfd_default_error_handler()
544 bfd *abfd; in _bfd_default_error_handler() local
551 abfd = sec->owner; in _bfd_default_error_handler()
552 if (abfd != NULL in _bfd_default_error_handler()
716 return BFD_SEND (abfd, _get_reloc_upper_bound, (abfd, asect)); in bfd_get_reloc_upper_bound()
1003 if (! abfd) in _bfd_get_gp_value()
1021 if (! abfd) in _bfd_set_gp_value()
1324 abfd2 = abfd; in bfd_get_relocated_section_contents()
1327 abfd2 = abfd; in bfd_get_relocated_section_contents()
[all …]
H A Dopncls.c118 if (abfd->memory) in _bfd_delete_bfd()
123 free (abfd); in _bfd_delete_bfd()
131 if (abfd->memory) in _bfd_free_cached_info()
651 if (! BFD_SEND_FMT (abfd, _bfd_write_contents, (abfd))) in bfd_close()
655 if (! BFD_SEND (abfd, _close_and_cleanup, (abfd))) in bfd_close()
661 ret = abfd->iovec->bclose (abfd); in bfd_close()
808 abfd->where = 0; in bfd_make_writable()
839 if (! BFD_SEND_FMT (abfd, _bfd_write_contents, (abfd))) in bfd_make_readable()
842 if (! BFD_SEND (abfd, _close_and_cleanup, (abfd))) in bfd_make_readable()
848 abfd->where = 0; in bfd_make_readable()
[all …]
H A Dlibcoff.h175 #define xcoff_data(abfd) ((abfd)->tdata.xcoff_obj_data) argument
819 ((coff_backend_info (abfd)->_bfd_coff_swap_reloc_out) (abfd, i, o))
828 ((coff_backend_info (abfd)->_bfd_coff_swap_sym_out) (abfd, i, o))
839 #define bfd_coff_filhsz(abfd) (coff_backend_info (abfd)->_bfd_filhsz) argument
840 #define bfd_coff_aoutsz(abfd) (coff_backend_info (abfd)->_bfd_aoutsz) argument
841 #define bfd_coff_scnhsz(abfd) (coff_backend_info (abfd)->_bfd_scnhsz) argument
844 #define bfd_coff_relsz(abfd) (coff_backend_info (abfd)->_bfd_relsz) argument
863 ((coff_backend_info (abfd)->_bfd_coff_swap_reloc_in) (abfd, i, o))
882 ((coff_backend_info (abfd)->_bfd_coff_slurp_symbol_table) (abfd))
908 (abfd, sym))
[all …]
H A Dptrace-core.c58 ptrace_unix_core_file_p (abfd) in ptrace_unix_core_file_p() argument
59 bfd *abfd; in ptrace_unix_core_file_p()
94 core_stacksec (abfd) = bfd_make_section_anyway_with_flags (abfd, ".stack",
98 core_datasec (abfd) = bfd_make_section_anyway_with_flags (abfd, ".data",
102 core_regsec (abfd) = bfd_make_section_anyway_with_flags (abfd, ".reg",
128 return abfd->xvec;
131 bfd_release (abfd, abfd->tdata.any);
132 abfd->tdata.any = NULL;
133 bfd_section_list_clear (abfd);
139 bfd *abfd; in ptrace_unix_core_file_failing_command()
[all …]
H A DpeXXigen.c221 _bfd_XXi_swap_aux_in (bfd * abfd, in _bfd_XXi_swap_aux_in() argument
516 add_data_entry (bfd * abfd, in add_data_entry() argument
754 if (pe_data (abfd)->dll) in _bfd_XXi_only_swap_filehdr_out()
880 PUT_SCNHDR_VADDR (abfd, in _bfd_XXi_swap_scnhdr_out()
912 PUT_SCNHDR_SIZE (abfd, ss, in _bfd_XXi_swap_scnhdr_out()
1010 bfd_get_filename (abfd), in _bfd_XXi_swap_scnhdr_out()
2107 abfd); in _bfd_XXi_final_link_postscript()
2125 abfd); in _bfd_XXi_final_link_postscript()
2144 abfd); in _bfd_XXi_final_link_postscript()
2162 abfd); in _bfd_XXi_final_link_postscript()
[all …]
H A Dsrec.c260 abfd, lineno, buf); in srec_bad_byte()
286 ++abfd->symcount; in srec_new_symbol()
295 srec_scan (bfd *abfd) in srec_scan() argument
610 if (! srec_mkobject (abfd) || ! srec_scan (abfd)) in srec_object_p()
612 if (abfd->tdata.any != tdata_save && abfd->tdata.any != NULL) in srec_object_p()
613 bfd_release (abfd, abfd->tdata.any); in srec_object_p()
621 return abfd->xvec; in srec_object_p()
645 if (! srec_mkobject (abfd) || ! srec_scan (abfd)) in symbolsrec_object_p()
647 if (abfd->tdata.any != tdata_save && abfd->tdata.any != NULL) in symbolsrec_object_p()
648 bfd_release (abfd, abfd->tdata.any); in symbolsrec_object_p()
[all …]
H A Dformat.c126 if (!bfd_read_p (abfd) in bfd_check_format_matches()
138 save_targ = abfd->xvec; in bfd_check_format_matches()
157 abfd->format = format; in bfd_check_format_matches()
160 if (!abfd->target_defaulted) in bfd_check_format_matches()
169 right_targ = BFD_SEND_FMT (abfd, _bfd_check_format, (abfd)); in bfd_check_format_matches()
203 abfd->xvec = save_targ; in bfd_check_format_matches()
240 temp = BFD_SEND_FMT (abfd, _bfd_check_format, (abfd)); in bfd_check_format_matches()
275 abfd->xvec = save_targ; in bfd_check_format_matches()
393 if (bfd_read_p (abfd) in bfd_set_format()
404 abfd->format = format; in bfd_set_format()
[all …]
H A Daoutx.h882 return (*aout_backend_info (abfd)->set_sizes) (abfd); in NAME()
1045 obj_bsssec (abfd)->vma = (obj_datasec (abfd)->vma in adjust_z_magic()
1158 obj_textsec (abfd)->vma, obj_textsec (abfd)->size, in NAME()
1160 obj_datasec (abfd)->vma, obj_datasec (abfd)->size, in NAME()
1162 obj_bsssec (abfd)->vma, obj_bsssec (abfd)->size, in NAME()
1184 obj_textsec (abfd)->vma, obj_textsec (abfd)->size, in NAME()
1186 obj_datasec (abfd)->vma, obj_datasec (abfd)->size, in NAME()
1188 obj_bsssec (abfd)->vma, obj_bsssec (abfd)->size); in NAME()
2595 (abfd, in NAME()
5542 abfd->symcount = obj_aout_external_sym_count (abfd); in NAME()
[all …]
H A Dcoff64-rs6000.c280 bfd *abfd; in _bfd_xcoff64_swap_lineno_in()
296 bfd *abfd; in _bfd_xcoff64_swap_lineno_out()
316 bfd *abfd; in _bfd_xcoff64_swap_sym_in()
334 bfd *abfd; in _bfd_xcoff64_swap_sym_out()
352 bfd *abfd; in _bfd_xcoff64_swap_aux_in()
442 bfd *abfd; in _bfd_xcoff64_swap_aux_out()
531 bfd *abfd; in _bfd_xcoff64_put_symbol_name()
605 bfd *abfd; in xcoff64_swap_ldhdr_in()
2014 bfd_ardata (abfd)->tdata = bfd_zalloc (abfd, amt);
2023 bfd_release (abfd, bfd_ardata (abfd));
[all …]
H A Dcoffgen.c214 return abfd->xvec; in coff_real_object_p()
220 abfd->flags = oflags; in coff_real_object_p()
229 coff_object_p (bfd *abfd) in coff_object_p() argument
590 if (! obj_pe (abfd)) in fixup_symbol_value()
1116 if (bfd_seek (abfd, obj_sym_filepos (abfd), SEEK_SET) != 0) in coff_write_symbols()
1451 if (bfd_seek (abfd, obj_sym_filepos (abfd), SEEK_SET) != 0 in _bfd_coff_get_external_symbols()
1486 pos += obj_raw_syment_count (abfd) * bfd_coff_symesz (abfd); in _bfd_coff_read_string_table()
1656 copy_name (abfd, in coff_get_normalized_symtab()
1662 copy_name (abfd, in coff_get_normalized_symtab()
2255 size = bfd_coff_filhsz (abfd) + bfd_coff_aoutsz (abfd); in coff_sizeof_headers()
[all …]
H A Delfcode.h229 elf_swap_ehdr_in (bfd *abfd, in elf_swap_ehdr_in() argument
293 elf_swap_shdr_in (bfd *abfd, in elf_swap_shdr_in() argument
427 elf_swap_dyn_in (bfd *abfd, in elf_swap_dyn_in() argument
492 elf_object_p (bfd *abfd) in elf_object_p() argument
549 target = abfd->xvec; in elf_object_p()
620 abfd->flags |= EXEC_P; in elf_object_p()
622 abfd->flags |= DYNAMIC; in elf_object_p()
625 abfd->flags |= D_PAGED; in elf_object_p()
751 elf_elfsections (abfd) = bfd_alloc (abfd, amt); in elf_object_p()
825 elf_tdata (abfd)->phdr = bfd_alloc (abfd, amt); in elf_object_p()
[all …]
H A Delf.c705 abfd, s); in _bfd_elf_setup_sections()
756 abfd, in _bfd_elf_setup_sections()
1618 bfd *abfd, in _bfd_elf_link_hash_table_init() argument
2283 if (cache->abfd == abfd && cache->indx[ent] == r_symndx) in bfd_section_from_r_symndx()
2291 if (cache->abfd != abfd) in bfd_section_from_r_symndx()
2294 cache->abfd = abfd; in bfd_section_from_r_symndx()
4482 abfd); in assign_file_positions_for_load_sections()
4505 abfd); in assign_file_positions_for_load_sections()
4730 abfd, in assign_file_positions_for_non_load_sections()
5129 || !_bfd_elf_strtab_emit (abfd, elf_shstrtab (abfd)))) in _bfd_elf_write_object_contents()
[all …]
H A Dpeicode.h89 bfd * abfd; member
248 pe_mkobject (bfd * abfd) in pe_mkobject() argument
253 abfd->tdata.pe_obj_data = (struct pe_tdata *) bfd_zalloc (abfd, amt); in pe_mkobject()
258 pe = pe_data (abfd); in pe_mkobject()
288 pe = pe_data (abfd); in pe_mkobject_hook()
758 abfd, import_type); in pe_ILF_build_a_bfd()
836 vars.abfd = abfd; in pe_ILF_build_a_bfd()
1010 abfd->where = 0; in pe_ILF_build_a_bfd()
1161 abfd, machine); in pe_ILF_object_p()
1173 abfd, machine); in pe_ILF_object_p()
[all …]
H A Dieee.c945 abfd->symcount = in ieee_slurp_external_symbols()
1302 abfd->tdata.ieee_ar_data = bfd_alloc (abfd, amt); in ieee_archive_p()
1314 ieee->h.abfd = abfd; in ieee_archive_p()
1445 abfd->tdata.ieee_data = bfd_zalloc (abfd, amt); in ieee_mkobject()
1811 ieee->h.abfd = abfd; in ieee_object_p()
1933 IEEE_DATA (abfd)->h.first_byte = bfd_alloc (ieee->h.abfd, amt); in ieee_object_p()
3322 (abfd, in ieee_write_external_part()
3331 (abfd, in ieee_write_external_part()
3394 || ! ieee_write_int (abfd, abfd->start_address) in ieee_write_me_part()
3415 if (! ieee_write_id (abfd, bfd_printable_name (abfd))) in ieee_write_processor()
[all …]
H A Dbout.c153 obj_textsec (abfd)->lma = obj_textsec (abfd)->vma; in b_out_callback()
154 obj_datasec (abfd)->lma = obj_datasec (abfd)->vma; in b_out_callback()
162 obj_bsssec (abfd)->lma = obj_bsssec (abfd)->vma; in b_out_callback()
404 exec_hdr (abfd)->a_text = obj_textsec (abfd)->size; in b_out_write_object_contents()
405 exec_hdr (abfd)->a_data = obj_datasec (abfd)->size; in b_out_write_object_contents()
406 exec_hdr (abfd)->a_bss = obj_bsssec (abfd)->size; in b_out_write_object_contents()
407 exec_hdr (abfd)->a_syms = bfd_get_symcount (abfd) * 12; in b_out_write_object_contents()
408 exec_hdr (abfd)->a_entry = bfd_get_start_address (abfd); in b_out_write_object_contents()
416 exec_hdr (abfd)->a_tload = obj_textsec (abfd)->vma; in b_out_write_object_contents()
417 exec_hdr (abfd)->a_dload = obj_datasec (abfd)->vma; in b_out_write_object_contents()
[all …]
H A Dsection.c770 newsect->owner = abfd; in bfd_section_init()
772 if (! BFD_SEND (abfd, _new_section_hook, (abfd, newsect))) in bfd_section_init()
776 abfd->section_count++; in bfd_section_init()
806 abfd->sections = NULL; in bfd_section_list_clear()
807 abfd->section_last = NULL; in bfd_section_list_clear()
808 abfd->section_count = 0; in bfd_section_list_clear()
970 if (abfd->output_has_begun) in bfd_make_section_old_way()
1006 if (! BFD_SEND (abfd, _new_section_hook, (abfd, newsect))) in bfd_make_section_old_way()
1037 if (abfd->output_has_begun) in bfd_make_section_anyway_with_flags()
1116 if (abfd->output_has_begun) in bfd_make_section_with_flags()
[all …]
H A Dcoffcode.h766 esymend = esym + obj_raw_syment_count (abfd) * bfd_coff_symesz (abfd); in handle_COMDAT()
855 bfd_coff_swap_aux_in (abfd, (esym + bfd_coff_symesz (abfd)), in handle_COMDAT()
1757 abfd->tdata.coff_obj_data = bfd_zalloc (abfd, amt); in coff_mkobject()
2072 if (bfd_seek (abfd, obj_sym_filepos (abfd), SEEK_SET) != 0 in coff_set_arch_mach_hook()
2477 abfd) != bfd_coff_relsz (abfd)) in coff_write_relocs()
2566 abfd) != bfd_coff_relsz (abfd)) in coff_write_relocs()
2704 if (INTERWORK_SET (abfd) && INTERWORK_FLAG (abfd)) in coff_set_flags()
3021 sofar += abfd->section_count * bfd_coff_scnhsz (abfd); in coff_compute_section_file_positions()
3126 coff_section_data (abfd, current)->tdata = bfd_zalloc (abfd, amt); in coff_compute_section_file_positions()
3451 scn_base = bfd_coff_filhsz (abfd) + bfd_coff_aoutsz (abfd); in coff_write_object_contents()
[all …]
H A Daout-target.h39 MY (callback) (bfd *abfd) in MY()
70 obj_textsec (abfd)->lma = obj_textsec (abfd)->vma; in MY()
71 obj_datasec (abfd)->lma = obj_datasec (abfd)->vma; in MY()
72 obj_bsssec (abfd)->lma = obj_bsssec (abfd)->vma; in MY()
88 SET_ARCH_MACH (abfd, *execp); in MY()
125 return abfd->xvec; in MY()
133 MY (object_p) (bfd *abfd) in MY()
178 && bfd_get_format(abfd) == bfd_object && abfd->my_archive == NULL) in MY()
185 abfd->flags |= EXEC_P; in MY()
197 MY (mkobject) (bfd *abfd) in MY()
[all …]
H A Dtrad-core.c74 trad_unix_core_file_p (abfd) in trad_unix_core_file_p() argument
75 bfd *abfd; in trad_unix_core_file_p()
160 core_stacksec(abfd) = bfd_make_section_anyway_with_flags (abfd, ".stack",
164 core_datasec (abfd) = bfd_make_section_anyway_with_flags (abfd, ".data",
168 core_regsec (abfd) = bfd_make_section_anyway_with_flags (abfd, ".reg",
170 if (core_regsec (abfd) == NULL)
224 return abfd->xvec;
227 bfd_release (abfd, abfd->tdata.any);
228 abfd->tdata.any = NULL;
229 bfd_section_list_clear (abfd);
[all …]
H A Darchive.c156 #define ar_padchar(abfd) ((abfd)->xvec->ar_pad_char) argument
157 #define ar_maxnamelen(abfd) ((abfd)->xvec->ar_max_namelen) argument
183 abfd->tdata.aout_ar_data = bfd_zalloc (abfd, amt); in _bfd_generic_mkarchive()
625 bfd_ardata (abfd) = bfd_zalloc (abfd, amt); in bfd_generic_archive_p()
641 if (!BFD_SEND (abfd, _bfd_slurp_armap, (abfd)) in bfd_generic_archive_p()
642 || !BFD_SEND (abfd, _bfd_slurp_extended_name_table, (abfd))) in bfd_generic_archive_p()
646 bfd_release (abfd, bfd_ardata (abfd)); in bfd_generic_archive_p()
681 return abfd->xvec; in bfd_generic_archive_p()
1060 bfd_seek (abfd, bfd_ardata (abfd)->first_file_filepos, SEEK_SET); in _bfd_slurp_extended_name_table()
1095 bfd_release (abfd, (bfd_ardata (abfd)->extended_names)); in _bfd_slurp_extended_name_table()
[all …]

1234567891011