Lines Matching defs:flaginfo
3571 struct aout_final_link_info *flaginfo = (struct aout_final_link_info *) data;
3586 output_bfd = flaginfo->output_bfd;
3591 (output_bfd, flaginfo->info, h)))
3605 && (flaginfo->info->strip == strip_all
3606 || (flaginfo->info->strip == strip_some
3607 && bfd_hash_lookup (flaginfo->info->keep_hash, h->root.root.string,
3665 indx = add_to_stringtab (output_bfd, flaginfo->strtab, h->root.root.string,
3675 if (bfd_seek (output_bfd, flaginfo->symoff, SEEK_SET) != 0
3680 flaginfo->symoff += EXTERNAL_NLIST_SIZE;
3690 aout_link_reloc_link_order (struct aout_final_link_info *flaginfo,
3713 BFD_ASSERT (pr->u.section->owner == flaginfo->output_bfd);
3724 bfd_wrapped_link_hash_lookup (flaginfo->output_bfd, flaginfo->info,
3737 if (!aout_link_write_other_symbol (&h->root.root, flaginfo))
3743 if (! ((*flaginfo->info->callbacks->unattached_reloc)
3744 (flaginfo->info, pr->u.name, NULL, NULL, (bfd_vma) 0)))
3750 howto = bfd_reloc_type_lookup (flaginfo->output_bfd, pr->reloc);
3757 if (o == obj_textsec (flaginfo->output_bfd))
3758 reloff_ptr = &flaginfo->treloff;
3759 else if (o == obj_datasec (flaginfo->output_bfd))
3760 reloff_ptr = &flaginfo->dreloff;
3764 if (obj_reloc_entry_size (flaginfo->output_bfd) == RELOC_STD_SIZE)
3767 MY_put_reloc (flaginfo->output_bfd, r_extern, r_index, p->offset, howto,
3783 PUT_WORD (flaginfo->output_bfd, p->offset, srel.r_address);
3784 if (bfd_header_big_endian (flaginfo->output_bfd))
3830 r = MY_relocate_contents (howto, flaginfo->output_bfd,
3840 if (! ((*flaginfo->info->callbacks->reloc_overflow)
3841 (flaginfo->info, NULL,
3843 ? bfd_section_name (flaginfo->output_bfd,
3853 ok = bfd_set_section_contents (flaginfo->output_bfd, o, (void *) buf,
3863 MY_put_ext_reloc (flaginfo->output_bfd, r_extern, r_index, p->offset,
3866 PUT_WORD (flaginfo->output_bfd, p->offset, erel.r_address);
3868 if (bfd_header_big_endian (flaginfo->output_bfd))
3887 PUT_WORD (flaginfo->output_bfd, (bfd_vma) pr->addend, erel.r_addend);
3893 amt = obj_reloc_entry_size (flaginfo->output_bfd);
3894 if (bfd_seek (flaginfo->output_bfd, *reloff_ptr, SEEK_SET) != 0
3895 || bfd_bwrite (rel_ptr, amt, flaginfo->output_bfd) != amt)
3898 *reloff_ptr += obj_reloc_entry_size (flaginfo->output_bfd);
3902 BFD_ASSERT (*reloff_ptr <= obj_sym_filepos (flaginfo->output_bfd)
3903 && (reloff_ptr != &flaginfo->treloff
3905 <= obj_datasec (flaginfo->output_bfd)->rel_filepos)));
3930 aout_link_input_section_std (struct aout_final_link_info *flaginfo,
3951 output_bfd = flaginfo->output_bfd;
3958 relocatable = flaginfo->info->relocatable;
3962 symbol_map = flaginfo->symbol_map;
4031 (*flaginfo->info->callbacks->einfo)
4096 flaginfo))
4107 if (! ((*flaginfo->info->callbacks->unattached_reloc)
4108 (flaginfo->info, name, input_bfd, input_section,
4214 (flaginfo->info, input_bfd, input_section, h,
4224 if (hundef && ! flaginfo->info->shared && ! r_baserel)
4232 if (! ((*flaginfo->info->callbacks->undefined_symbol)
4233 (flaginfo->info, name, input_bfd, input_section,
4267 if (! ((*flaginfo->info->callbacks->reloc_overflow)
4268 (flaginfo->info, (h ? &h->root : NULL), name,
4284 aout_link_input_section_ext (struct aout_final_link_info *flaginfo,
4305 output_bfd = flaginfo->output_bfd;
4312 relocatable = flaginfo->info->relocatable;
4316 symbol_map = flaginfo->symbol_map;
4357 (*flaginfo->info->callbacks->einfo)
4438 flaginfo))
4449 if (! ((*flaginfo->info->callbacks->unattached_reloc)
4450 (flaginfo->info, name, input_bfd, input_section,
4617 (flaginfo->info, input_bfd, input_section, h,
4628 && ! flaginfo->info->shared
4639 if (! ((*flaginfo->info->callbacks->undefined_symbol)
4640 (flaginfo->info, name, input_bfd, input_section,
4686 if (! ((*flaginfo->info->callbacks->reloc_overflow)
4687 (flaginfo->info, (h ? &h->root : NULL), name,
4704 aout_link_input_section (struct aout_final_link_info *flaginfo,
4716 (void *) flaginfo->contents,
4726 relocs = flaginfo->relocs;
4738 if (! aout_link_input_section_std (flaginfo, input_bfd, input_section,
4740 rel_size, flaginfo->contents))
4745 if (! aout_link_input_section_ext (flaginfo, input_bfd, input_section,
4747 rel_size, flaginfo->contents))
4752 if (! bfd_set_section_contents (flaginfo->output_bfd,
4754 (void *) flaginfo->contents,
4761 if (flaginfo->info->relocatable && rel_size > 0)
4763 if (bfd_seek (flaginfo->output_bfd, *reloff_ptr, SEEK_SET) != 0)
4765 if (bfd_bwrite (relocs, rel_size, flaginfo->output_bfd) != rel_size)
4772 BFD_ASSERT (*reloff_ptr <= obj_sym_filepos (flaginfo->output_bfd)
4773 && (reloff_ptr != &flaginfo->treloff
4775 <= obj_datasec (flaginfo->output_bfd)->rel_filepos)));
4785 aout_link_write_symbols (struct aout_final_link_info *flaginfo, bfd *input_bfd)
4801 output_bfd = flaginfo->output_bfd;
4804 strip = flaginfo->info->strip;
4805 discard = flaginfo->info->discard;
4806 outsym = flaginfo->output_syms;
4812 || bfd_hash_lookup (flaginfo->info->keep_hash, input_bfd->filename,
4819 strtab_index = add_to_stringtab (output_bfd, flaginfo->strtab,
4838 symbol_map = flaginfo->symbol_map;
4937 if (bfd_hash_lookup (flaginfo->info->keep_hash, name, FALSE, FALSE)
5165 copy = (bfd_boolean) (! flaginfo->info->keep_memory);
5166 incl_entry = aout_link_includes_lookup (&flaginfo->includes,
5178 bfd_hash_allocate (&flaginfo->includes.root,
5227 if (! flaginfo->info->keep_memory)
5237 strtab_index = add_to_stringtab (output_bfd, flaginfo->strtab,
5249 if (outsym > flaginfo->output_syms)
5253 if (bfd_seek (output_bfd, flaginfo->symoff, SEEK_SET) != 0)
5255 outsym_size = outsym - flaginfo->output_syms;
5257 if (bfd_bwrite ((void *) flaginfo->output_syms, outsym_size, output_bfd)
5260 flaginfo->symoff += outsym_size;
5269 aout_link_input_bfd (struct aout_final_link_info *flaginfo, bfd *input_bfd)
5277 (flaginfo->info, input_bfd));
5280 flaginfo->info->keep_memory is FALSE. */
5285 is placed into flaginfo->symbol_map. */
5286 if (! aout_link_write_symbols (flaginfo, input_bfd))
5295 if (! aout_link_input_section (flaginfo, input_bfd,
5297 &flaginfo->treloff,
5303 if (! aout_link_input_section (flaginfo, input_bfd,
5305 &flaginfo->dreloff,
5313 if (! flaginfo->info->keep_memory)