/toolchain/binutils/binutils-2.25/bfd/ |
D | nlmcode.h | 78 bfd_size_type amt; in nlm_swap_variable_header_in() local 81 amt = sizeof (nlm_variable_header (abfd)->descriptionLength); in nlm_swap_variable_header_in() 83 amt, abfd) != amt) in nlm_swap_variable_header_in() 85 amt = nlm_variable_header (abfd)->descriptionLength + 1; in nlm_swap_variable_header_in() 87 amt, abfd) != amt) in nlm_swap_variable_header_in() 91 amt = sizeof (temp); in nlm_swap_variable_header_in() 92 if (bfd_bread ((void *) temp, amt, abfd) != amt) in nlm_swap_variable_header_in() 97 amt = sizeof (temp); in nlm_swap_variable_header_in() 98 if (bfd_bread ((void *) temp, amt, abfd) != amt) in nlm_swap_variable_header_in() 103 amt = sizeof (nlm_variable_header (abfd)->oldThreadName); in nlm_swap_variable_header_in() [all …]
|
D | som.c | 1428 bfd_size_type amt = sizeof (int); in hppa_som_gen_reloc_type() local 1430 final_types[0] = bfd_alloc (abfd, amt); in hppa_som_gen_reloc_type() 1431 final_types[1] = bfd_alloc (abfd, amt); in hppa_som_gen_reloc_type() 1432 final_types[2] = bfd_alloc (abfd, amt); in hppa_som_gen_reloc_type() 1433 final_types[3] = bfd_alloc (abfd, amt); in hppa_som_gen_reloc_type() 1512 bfd_size_type amt = sizeof (int); in hppa_som_gen_reloc_type() local 1514 final_types[0] = bfd_alloc (abfd, amt); in hppa_som_gen_reloc_type() 1515 final_types[1] = bfd_alloc (abfd, amt); in hppa_som_gen_reloc_type() 1516 final_types[2] = bfd_alloc (abfd, amt); in hppa_som_gen_reloc_type() 1517 final_types[3] = bfd_alloc (abfd, amt); in hppa_som_gen_reloc_type() [all …]
|
D | oasys.c | 36 bfd_size_type amt = sizeof (record->header); in oasys_read_record() local 38 if (bfd_bread ((void *) record, amt, abfd) != amt) in oasys_read_record() 41 amt = record->header.length - sizeof (record->header); in oasys_read_record() 42 if ((long) amt <= 0) in oasys_read_record() 44 if (bfd_bread ((void *) ((char *) record + sizeof (record->header)), amt, abfd) in oasys_read_record() 45 != amt) in oasys_read_record() 76 bfd_size_type amt; in oasys_slurp_symbol_table() local 82 amt = abfd->symcount; in oasys_slurp_symbol_table() 83 amt *= sizeof (asymbol); in oasys_slurp_symbol_table() 84 data->symbols = bfd_alloc (abfd, amt); in oasys_slurp_symbol_table() [all …]
|
D | aout-adobe.c | 95 bfd_size_type amt = sizeof (*ext); in aout_adobe_callback() local 96 if (bfd_bread ( ext, amt, abfd) != amt) in aout_adobe_callback() 148 amt = strlen (sect->name); in aout_adobe_callback() 149 newname = bfd_zalloc (abfd, amt); in aout_adobe_callback() 199 bfd_size_type amt = EXEC_BYTES_SIZE; in aout_adobe_object_p() local 201 if (bfd_bread (& exec_bytes, amt, abfd) != amt) in aout_adobe_object_p() 243 bfd_size_type amt = sizeof (struct bout_data_struct); in aout_adobe_mkobject() local 245 rawptr = bfd_zalloc (abfd, amt); in aout_adobe_mkobject() 274 bfd_size_type amt; in aout_adobe_write_object_contents() local 309 amt = EXEC_BYTES_SIZE; in aout_adobe_write_object_contents() [all …]
|
D | lynx-core.c | 97 bfd_size_type amt; in lynx_core_file_p() local 108 amt = sizeof pss; in lynx_core_file_p() 109 if (bfd_bread ((void *) &pss, amt, abfd) != amt) in lynx_core_file_p() 117 amt = sizeof (struct lynx_core_struct); in lynx_core_file_p() 118 core_hdr (abfd) = (struct lynx_core_struct *) bfd_zalloc (abfd, amt); in lynx_core_file_p()
|
D | coff-ppc.c | 181 bfd_size_type amt = sizeof (struct ppc_coff_link_hash_table); in ppc_coff_link_hash_table_create() local 183 ret = (struct ppc_coff_link_hash_table *) bfd_malloc (amt); in ppc_coff_link_hash_table_create() 773 bfd_size_type amt = sizeof (struct list_ele); in record_toc() local 774 struct list_ele *t = (struct list_ele *) bfd_malloc (amt); in record_toc() 824 bfd_size_type amt; in ppc_record_toc_entry() local 827 amt = (bfd_size_type) obj_raw_syment_count (abfd) * sizeof (int); in ppc_record_toc_entry() 828 local_syms = (int *) bfd_zalloc (abfd, amt); in ppc_record_toc_entry() 1513 bfd_size_type amt; in ppc_allocate_toc_section() local 1528 amt = global_toc_size; in ppc_allocate_toc_section() 1529 foo = (bfd_byte *) bfd_alloc (bfd_of_toc_owner, amt); in ppc_allocate_toc_section() [all …]
|
D | elf-strtab.c | 98 bfd_size_type amt = sizeof (struct elf_strtab_hash); in _bfd_elf_strtab_init() local 100 table = (struct elf_strtab_hash *) bfd_malloc (amt); in _bfd_elf_strtab_init() 114 amt = sizeof (struct elf_strtab_hasn_entry *); in _bfd_elf_strtab_init() 116 bfd_malloc (table->alloced * amt); in _bfd_elf_strtab_init() 168 bfd_size_type amt = sizeof (struct elf_strtab_hash_entry *); in _bfd_elf_strtab_add() local 171 bfd_realloc_or_free (tab->array, tab->alloced * amt); in _bfd_elf_strtab_add() 332 bfd_size_type size, amt; in _bfd_elf_strtab_finalize() local 341 amt = tab->size * sizeof (struct elf_strtab_hash_entry *); in _bfd_elf_strtab_finalize() 342 array = (struct elf_strtab_hash_entry **) bfd_malloc (amt); in _bfd_elf_strtab_finalize()
|
D | archive.c | 215 bfd_size_type amt = sizeof (struct artdata); in _bfd_generic_mkarchive() local 217 abfd->tdata.aout_ar_data = (struct artdata *) bfd_zalloc (abfd, amt); in _bfd_generic_mkarchive() 795 bfd_size_type amt; in bfd_generic_archive_p() local 813 amt = sizeof (struct artdata); in bfd_generic_archive_p() 814 bfd_ardata (abfd) = (struct artdata *) bfd_zalloc (abfd, amt); in bfd_generic_archive_p() 897 bfd_size_type parsed_size, amt; in do_slurp_bsd_armap() local 934 amt = ardata->symdef_count * sizeof (carsym); in do_slurp_bsd_armap() 935 ardata->symdefs = (struct carsym *) bfd_alloc (abfd, amt); in do_slurp_bsd_armap() 1161 bfd_size_type amt; in bfd_slurp_bsd_armap_f2() local 1198 amt = mapdata->parsed_size; in bfd_slurp_bsd_armap_f2() [all …]
|
D | cofflink.c | 112 bfd_size_type amt = sizeof (struct coff_link_hash_table); in _bfd_coff_link_hash_table_create() local 114 ret = (struct coff_link_hash_table *) bfd_malloc (amt); in _bfd_coff_link_hash_table_create() 238 bfd_size_type amt; in coff_link_add_symbols() local 257 amt = symcount * sizeof (struct coff_link_hash_entry *); in coff_link_add_symbols() 258 sym_hash = (struct coff_link_hash_entry **) bfd_zalloc (abfd, amt); in coff_link_add_symbols() 535 amt = sizeof (struct coff_section_tdata); in coff_link_add_symbols() 536 stab->used_by_bfd = bfd_zalloc (abfd, amt); in coff_link_add_symbols() 586 bfd_size_type amt; in _bfd_coff_final_link() local 708 amt = abfd->section_count + 1; in _bfd_coff_final_link() 709 amt *= sizeof (struct coff_link_section_info); in _bfd_coff_final_link() [all …]
|
D | aix386-core.c | 74 bfd_size_type amt; in aix386_core_file_p() local 83 amt = sizeof (longbuf); in aix386_core_file_p() 84 if (bfd_bread (longbuf, amt, abfd) != amt) in aix386_core_file_p() 97 amt = sizeof (struct mergem); in aix386_core_file_p() 98 mergem = (struct mergem *) bfd_zalloc (abfd, amt); in aix386_core_file_p()
|
D | dwarf2.c | 815 bfd_size_type amt; in read_abbrevs() local 822 amt = sizeof (struct abbrev_info*) * ABBREV_HASH_SIZE; in read_abbrevs() 823 abbrevs = (struct abbrev_info **) bfd_zalloc (abfd, amt); in read_abbrevs() 834 amt = sizeof (struct abbrev_info); in read_abbrevs() 835 cur_abbrev = (struct abbrev_info *) bfd_zalloc (abfd, amt); in read_abbrevs() 859 amt = cur_abbrev->num_attrs + ATTR_ALLOC_CHUNK; in read_abbrevs() 860 amt *= sizeof (struct attr_abbrev); in read_abbrevs() 861 tmp = (struct attr_abbrev *) bfd_realloc (cur_abbrev->attrs, amt); in read_abbrevs() 933 bfd_size_type amt; in read_attribute_value() local 965 amt = sizeof (struct dwarf_block); in read_attribute_value() [all …]
|
D | stabs.c | 156 bfd_size_type count, amt; in _bfd_link_section_stabs() local 214 amt = sizeof (struct stab_section_info); in _bfd_link_section_stabs() 215 amt += (count - 1) * sizeof (bfd_size_type); in _bfd_link_section_stabs() 216 *psecinfo = bfd_alloc (abfd, amt); in _bfd_link_section_stabs() 376 amt = sizeof *ne; in _bfd_link_section_stabs() 377 ne = (struct stab_excl_list *) bfd_alloc (abfd, amt); in _bfd_link_section_stabs() 474 amt = count * sizeof (bfd_size_type); in _bfd_link_section_stabs() 475 secinfo->cumulative_skips = (bfd_size_type *) bfd_alloc (abfd, amt); in _bfd_link_section_stabs() 516 bfd_size_type count, amt; in _bfd_discard_section_stabs() local 627 amt = count * sizeof (bfd_size_type); in _bfd_discard_section_stabs() [all …]
|
D | osf-core.c | 80 bfd_size_type amt; in osf_core_core_file_p() local 82 amt = sizeof core_header; in osf_core_core_file_p() 83 val = bfd_bread (& core_header, amt, abfd); in osf_core_core_file_p() 103 amt = sizeof core_scnhdr; in osf_core_core_file_p() 104 val = bfd_bread (& core_scnhdr, amt, abfd); in osf_core_core_file_p()
|
D | xcofflink.c | 216 bfd_size_type amt = sizeof (struct coff_section_tdata); in xcoff_get_section_contents() local 218 sec->used_by_bfd = bfd_zalloc (abfd, amt); in xcoff_get_section_contents() 595 bfd_size_type amt = sizeof (* ret); in _bfd_xcoff_bfd_link_hash_table_create() local 597 ret = bfd_zmalloc (amt); in _bfd_xcoff_bfd_link_hash_table_create() 766 bfd_size_type amt = sizeof (* n); in xcoff_set_import_path() local 768 n = bfd_alloc (info->output_bfd, amt); in xcoff_set_import_path() 1226 bfd_size_type amt; in xcoff_link_add_symbols() local 1261 amt = symcount * sizeof (struct xcoff_link_hash_entry *); in xcoff_link_add_symbols() 1262 sym_hash = bfd_zalloc (abfd, amt); in xcoff_link_add_symbols() 1270 amt = symcount * sizeof (asection *); in xcoff_link_add_symbols() [all …]
|
D | coffcode.h | 1110 bfd_size_type amt; in handle_COMDAT() local 1117 amt = sizeof (struct coff_comdat_info); in handle_COMDAT() 1119 = (struct coff_comdat_info *) bfd_alloc (abfd, amt); in handle_COMDAT() 1126 amt = strlen (symname) + 1; in handle_COMDAT() 1127 newname = (char *) bfd_alloc (abfd, amt); in handle_COMDAT() 1755 bfd_size_type amt; in coff_new_section_hook() local 1791 amt = sizeof (combined_entry_type) * 10; in coff_new_section_hook() 1792 native = (combined_entry_type *) bfd_zalloc (abfd, amt); in coff_new_section_hook() 1856 bfd_size_type amt; in coff_set_alignment_hook() local 1889 amt = sizeof (struct coff_section_tdata); in coff_set_alignment_hook() [all …]
|
D | dwarf1.c | 143 bfd_size_type amt = sizeof (struct dwarf1_unit); in alloc_dwarf1_unit() local 145 struct dwarf1_unit* x = (struct dwarf1_unit *) bfd_zalloc (stash->abfd, amt); in alloc_dwarf1_unit() 161 bfd_size_type amt = sizeof (struct dwarf1_func); in alloc_dwarf1_func() local 163 struct dwarf1_func* x = (struct dwarf1_func *) bfd_zalloc (stash->abfd, amt); in alloc_dwarf1_func() 298 bfd_size_type amt; in parse_line_table() local 313 amt = sizeof (struct linenumber) * aUnit->line_count; in parse_line_table() 315 amt); in parse_line_table()
|
D | hp300hpux.c | 474 bfd_size_type amt; in NAME() local 491 amt = sizeof (*rawptr); in NAME() 492 rawptr = (struct aout_data_struct *) bfd_zalloc (abfd, amt); in NAME() 535 bfd_size_type amt; in MY() local 542 amt = symbol_bytes + SYM_EXTRA_BYTES; in MY() 543 strings = (char *) bfd_alloc (abfd, amt); in MY() 567 amt = num_syms; in MY() 568 amt *= sizeof (aout_symbol_type); in MY() 569 cached = (aout_symbol_type *) bfd_zalloc (abfd, amt); in MY()
|
D | versados.c | 150 bfd_size_type amt = sizeof (tdata_type); in versados_mkobject() local 151 tdata_type *tdata = bfd_alloc (abfd, amt); in versados_mkobject() 460 bfd_size_type amt; in versados_scan() local 505 amt = (bfd_size_type) esdid->relocs * sizeof (arelent); in versados_scan() 506 esdid->section->relocation = bfd_alloc (abfd, amt); in versados_scan() 527 amt = abfd->symcount; in versados_scan() 528 amt *= sizeof (asymbol); in versados_scan() 529 VDATA (abfd)->symbols = bfd_alloc (abfd, amt); in versados_scan() 531 amt = VDATA (abfd)->stringlen; in versados_scan() 532 VDATA (abfd)->strings = bfd_alloc (abfd, amt); in versados_scan()
|
D | elfcode.h | 498 bfd_size_type amt; in elf_object_p() local 684 amt = sizeof (*i_shdrp) * i_ehdrp->e_shnum; in elf_object_p() 685 i_shdrp = (Elf_Internal_Shdr *) bfd_alloc (abfd, amt); in elf_object_p() 690 amt = sizeof (i_shdrp) * num_sec; in elf_object_p() 691 elf_elfsections (abfd) = (Elf_Internal_Shdr **) bfd_alloc (abfd, amt); in elf_object_p() 774 amt = i_ehdrp->e_phnum * sizeof (Elf_Internal_Phdr); in elf_object_p() 775 elf_tdata (abfd)->phdr = (Elf_Internal_Phdr *) bfd_alloc (abfd, amt); in elf_object_p() 992 bfd_size_type amt; in elf_write_shdrs_and_ehdr() local 1003 amt = sizeof (x_ehdr); in elf_write_shdrs_and_ehdr() 1005 || bfd_bwrite (&x_ehdr, amt, abfd) != amt) in elf_write_shdrs_and_ehdr() [all …]
|
D | netbsd-core.c | 63 bfd_size_type amt = sizeof core; in netbsd_core_file_p() local 65 val = bfd_bread (&core, amt, abfd); in netbsd_core_file_p() 79 amt = sizeof (struct netbsd_core_struct); in netbsd_core_file_p() 80 rawptr = (struct netbsd_core_struct *) bfd_zalloc (abfd, amt); in netbsd_core_file_p()
|
D | ecoff.c | 87 bfd_size_type amt = sizeof (ecoff_data_type); in _bfd_ecoff_mkobject() local 89 abfd->tdata.ecoff_obj_data = (struct ecoff_tdata *) bfd_zalloc (abfd, amt); in _bfd_ecoff_mkobject() 507 bfd_size_type amt; in _bfd_ecoff_slurp_symbolic_info() local 610 amt = internal_symhdr->ifdMax; in _bfd_ecoff_slurp_symbolic_info() 611 amt *= sizeof (struct fdr); in _bfd_ecoff_slurp_symbolic_info() 612 debug->fdr = (FDR *) bfd_alloc (abfd, amt); in _bfd_ecoff_slurp_symbolic_info() 643 bfd_size_type amt = sizeof (ecoff_symbol_type); in _bfd_ecoff_make_empty_symbol() local 645 new_symbol = (ecoff_symbol_type *) bfd_zalloc (abfd, amt); in _bfd_ecoff_make_empty_symbol() 1563 bfd_size_type amt; in ecoff_slurp_reloc_table() local 1576 amt = section->reloc_count; in ecoff_slurp_reloc_table() [all …]
|
D | nlm.c | 32 bfd_size_type amt = sizeof (struct nlm_obj_tdata); in nlm_mkobject() local 34 nlm_tdata (abfd) = bfd_zalloc (abfd, amt); in nlm_mkobject()
|
D | reloc16.c | 199 bfd_size_type amt; in bfd_coff_reloc16_relax_section() local 203 amt = reloc_count + 1; in bfd_coff_reloc16_relax_section() 204 amt *= sizeof (unsigned); in bfd_coff_reloc16_relax_section() 205 shrinks = (unsigned *) bfd_zmalloc (amt); in bfd_coff_reloc16_relax_section()
|
D | vms-lib.c | 2147 bfd_size_type amt; in _bfd_vms_lib_write_archive_contents() local 2151 amt = bfd_bread (blk + sz, VMS_BLOCK_SIZE - sz, current); in _bfd_vms_lib_write_archive_contents() 2152 if (amt == (bfd_size_type)-1) in _bfd_vms_lib_write_archive_contents() 2154 modsize = amt; in _bfd_vms_lib_write_archive_contents() 2155 if (amt < VMS_BLOCK_SIZE - sz) in _bfd_vms_lib_write_archive_contents() 2158 memset (blk + sz + amt, 0, VMS_BLOCK_SIZE - sz - amt); in _bfd_vms_lib_write_archive_contents() 2167 if (amt == VMS_BLOCK_SIZE - sz) in _bfd_vms_lib_write_archive_contents() 2174 amt = bfd_bread (buffer, sizeof (buffer), current); in _bfd_vms_lib_write_archive_contents() 2175 if (amt == (bfd_size_type)-1) in _bfd_vms_lib_write_archive_contents() 2177 if (amt == 0) in _bfd_vms_lib_write_archive_contents() [all …]
|
D | coffgen.c | 495 bfd_size_type amt; in _bfd_coff_read_internal_relocs() local 512 amt = sec->reloc_count * relsz; in _bfd_coff_read_internal_relocs() 515 free_external = (bfd_byte *) bfd_malloc (amt); in _bfd_coff_read_internal_relocs() 522 || bfd_bread (external_relocs, amt, abfd) != amt) in _bfd_coff_read_internal_relocs() 527 amt = sec->reloc_count; in _bfd_coff_read_internal_relocs() 528 amt *= sizeof (struct internal_reloc); in _bfd_coff_read_internal_relocs() 529 free_internal = (struct internal_reloc *) bfd_malloc (amt); in _bfd_coff_read_internal_relocs() 552 amt = sizeof (struct coff_section_tdata); in _bfd_coff_read_internal_relocs() 553 sec->used_by_bfd = bfd_zalloc (abfd, amt); in _bfd_coff_read_internal_relocs() 726 bfd_size_type amt; in coff_renumber_symbols() local [all …]
|