Lines Matching defs:finfo

2072   struct coff_final_link_info finfo;
2092 finfo.info = info;
2093 finfo.output_bfd = abfd;
2094 finfo.strtab = NULL;
2095 finfo.section_info = NULL;
2096 finfo.last_file_index = -1;
2097 finfo.last_bf_index = -1;
2098 finfo.internal_syms = NULL;
2099 finfo.sec_ptrs = NULL;
2100 finfo.sym_indices = NULL;
2101 finfo.outsyms = NULL;
2102 finfo.linenos = NULL;
2103 finfo.contents = NULL;
2104 finfo.external_relocs = NULL;
2105 finfo.internal_relocs = NULL;
2110 finfo.strtab = _bfd_stringtab_init ();
2111 if (finfo.strtab == NULL)
2114 if (! coff_debug_merge_hash_table_init (&finfo.debug_merge))
2193 finfo.section_info = (struct coff_link_section_info *) bfd_malloc (amt);
2195 if (finfo.section_info == NULL)
2200 finfo.section_info[i].relocs = NULL;
2201 finfo.section_info[i].rel_hashes = NULL;
2239 finfo.section_info[o->target_index].relocs =
2243 finfo.section_info[o->target_index].rel_hashes =
2245 if (finfo.section_info[o->target_index].relocs == NULL
2246 || finfo.section_info[o->target_index].rel_hashes == NULL)
2277 finfo.internal_syms = (struct internal_syment *) bfd_malloc (amt);
2279 finfo.sec_ptrs = (asection **) bfd_malloc (amt);
2281 finfo.sym_indices = (long *) bfd_malloc (amt);
2283 finfo.outsyms = (bfd_byte *) bfd_malloc (amt);
2285 finfo.linenos = (bfd_byte *) bfd_malloc (amt);
2286 finfo.contents = (bfd_byte *) bfd_malloc (max_contents_size);
2287 finfo.external_relocs = (bfd_byte *) bfd_malloc (max_reloc_count * relsz);
2291 finfo.internal_relocs = (struct internal_reloc *) bfd_malloc (amt);
2293 if ((finfo.internal_syms == NULL && max_sym_count > 0)
2294 || (finfo.sec_ptrs == NULL && max_sym_count > 0)
2295 || (finfo.sym_indices == NULL && max_sym_count > 0)
2296 || finfo.outsyms == NULL
2297 || (finfo.linenos == NULL && max_lineno_count > 0)
2298 || (finfo.contents == NULL && max_contents_size > 0)
2299 || (finfo.external_relocs == NULL && max_reloc_count > 0)
2301 && finfo.internal_relocs == NULL
2333 if (! _bfd_coff_link_input_bfd (&finfo, sub))
2341 if (! _bfd_coff_reloc_link_order (abfd, &finfo, o, p))
2357 if (! _bfd_coff_link_input_bfd (&finfo, last_one))
2365 coff_debug_merge_hash_table_free (&finfo.debug_merge);
2368 if (finfo.internal_syms != NULL)
2370 free (finfo.internal_syms);
2371 finfo.internal_syms = NULL;
2373 if (finfo.sec_ptrs != NULL)
2375 free (finfo.sec_ptrs);
2376 finfo.sec_ptrs = NULL;
2378 if (finfo.sym_indices != NULL)
2380 free (finfo.sym_indices);
2381 finfo.sym_indices = NULL;
2383 if (finfo.linenos != NULL)
2385 free (finfo.linenos);
2386 finfo.linenos = NULL;
2388 if (finfo.contents != NULL)
2390 free (finfo.contents);
2391 finfo.contents = NULL;
2393 if (finfo.external_relocs != NULL)
2395 free (finfo.external_relocs);
2396 finfo.external_relocs = NULL;
2398 if (finfo.internal_relocs != NULL)
2400 free (finfo.internal_relocs);
2401 finfo.internal_relocs = NULL;
2407 if (finfo.last_file_index != -1
2408 && (unsigned int) finfo.last_file.n_value != obj_raw_syment_count (abfd))
2412 finfo.last_file.n_value = obj_raw_syment_count (abfd);
2413 bfd_coff_swap_sym_out (abfd, (PTR) &finfo.last_file,
2414 (PTR) finfo.outsyms);
2415 pos = obj_sym_filepos (abfd) + finfo.last_file_index * symesz;
2417 || bfd_bwrite (finfo.outsyms, symesz, abfd) != symesz)
2422 finfo.failed = FALSE;
2424 (PTR) &finfo);
2425 if (finfo.failed)
2429 if (finfo.outsyms != NULL)
2431 free (finfo.outsyms);
2432 finfo.outsyms = NULL;
2455 irel = finfo.section_info[o->target_index].relocs;
2457 rel_hash = finfo.section_info[o->target_index].rel_hashes;
2480 if (finfo.section_info != NULL)
2486 if (finfo.section_info[i].relocs != NULL)
2487 free (finfo.section_info[i].relocs);
2488 if (finfo.section_info[i].rel_hashes != NULL)
2489 free (finfo.section_info[i].rel_hashes);
2491 free (finfo.section_info);
2492 finfo.section_info = NULL;
2513 _bfd_stringtab_size (finfo.strtab) + STRING_SIZE_SIZE,
2523 if (! _bfd_stringtab_emit (abfd, finfo.strtab))
2527 _bfd_stringtab_free (finfo.strtab);
2537 coff_debug_merge_hash_table_free (&finfo.debug_merge);
2538 if (finfo.strtab != NULL)
2539 _bfd_stringtab_free (finfo.strtab);
2540 if (finfo.section_info != NULL)
2546 if (finfo.section_info[i].relocs != NULL)
2547 free (finfo.section_info[i].relocs);
2548 if (finfo.section_info[i].rel_hashes != NULL)
2549 free (finfo.section_info[i].rel_hashes);
2551 free (finfo.section_info);
2553 if (finfo.internal_syms != NULL)
2554 free (finfo.internal_syms);
2555 if (finfo.sec_ptrs != NULL)
2556 free (finfo.sec_ptrs);
2557 if (finfo.sym_indices != NULL)
2558 free (finfo.sym_indices);
2559 if (finfo.outsyms != NULL)
2560 free (finfo.outsyms);
2561 if (finfo.linenos != NULL)
2562 free (finfo.linenos);
2563 if (finfo.contents != NULL)
2564 free (finfo.contents);
2565 if (finfo.external_relocs != NULL)
2566 free (finfo.external_relocs);
2567 if (finfo.internal_relocs != NULL)
2568 free (finfo.internal_relocs);