Home
last modified time | relevance | path

Searched refs:bfd_malloc (Results 1 – 25 of 110) sorted by relevance

12345

/toolchain/binutils/binutils-2.25/bfd/
Dcompress.c101 compressed_buffer = (bfd_byte *) bfd_malloc (compressed_size); in bfd_compress_section_contents()
182 p = (bfd_byte *) bfd_malloc (sz); in bfd_get_full_section_contents()
201 compressed_buffer = (bfd_byte *) bfd_malloc (sec->compressed_size); in bfd_get_full_section_contents()
222 p = (bfd_byte *) bfd_malloc (sz); in bfd_get_full_section_contents()
244 p = (bfd_byte *) bfd_malloc (sz); in bfd_get_full_section_contents()
426 uncompressed_buffer = (bfd_byte *) bfd_malloc (uncompressed_size); in bfd_init_section_compress_status()
Dcoff-ppc.c183 ret = (struct ppc_coff_link_hash_table *) bfd_malloc (amt); in ppc_coff_link_hash_table_create()
774 struct list_ele *t = (struct list_ele *) bfd_malloc (amt); in record_toc()
2083 flaginfo.section_info = (struct coff_link_section_info *) bfd_malloc (amt); in ppc_bfd_coff_final_link()
2130 (struct internal_reloc *) bfd_malloc (amt); in ppc_bfd_coff_final_link()
2134 (struct coff_link_hash_entry **) bfd_malloc (amt); in ppc_bfd_coff_final_link()
2167 flaginfo.internal_syms = (struct internal_syment *) bfd_malloc (amt); in ppc_bfd_coff_final_link()
2169 flaginfo.sec_ptrs = (asection **) bfd_malloc (amt); in ppc_bfd_coff_final_link()
2171 flaginfo.sym_indices = (long *) bfd_malloc (amt); in ppc_bfd_coff_final_link()
2173 flaginfo.outsyms = (bfd_byte *) bfd_malloc (amt); in ppc_bfd_coff_final_link()
2175 flaginfo.linenos = (bfd_byte *) bfd_malloc (amt); in ppc_bfd_coff_final_link()
[all …]
Delf32-sh-symbian.c134 if ((node = bfd_malloc (sizeof * node)) == NULL) in sh_symbian_import_as()
141 if ((node->current_name = bfd_malloc (strlen (current_name) + 1)) == NULL) in sh_symbian_import_as()
151 if ((node->new_name = bfd_malloc (strlen (new_name) + 1)) == NULL) in sh_symbian_import_as()
407 contents = bfd_malloc (sz); in sh_symbian_process_directives()
Dcpu-i386.c78 void *fill = bfd_malloc (count); in bfd_arch_i386_fill()
127 void *fill = bfd_malloc (count); in bfd_arch_i386_onebyte_nop_fill()
Delf-strtab.c100 table = (struct elf_strtab_hash *) bfd_malloc (amt); in _bfd_elf_strtab_init()
116 bfd_malloc (table->alloced * amt); in _bfd_elf_strtab_init()
342 array = (struct elf_strtab_hash_entry **) bfd_malloc (amt); in _bfd_elf_strtab_finalize()
Dopncls.c848 bim = (struct bfd_in_memory *) bfd_malloc (sizeof (struct bfd_in_memory)); in bfd_make_writable()
1255 *buildid_out = bfd_malloc (*buildid_len); in bfd_get_alt_debug_link_info()
1390 dir = (char *) bfd_malloc (dirlen + 1); in find_separate_debug_file()
1408 bfd_malloc (strlen (debug_file_directory) + 1 in find_separate_debug_file()
1670 contents = (char *) bfd_malloc (debuglink_size); in bfd_fill_in_gnu_debuglink_section()
Dsimple.c236 data = (bfd_byte *) bfd_malloc (amt); in bfd_simple_get_relocated_section_contents()
264 symbol_table = (asymbol **) bfd_malloc (storage_needed); in bfd_simple_get_relocated_section_contents()
Dreloc16.c167 reloc_vector = (arelent **) bfd_malloc ((bfd_size_type) reloc_size); in bfd_coff_reloc16_relax_section()
277 reloc_vector = (arelent **) bfd_malloc ((bfd_size_type) reloc_size); in bfd_coff_reloc16_get_relocated_section_contents()
Dcofflink.c114 ret = (struct coff_link_hash_table *) bfd_malloc (amt); in _bfd_coff_link_hash_table_create()
710 flaginfo.section_info = (struct coff_link_section_info *) bfd_malloc (amt); in _bfd_coff_final_link()
754 (struct internal_reloc *) bfd_malloc (amt); in _bfd_coff_final_link()
758 (struct coff_link_hash_entry **) bfd_malloc (amt); in _bfd_coff_final_link()
791 flaginfo.internal_syms = (struct internal_syment *) bfd_malloc (amt); in _bfd_coff_final_link()
793 flaginfo.sec_ptrs = (asection **) bfd_malloc (amt); in _bfd_coff_final_link()
795 flaginfo.sym_indices = (long int *) bfd_malloc (amt); in _bfd_coff_final_link()
796 flaginfo.outsyms = (bfd_byte *) bfd_malloc ((max_sym_count + 1) * symesz); in _bfd_coff_final_link()
798 flaginfo.linenos = (bfd_byte *) bfd_malloc (amt); in _bfd_coff_final_link()
799 flaginfo.contents = (bfd_byte *) bfd_malloc (max_contents_size); in _bfd_coff_final_link()
[all …]
Dpef.c442 loaderbuf = bfd_malloc (loaderlen); in bfd_pef_print_loader_section()
473 loaderbuf = bfd_malloc (loaderlen); in bfd_pef_scan_start_address()
745 libraries = bfd_malloc in bfd_pef_parse_function_stubs()
747 imports = bfd_malloc in bfd_pef_parse_function_stubs()
892 codebuf = bfd_malloc (codelen); in bfd_pef_parse_symbols()
903 loaderbuf = bfd_malloc (loaderlen); in bfd_pef_parse_symbols()
Dbfd.c1875 alloc = (char *) bfd_malloc (suf - name + 1); in bfd_demangle()
1893 alloc = (char *) bfd_malloc (len); in bfd_demangle()
1913 final = (char *) bfd_malloc (pre_len + len + suf_len); in bfd_demangle()
Dcoff-h8300.c1146 char *new_name = bfd_malloc ((bfd_size_type) strlen (name) + 10); in h8300_reloc16_extra_cases()
1296 relocs = (arelent **) bfd_malloc ((bfd_size_type) reloc_size); in h8300_bfd_link_add_symbols()
1335 new_name = bfd_malloc ((bfd_size_type) strlen (name) + 10); in h8300_bfd_link_add_symbols()
1392 sec->contents = bfd_malloc (sec->size); in h8300_bfd_link_add_symbols()
Delf32-spu.c652 = bfd_malloc (info->output_bfd->section_count * sizeof (*alloc_sec)); in spu_elf_find_overlays()
1129 g = bfd_malloc (sizeof *g); in count_stub()
1216 g = bfd_malloc (sizeof *g); in build_stub()
1425 name = bfd_malloc (len + 1); in build_stub()
2481 char *name = bfd_malloc (len + 10); in func_name()
2642 callee = bfd_malloc (sizeof (*callee)); in copy_callee()
2815 callee = bfd_malloc (sizeof *callee); in mark_functions_via_relocs()
2910 struct call_info *callee = bfd_malloc (sizeof *callee); in pasted_function()
3004 psyms = bfd_malloc ((symcount + 1) * sizeof (*psyms)); in discover_functions()
3008 psecs = bfd_malloc (symcount * sizeof (*psecs)); in discover_functions()
[all …]
Dxtensa-isa.c244 bfd_malloc (isa->num_opcodes * sizeof (xtensa_lookup_entry)); in xtensa_isa_init()
256 bfd_malloc (isa->num_states * sizeof (xtensa_lookup_entry)); in xtensa_isa_init()
268 bfd_malloc (isa->num_sysregs * sizeof (xtensa_lookup_entry)); in xtensa_isa_init()
282 bfd_malloc ((isa->max_sysreg_num[is_user] + 1) in xtensa_isa_init()
300 bfd_malloc (isa->num_interfaces * sizeof (xtensa_lookup_entry)); in xtensa_isa_init()
313 bfd_malloc (isa->num_funcUnits * sizeof (xtensa_lookup_entry)); in xtensa_isa_init()
Darchures.c800 name_list = (const char **) bfd_malloc (amt); in bfd_arch_list()
1398 void *fill = bfd_malloc (count); in bfd_arch_default_fill()
Dbout.c279 native = bfd_malloc (natsize); in b_out_squirt_out_relocs()
707 relocs = bfd_malloc (reloc_size); in b_out_slurp_reloc_table()
712 reloc_cache = bfd_malloc (amt); in b_out_slurp_reloc_table()
1157 reloc_vector = bfd_malloc ((bfd_size_type) reloc_size); in b_out_bfd_relax_section()
1229 reloc_vector = bfd_malloc ((bfd_size_type) reloc_size); in b_out_bfd_get_relocated_section_contents()
DpeXXigen.c1468 ft_data = (bfd_byte *) bfd_malloc (ft_datasize); in pe_print_idata()
1667 data = (bfd_byte *) bfd_malloc (datasize); in pe_print_edata()
2005 sy = (asymbol **) bfd_malloc (storage); in slurp_symtab()
2124 tdata = (bfd_byte *) bfd_malloc (8); in _bfd_XX_print_ce_compressed_pdata()
3219 entry->value.directory = bfd_malloc (sizeof * entry->value.directory); in rsrc_parse_entry()
3230 entry->value.leaf = bfd_malloc (sizeof * entry->value.leaf); in rsrc_parse_entry()
3238 entry->value.leaf->data = bfd_malloc (size); in rsrc_parse_entry()
3266 entry = bfd_malloc (sizeof * entry); in rsrc_parse_entries()
3285 entry->next_entry = bfd_malloc (sizeof * entry); in rsrc_parse_entries()
3773 new_data = bfd_malloc (a->value.leaf->size + copy_needed); in rsrc_merge_string_entries()
[all …]
Dcoff-arm.c1021 tmp_name = bfd_malloc (amt); in find_thumb_glue()
1050 tmp_name = bfd_malloc (amt); in find_arm_glue()
1849 tmp_name = bfd_malloc (amt); in record_arm_to_thumb_glue()
1905 tmp_name = bfd_malloc (amt); in record_thumb_to_arm_glue()
1938 tmp_name = bfd_malloc (amt); in record_thumb_to_arm_glue()
Delflink.c1966 alc = (char *) bfd_malloc (len); in _bfd_elf_link_assign_sym_version()
2198 internal_relocs = alloc2 = (Elf_Internal_Rela *) bfd_malloc (size); in _bfd_elf_link_read_relocs()
2212 alloc1 = bfd_malloc (size); in _bfd_elf_link_read_relocs()
3723 extversym = (Elf_External_Versym *) bfd_malloc (versymhdr->sh_size); in elf_link_add_object_symbols()
3756 old_tab = bfd_malloc (tabsize + entsize); in elf_link_add_object_symbols()
4380 (struct elf_link_hash_entry **) bfd_malloc (amt); in elf_link_add_object_symbols()
4573 shortname = (char *) bfd_malloc (amt + 1); in elf_link_add_object_symbols()
4631 sorted_sym_hash = (struct elf_link_hash_entry **) bfd_malloc (amt); in elf_link_add_object_symbols()
5137 alc = (char *) bfd_malloc (p - name + 1); in elf_collect_hash_codes()
5209 alc = (char *) bfd_malloc (p - name + 1); in elf_collect_gnu_hash_codes()
[all …]
Delf32-m32c.c498 char *newname = bfd_malloc (strlen(name)+5); in m32c_elf_relocate_section()
905 internal_syms = bfd_malloc (1000); in dump_symtab()
910 external_syms = bfd_malloc (1000); in dump_symtab()
1433 shndx_buf = (Elf_External_Sym_Shndx *) bfd_malloc (amt); in m32c_elf_relax_section()
Dsrec.c364 symbuf = (char *) bfd_malloc (alc + 1); in srec_scan()
496 buf = (bfd_byte *) bfd_malloc ((bfd_size_type) bytes * 2); in srec_scan()
752 buf = (bfd_byte *) bfd_malloc ((bfd_size_type) bytes * 2); in srec_read_section()
Ddwarf2.c533 *section_buffer = (bfd_byte *) bfd_malloc (*section_size); in read_section()
1276 seq = (struct line_sequence *) bfd_malloc (amt); in add_line_info()
1376 name = (char *) bfd_malloc (len); in concat_filename()
1382 name = (char *) bfd_malloc (len); in concat_filename()
2290 bfd_malloc (nested_funcs_size * sizeof (struct funcinfo *)); in scan_unit_for_symbols()
3116 p = (struct adjusted_section *) bfd_malloc (amt); in place_sections()
3419 stash->sec_vma = bfd_malloc (sizeof (*stash->sec_vma) * abfd->section_count); in save_section_vma()
3562 stash->info_ptr_memory = (bfd_byte *) bfd_malloc (total_size); in _bfd_dwarf2_slurp_debug_info()
Dlibbfd.c171 bfd_malloc (bfd_size_type size) in bfd_malloc() function
914 w->i->data = bfd_malloc (count); in _bfd_generic_get_section_contents_in_window()
Dxcofflink.c949 dsnm = bfd_malloc ((bfd_size_type) strlen (name) + 2); in xcoff_link_add_dynamic_symbols()
1320 linenos = bfd_malloc (amt); in xcoff_link_add_symbols()
2515 fnname = bfd_malloc (amt); in xcoff_find_function()
3685 ldsym = bfd_malloc (amt); in bfd_xcoff_size_dynamic_sections()
3980 bim = bfd_malloc ((bfd_size_type) sizeof (* bim)); in bfd_xcoff_link_generate_rtinit()
6029 flinfo.section_info = bfd_malloc (amt); in _bfd_xcoff_bfd_final_link()
6077 flinfo.section_info[o->target_index].relocs = bfd_malloc (amt); in _bfd_xcoff_bfd_final_link()
6081 flinfo.section_info[o->target_index].rel_hashes = bfd_malloc (amt); in _bfd_xcoff_bfd_final_link()
6132 flinfo.internal_syms = bfd_malloc (amt); in _bfd_xcoff_bfd_final_link()
6135 flinfo.sym_indices = bfd_malloc (amt); in _bfd_xcoff_bfd_final_link()
[all …]
Delf32-microblaze.c1710 sec->relax = (struct relax_table *) bfd_malloc ((sec->reloc_count + 1) in microblaze_elf_relax_section()
1732 contents = (bfd_byte *) bfd_malloc (sec->size); in microblaze_elf_relax_section()
1929 ocontents = (bfd_byte *) bfd_malloc (o->rawsize); in microblaze_elf_relax_section()
1959 ocontents = (bfd_byte *) bfd_malloc (o->rawsize); in microblaze_elf_relax_section()
1998 ocontents = (bfd_byte *) bfd_malloc (o->rawsize); in microblaze_elf_relax_section()
2042 ocontents = (bfd_byte *) bfd_malloc (o->rawsize); in microblaze_elf_relax_section()
2086 ocontents = (bfd_byte *) bfd_malloc (o->rawsize); in microblaze_elf_relax_section()

12345