Lines Matching refs:mips_sym

655   record_global_got_symbol(Mips_symbol<size>* mips_sym,
1875 record_global_got_symbol(Mips_symbol<size>* mips_sym, in record_global_got_symbol() argument
1879 this->master_got_info_->record_global_got_symbol(mips_sym, object, r_type, in record_global_got_symbol()
2810 Mips_symbol<size>* mips_sym = Mips_symbol<size>::as_mips_sym(*p); in reorder_dyn_symbols() local
2811 if (mips_sym->global_got_area() == GGA_NORMAL in reorder_dyn_symbols()
2812 || mips_sym->global_got_area() == GGA_RELOC_ONLY) in reorder_dyn_symbols()
2813 got_symbols->push_back(mips_sym); in reorder_dyn_symbols()
2815 non_got_symbols->push_back(mips_sym); in reorder_dyn_symbols()
2836 Mips_symbol<size>* mips_sym = Mips_symbol<size>::as_mips_sym(sym); in operator ()() local
2837 if (local_pic_function<size, big_endian>(mips_sym)) in operator ()()
2847 mips_sym->set_pic(); in operator ()()
2849 else if (mips_sym->has_nonpic_branches()) in operator ()()
2852 ->create_la25_stub(this->symtab_, this->target_, mips_sym); in operator ()()
3212 const Mips_symbol<size>* mips_sym = Mips_symbol<size>::as_mips_sym(sym); in do_adjust_dyn_symbol() local
3217 if (mips_sym->is_mips16() && value != 0) in do_adjust_dyn_symbol()
3219 if (!mips_sym->has_mips16_fn_stub()) in do_adjust_dyn_symbol()
3235 mips_sym->template get_mips16_fn_stub<big_endian>(); in do_adjust_dyn_symbol()
3242 mips_sym->nonvis() - (elfcpp::STO_MIPS16 >> 2))); in do_adjust_dyn_symbol()
3244 else if ((mips_sym->is_micromips() in do_adjust_dyn_symbol()
3247 || (this->is_output_micromips() && mips_sym->has_lazy_stub())) in do_adjust_dyn_symbol()
3252 mips_sym->nonvis() - (elfcpp::STO_MICROMIPS >> 2))); in do_adjust_dyn_symbol()
4767 Mips_symbol<size>* mips_sym, Mips_relobj<size, big_endian>* object, in record_global_got_symbol() argument
4771 mips_sym->set_got_not_only_for_calls(); in record_global_got_symbol()
4774 if (!mips_sym->needs_dynsym_entry()) in record_global_got_symbol()
4776 switch (mips_sym->visibility()) in record_global_got_symbol()
4780 mips_sym->set_is_forced_local(); in record_global_got_symbol()
4783 mips_sym->set_needs_dynsym_entry(); in record_global_got_symbol()
4790 this->global_got_symbols_.insert(mips_sym); in record_global_got_symbol()
4794 if (mips_sym->global_got_area() == GGA_NONE) in record_global_got_symbol()
4795 mips_sym->set_global_got_area(GGA_RELOC_ONLY); in record_global_got_symbol()
4800 new Mips_got_entry<size, big_endian>(object, mips_sym, tls_type); in record_global_got_symbol()
4957 Mips_symbol<size>* mips_sym = entry->sym(); in add_local_entries() local
4958 if (mips_sym->global_got_area() == GGA_NONE && !entry->is_tls_entry()) in add_local_entries()
4965 if (got->add_global(mips_sym, got_type)) in add_local_entries()
4967 mips_sym->set_global_gotoffset(mips_sym->got_offset(got_type)); in add_local_entries()
4971 mips_sym, elfcpp::R_MIPS_REL32, got, in add_local_entries()
4972 mips_sym->got_offset(got_type)); in add_local_entries()
5029 Mips_symbol<size>* mips_sym = entry->sym(); in add_global_entries() local
5030 if (mips_sym->global_got_area() != GGA_NORMAL) in add_global_entries()
5042 if (!got->add_global(mips_sym, got_type)) in add_global_entries()
5045 mips_sym->set_global_gotoffset(mips_sym->got_offset(got_type)); in add_global_entries()
5052 && mips_sym->is_from_dynobj() && !mips_sym->is_undefined())) in add_global_entries()
5055 mips_sym, elfcpp::R_MIPS_REL32, got, in add_global_entries()
5056 mips_sym->got_offset(got_type)); in add_global_entries()
5057 got->add_secondary_got_reloc(mips_sym->got_offset(got_type), in add_global_entries()
5058 elfcpp::R_MIPS_REL32, mips_sym); in add_global_entries()
5094 Mips_symbol<size>* mips_sym = *p; in add_reloc_only_entries() local
5095 if (mips_sym->global_got_area() == GGA_RELOC_ONLY) in add_reloc_only_entries()
5102 if (got->add_global(mips_sym, got_type)) in add_reloc_only_entries()
5103 mips_sym->set_global_gotoffset(mips_sym->got_offset(got_type)); in add_reloc_only_entries()
5207 Mips_symbol<size>* mips_sym = entry->sym(); in add_tls_entries() local
5220 got->add_global_pair_with_rel(mips_sym, got_type, in add_tls_entries()
5230 mips_sym->set_got_offset(got_type, got_offset); in add_tls_entries()
5232 got->add_static_reloc(got_offset + size/8, r_type2, mips_sym); in add_tls_entries()
5245 got->add_global_with_rel(mips_sym, got_type, in add_tls_entries()
5249 got->add_global(mips_sym, got_type); in add_tls_entries()
5250 unsigned int got_offset = mips_sym->got_offset(got_type); in add_tls_entries()
5251 got->add_static_reloc(got_offset, r_type, mips_sym); in add_tls_entries()
5642 Mips_symbol<size>* mips_sym = *p; in do_write() local
5643 if (mips_sym->has_lazy_stub()) in do_write()
5646 oview + this->get_primary_got_offset(mips_sym)); in do_write()
5648 this->target_->mips_stubs_section()->stub_address(mips_sym); in do_write()
5659 Mips_symbol<size>* mips_sym = *p; in do_write() local
5661 && (mips_sym->is_mips16() || mips_sym->is_micromips()) in do_write()
5662 && mips_sym->global_got_area() == GGA_NONE in do_write()
5663 && mips_sym->has_got_offset(GOT_TYPE_STANDARD)) in do_write()
5666 oview + mips_sym->got_offset(GOT_TYPE_STANDARD)); in do_write()
6339 Mips_symbol<size>* mips_sym = *p; in set_plt_offsets() local
6350 || mips_sym->has_mips16_call_stub() in set_plt_offsets()
6351 || mips_sym->has_mips16_call_fp_stub()) in set_plt_offsets()
6353 mips_sym->set_needs_mips_plt(true); in set_plt_offsets()
6354 mips_sym->set_needs_comp_plt(false); in set_plt_offsets()
6363 if (!mips_sym->needs_mips_plt() && !mips_sym->needs_comp_plt()) in set_plt_offsets()
6366 mips_sym->set_needs_comp_plt(true); in set_plt_offsets()
6368 mips_sym->set_needs_mips_plt(true); in set_plt_offsets()
6371 if (mips_sym->needs_mips_plt()) in set_plt_offsets()
6373 mips_sym->set_mips_plt_offset(this->plt_mips_offset_); in set_plt_offsets()
6376 if (mips_sym->needs_comp_plt()) in set_plt_offsets()
6378 mips_sym->set_comp_plt_offset(this->plt_comp_offset_); in set_plt_offsets()
6510 Mips_symbol<size>* mips_sym = *p; in do_write() local
6525 if (mips_sym->has_mips_plt_offset()) in do_write()
6543 if (mips_sym->has_comp_plt_offset()) in do_write()
6911 Mips_symbol<size>* mips_sym = *p; in set_lazy_stub_offsets() local
6912 mips_sym->set_lazy_stub_offset(offset); in set_lazy_stub_offsets()
7193 const Mips_symbol<size>* mips_sym = Mips_symbol<size>::as_mips_sym(gsym); in do_dynsym_value() local
7195 if (!mips_sym->has_lazy_stub()) in do_dynsym_value()
7197 if (mips_sym->has_plt_offset()) in do_dynsym_value()
7203 if (mips_sym->pointer_equality_needed()) in do_dynsym_value()
7206 if (mips_sym->has_mips_plt_offset()) in do_dynsym_value()
7207 value = this->plt_section()->mips_entry_address(mips_sym); in do_dynsym_value()
7209 value = this->plt_section()->comp_entry_address(mips_sym) + 1; in do_dynsym_value()
7224 value = this->mips_stubs_section()->stub_address(mips_sym); in do_dynsym_value()
7227 if (mips_sym->has_mips16_fn_stub()) in do_dynsym_value()
7232 value = mips_sym->template in do_dynsym_value()
9050 Mips_symbol<size>* mips_sym = Mips_symbol<size>::as_mips_sym(gsym); in global() local
9055 ->new_global_reloc_found(r_type, mips_sym); in global()
9068 mips_sym->set_need_fn_stub(); in global()
9152 mips_sym->set_pointer_equality_needed(); in global()
9162 mips_sym->set_pointer_equality_needed(); in global()
9175 mips_sym->set_has_static_relocs(); in global()
9195 if (!mips_sym->no_lazy_stub()) in global()
9197 if ((mips_sym->needs_plt_entry() && mips_sym->is_from_dynobj()) in global()
9200 || (mips_sym->is_undefined() && parameters->options().shared())) in global()
9201 target->mips_stubs_section(layout)->make_entry(mips_sym); in global()
9208 mips_sym->set_no_lazy_stub(); in global()
9209 target->remove_lazy_stub_entry(mips_sym); in global()
9215 mips_sym->is_mips16())) in global()
9216 mips_sym->set_has_nonpic_branches(); in global()
9225 target->make_plt_entry(symtab, layout, mips_sym, r_type); in global()
9238 if (mips_sym->pointer_equality_needed()) in global()
9239 mips_sym->set_mips_plt(); in global()
9257 target->dynamic_reloc(mips_sym, elfcpp::R_MIPS_REL32, mips_obj, in global()
9292 got->record_global_got_symbol(mips_sym, mips_obj, r_type, false, in global()
9294 mips_sym->set_global_got_area(GGA_NORMAL); in global()
9317 bool def_regular = (mips_sym->source() == Symbol::FROM_OBJECT in global()
9318 && !mips_sym->object()->is_dynamic() in global()
9319 && !mips_sym->is_undefined()); in global()
9323 && !mips_sym->is_forced_local())) in global()
9325 got->record_global_got_symbol(mips_sym, mips_obj, r_type, false, in global()
9327 mips_sym->set_global_got_area(GGA_NORMAL); in global()
9357 got->record_global_got_symbol(mips_sym, mips_obj, r_type, false, in global()
9392 got->record_global_got_symbol(mips_sym, mips_obj, r_type, false, in global()
9607 const Mips_symbol<size>* mips_sym = Mips_symbol<size>::as_mips_sym(gsym); in relocate() local
9624 target_is_16_bit_code = mips_sym->is_mips16(); in relocate()
9625 target_is_micromips_code = mips_sym->is_micromips(); in relocate()
9631 if ((mips_sym->is_mips16() || mips_sym->is_micromips()) in relocate()
9640 if (mips_sym->use_plt_offset(Scan::get_reference_flags(r_type)) in relocate()
9641 || mips_sym->has_lazy_stub()) in relocate()
9644 if (!mips_sym->has_lazy_stub()) in relocate()
9647 if (mips_sym->has_mips_plt_offset()) in relocate()
9649 value = target->plt_section()->mips_entry_address(mips_sym); in relocate()
9655 value = (target->plt_section()->comp_entry_address(mips_sym) in relocate()
9664 value = target->mips_stubs_section()->stub_address(mips_sym); in relocate()
9706 && ((mips_sym != NULL in relocate()
9707 && mips_sym->has_mips16_fn_stub() in relocate()
9708 && (r_type != elfcpp::R_MIPS16_CALL16 || mips_sym->need_fn_stub())) in relocate()
9709 || (mips_sym == NULL in relocate()
9717 if (mips_sym == NULL) in relocate()
9721 gold_assert(mips_sym->need_fn_stub()); in relocate()
9722 if (mips_sym->has_la25_stub()) in relocate()
9723 value = target->la25_stub_section()->stub_address(mips_sym); in relocate()
9726 value = mips_sym->template in relocate()
9742 && ((mips_sym != NULL in relocate()
9743 && (mips_sym->has_mips16_call_stub() in relocate()
9744 || mips_sym->has_mips16_call_fp_stub())) in relocate()
9745 || (mips_sym == NULL in relocate()
9747 && ((mips_sym != NULL && mips_sym->has_plt_offset()) in relocate()
9751 if (mips_sym == NULL) in relocate()
9758 if (mips_sym->has_mips16_call_stub() in relocate()
9759 && mips_sym->has_mips16_call_fp_stub()) in relocate()
9766 call_stub = mips_sym->template in relocate()
9774 mips_sym->template get_mips16_call_stub<big_endian>(); in relocate()
9776 else if (mips_sym->has_mips16_call_stub()) in relocate()
9777 call_stub = mips_sym->template get_mips16_call_stub<big_endian>(); in relocate()
9779 call_stub = mips_sym->template get_mips16_call_fp_stub<big_endian>(); in relocate()
9788 else if (mips_sym != NULL in relocate()
9789 && mips_sym->has_la25_stub() in relocate()
9793 Mips_address value = target->la25_stub_section()->stub_address(mips_sym); in relocate()
9794 if (mips_sym->is_micromips()) in relocate()
9804 && mips_sym != NULL in relocate()
9805 && mips_sym->has_plt_offset() in relocate()
9806 && mips_sym->has_comp_plt_offset() in relocate()
9807 && mips_sym->has_mips_plt_offset()) in relocate()
9809 Mips_address value = (target->plt_section()->comp_entry_address(mips_sym) in relocate()
9839 bool local = (mips_sym == NULL in relocate()
9840 || (mips_sym->got_only_for_calls() in relocate()
9841 ? symbol_calls_local(mips_sym, mips_sym->has_dynsym_index()) in relocate()
9842 : symbol_references_local(mips_sym, in relocate()
9843 mips_sym->has_dynsym_index()))); in relocate()
9867 if (should_apply_r_mips_32_reloc(mips_sym, r_type, output_section, in relocate()
9871 if (mips_sym != NULL in relocate()
9872 && (mips_sym->is_mips16() || mips_sym->is_micromips()) in relocate()
9873 && mips_sym->global_got_area() == GGA_RELOC_ONLY) in relocate()
9877 if (mips_sym->has_mips16_fn_stub()) in relocate()
9879 gold_assert(mips_sym->need_fn_stub()); in relocate()
9881 mips_sym->template get_mips16_fn_stub<big_endian>(); in relocate()
9886 got_offset = mips_sym->global_gotoffset(); in relocate()
10162 if (mips_sym != NULL && mips_sym->get_applied_secondary_got_fixup()) in relocate()
10163 got->update_got_entry(got->get_primary_got_offset(mips_sym), in relocate()