Lines Matching defs:finfo

3565   struct aout_final_link_info *finfo = (struct aout_final_link_info *) data;
3580 output_bfd = finfo->output_bfd;
3585 (output_bfd, finfo->info, h)))
3599 && (finfo->info->strip == strip_all
3600 || (finfo->info->strip == strip_some
3601 && bfd_hash_lookup (finfo->info->keep_hash, h->root.root.string,
3659 indx = add_to_stringtab (output_bfd, finfo->strtab, h->root.root.string,
3669 if (bfd_seek (output_bfd, finfo->symoff, SEEK_SET) != 0
3674 finfo->symoff += EXTERNAL_NLIST_SIZE;
3684 aout_link_reloc_link_order (struct aout_final_link_info *finfo,
3707 BFD_ASSERT (pr->u.section->owner == finfo->output_bfd);
3718 bfd_wrapped_link_hash_lookup (finfo->output_bfd, finfo->info,
3731 if (! aout_link_write_other_symbol (h, (void *) finfo))
3737 if (! ((*finfo->info->callbacks->unattached_reloc)
3738 (finfo->info, pr->u.name, NULL, NULL, (bfd_vma) 0)))
3744 howto = bfd_reloc_type_lookup (finfo->output_bfd, pr->reloc);
3751 if (o == obj_textsec (finfo->output_bfd))
3752 reloff_ptr = &finfo->treloff;
3753 else if (o == obj_datasec (finfo->output_bfd))
3754 reloff_ptr = &finfo->dreloff;
3758 if (obj_reloc_entry_size (finfo->output_bfd) == RELOC_STD_SIZE)
3761 MY_put_reloc (finfo->output_bfd, r_extern, r_index, p->offset, howto,
3777 PUT_WORD (finfo->output_bfd, p->offset, srel.r_address);
3778 if (bfd_header_big_endian (finfo->output_bfd))
3824 r = MY_relocate_contents (howto, finfo->output_bfd,
3834 if (! ((*finfo->info->callbacks->reloc_overflow)
3835 (finfo->info, NULL,
3837 ? bfd_section_name (finfo->output_bfd,
3847 ok = bfd_set_section_contents (finfo->output_bfd, o, (void *) buf,
3857 MY_put_ext_reloc (finfo->output_bfd, r_extern, r_index, p->offset,
3860 PUT_WORD (finfo->output_bfd, p->offset, erel.r_address);
3862 if (bfd_header_big_endian (finfo->output_bfd))
3881 PUT_WORD (finfo->output_bfd, (bfd_vma) pr->addend, erel.r_addend);
3887 amt = obj_reloc_entry_size (finfo->output_bfd);
3888 if (bfd_seek (finfo->output_bfd, *reloff_ptr, SEEK_SET) != 0
3889 || bfd_bwrite (rel_ptr, amt, finfo->output_bfd) != amt)
3892 *reloff_ptr += obj_reloc_entry_size (finfo->output_bfd);
3896 BFD_ASSERT (*reloff_ptr <= obj_sym_filepos (finfo->output_bfd)
3897 && (reloff_ptr != &finfo->treloff
3899 <= obj_datasec (finfo->output_bfd)->rel_filepos)));
3924 aout_link_input_section_std (struct aout_final_link_info *finfo,
3945 output_bfd = finfo->output_bfd;
3952 relocatable = finfo->info->relocatable;
3956 symbol_map = finfo->symbol_map;
4025 (*finfo->info->callbacks->einfo)
4090 (void *) finfo))
4101 if (! ((*finfo->info->callbacks->unattached_reloc)
4102 (finfo->info, name, input_bfd, input_section,
4208 (finfo->info, input_bfd, input_section, h,
4218 if (hundef && ! finfo->info->shared && ! r_baserel)
4226 if (! ((*finfo->info->callbacks->undefined_symbol)
4227 (finfo->info, name, input_bfd, input_section,
4261 if (! ((*finfo->info->callbacks->reloc_overflow)
4262 (finfo->info, (h ? &h->root : NULL), name,
4278 aout_link_input_section_ext (struct aout_final_link_info *finfo,
4299 output_bfd = finfo->output_bfd;
4306 relocatable = finfo->info->relocatable;
4310 symbol_map = finfo->symbol_map;
4351 (*finfo->info->callbacks->einfo)
4432 (void *) finfo))
4443 if (! ((*finfo->info->callbacks->unattached_reloc)
4444 (finfo->info, name, input_bfd, input_section,
4611 (finfo->info, input_bfd, input_section, h,
4622 && ! finfo->info->shared
4633 if (! ((*finfo->info->callbacks->undefined_symbol)
4634 (finfo->info, name, input_bfd, input_section,
4680 if (! ((*finfo->info->callbacks->reloc_overflow)
4681 (finfo->info, (h ? &h->root : NULL), name,
4698 aout_link_input_section (struct aout_final_link_info *finfo,
4710 (void *) finfo->contents,
4720 relocs = finfo->relocs;
4732 if (! aout_link_input_section_std (finfo, input_bfd, input_section,
4734 rel_size, finfo->contents))
4739 if (! aout_link_input_section_ext (finfo, input_bfd, input_section,
4741 rel_size, finfo->contents))
4746 if (! bfd_set_section_contents (finfo->output_bfd,
4748 (void *) finfo->contents,
4755 if (finfo->info->relocatable && rel_size > 0)
4757 if (bfd_seek (finfo->output_bfd, *reloff_ptr, SEEK_SET) != 0)
4759 if (bfd_bwrite (relocs, rel_size, finfo->output_bfd) != rel_size)
4766 BFD_ASSERT (*reloff_ptr <= obj_sym_filepos (finfo->output_bfd)
4767 && (reloff_ptr != &finfo->treloff
4769 <= obj_datasec (finfo->output_bfd)->rel_filepos)));
4779 aout_link_write_symbols (struct aout_final_link_info *finfo, bfd *input_bfd)
4795 output_bfd = finfo->output_bfd;
4798 strip = finfo->info->strip;
4799 discard = finfo->info->discard;
4800 outsym = finfo->output_syms;
4806 || bfd_hash_lookup (finfo->info->keep_hash, input_bfd->filename,
4813 strtab_index = add_to_stringtab (output_bfd, finfo->strtab,
4832 symbol_map = finfo->symbol_map;
4931 if (bfd_hash_lookup (finfo->info->keep_hash, name, FALSE, FALSE)
5159 copy = (bfd_boolean) (! finfo->info->keep_memory);
5160 incl_entry = aout_link_includes_lookup (&finfo->includes,
5172 bfd_hash_allocate (&finfo->includes.root,
5221 if (! finfo->info->keep_memory)
5231 strtab_index = add_to_stringtab (output_bfd, finfo->strtab,
5243 if (outsym > finfo->output_syms)
5247 if (bfd_seek (output_bfd, finfo->symoff, SEEK_SET) != 0)
5249 outsym_size = outsym - finfo->output_syms;
5251 if (bfd_bwrite ((void *) finfo->output_syms, outsym_size, output_bfd)
5254 finfo->symoff += outsym_size;
5263 aout_link_input_bfd (struct aout_final_link_info *finfo, bfd *input_bfd)
5271 (finfo->info, input_bfd));
5274 finfo->info->keep_memory is FALSE. */
5279 is placed into finfo->symbol_map. */
5280 if (! aout_link_write_symbols (finfo, input_bfd))
5289 if (! aout_link_input_section (finfo, input_bfd,
5291 &finfo->treloff,
5297 if (! aout_link_input_section (finfo, input_bfd,
5299 &finfo->dreloff,
5307 if (! finfo->info->keep_memory)