Lines Matching refs:amt
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()
1890 section->used_by_bfd = bfd_zalloc (abfd, amt); in coff_set_alignment_hook()
1898 amt = sizeof (struct pei_section_tdata); in coff_set_alignment_hook()
1899 coff_section_data (abfd, section)->tdata = bfd_zalloc (abfd, amt); in coff_set_alignment_hook()
1981 bfd_size_type amt = sizeof (coff_data_type); in coff_mkobject() local
1983 abfd->tdata.coff_obj_data = bfd_zalloc (abfd, amt); in coff_mkobject()
2278 bfd_size_type amt = bfd_coff_symesz (abfd); in coff_set_arch_mach_hook() local
2280 buf = bfd_malloc (amt); in coff_set_arch_mach_hook()
2282 || bfd_bread (buf, amt, abfd) != amt) in coff_set_arch_mach_hook()
2664 bfd_size_type amt; in coff_write_relocs() local
2666 amt = s->reloc_count; in coff_write_relocs()
2667 amt *= sizeof (arelent *); in coff_write_relocs()
2668 p = bfd_malloc (amt); in coff_write_relocs()
2671 memcpy (p, s->orelocation, (size_t) amt); in coff_write_relocs()
3238 bfd_size_type amt; in coff_compute_section_file_positions() local
3252 amt = sizeof (struct asection *) * (count + 1); in coff_compute_section_file_positions()
3253 section_list = (asection **) bfd_malloc (amt); in coff_compute_section_file_positions()
3324 bfd_size_type amt = sizeof (struct coff_section_tdata); in coff_compute_section_file_positions() local
3326 current->used_by_bfd = bfd_zalloc (abfd, amt); in coff_compute_section_file_positions()
3332 bfd_size_type amt = sizeof (struct pei_section_tdata); in coff_compute_section_file_positions() local
3334 coff_section_data (abfd, current)->tdata = bfd_zalloc (abfd, amt); in coff_compute_section_file_positions()
3842 bfd_size_type amt = bfd_coff_scnhsz (abfd); in coff_write_object_contents() local
3845 || bfd_bwrite (& buff, amt, abfd) != amt) in coff_write_object_contents()
3956 bfd_size_type amt; in coff_write_object_contents() local
3969 amt = bfd_coff_scnhsz (abfd); in coff_write_object_contents()
3971 || bfd_bwrite (& buff, amt, abfd) != amt) in coff_write_object_contents()
4521 bfd_size_type amt; in coff_slurp_line_table() local
4532 amt = ((bfd_size_type) asect->lineno_count + 1) * sizeof (alent); in coff_slurp_line_table()
4533 lineno_cache = (alent *) bfd_alloc (abfd, amt); in coff_slurp_line_table()
4537 amt = (bfd_size_type) bfd_coff_linesz (abfd) * asect->lineno_count; in coff_slurp_line_table()
4538 native_lineno = (LINENO *) buy_and_read (abfd, asect->line_filepos, amt); in coff_slurp_line_table()
4656 amt = (bfd_size_type) asect->lineno_count * sizeof (alent); in coff_slurp_line_table()
4657 n_lineno_cache = (alent *) bfd_alloc (abfd, amt); in coff_slurp_line_table()
4677 BFD_ASSERT ((bfd_size_type) (n_cache_ptr - n_lineno_cache) == (amt / sizeof (alent))); in coff_slurp_line_table()
4679 memcpy (lineno_cache, n_lineno_cache, amt); in coff_slurp_line_table()
4698 bfd_size_type amt; in coff_slurp_symbol_table() local
4709 amt = obj_raw_syment_count (abfd); in coff_slurp_symbol_table()
4710 amt *= sizeof (coff_symbol_type); in coff_slurp_symbol_table()
4711 cached_area = (coff_symbol_type *) bfd_alloc (abfd, amt); in coff_slurp_symbol_table()
4715 amt = obj_raw_syment_count (abfd); in coff_slurp_symbol_table()
4716 amt *= sizeof (unsigned int); in coff_slurp_symbol_table()
4717 table_ptr = (unsigned int *) bfd_zalloc (abfd, amt); in coff_slurp_symbol_table()
5208 bfd_size_type amt; in coff_slurp_reloc_table() local
5219 amt = (bfd_size_type) bfd_coff_relsz (abfd) * asect->reloc_count; in coff_slurp_reloc_table()
5220 native_relocs = (RELOC *) buy_and_read (abfd, asect->rel_filepos, amt); in coff_slurp_reloc_table()
5221 amt = (bfd_size_type) asect->reloc_count * sizeof (arelent); in coff_slurp_reloc_table()
5222 reloc_cache = (arelent *) bfd_alloc (abfd, amt); in coff_slurp_reloc_table()