Lines Matching refs:gsym
1385 gsym() const
1413 // This method is called when a new relocation R_TYPE for global symbol GSYM
1416 new_global_reloc_found(unsigned int r_type, Mips_symbol<size>* gsym)
1425 this->gsym_ = gsym;
1430 this->gsym_ = gsym;
1890 // Add a static entry for the GOT entry at OFFSET. GSYM is a global
1895 Mips_symbol<size>* gsym)
1896 { this->static_relocs_.push_back(Static_reloc(got_offset, r_type, gsym)); }
1910 // Record that global symbol GSYM has R_TYPE dynamic relocation in the
1914 Mips_symbol<size>* gsym)
1917 r_type, gsym));
1987 // GSYM. For multi-GOT links, use OBJECT's GOT.
1988 unsigned int got_offset(const Symbol* gsym, unsigned int got_type,
1992 return gsym->got_offset(got_type);
1997 return gsym->got_offset(g->multigot_got_type(got_type));
2090 Mips_symbol<size>* gsym)
2092 { this->u_.global.symbol = gsym; }
2217 Mips_symbol<size>* gsym);
2283 add_entry(Mips_symbol<size>* gsym, unsigned int r_type);
2482 remove_entry(Mips_symbol<size>* gsym);
3174 do_dynsym_value(const Symbol* gsym) const;
3303 Symbol* gsym);
3311 Symbol* gsym);
3322 Symbol* gsym);
3387 should_apply_r_mips_32_reloc(const Mips_symbol<size>* gsym,
4055 const Symbol* gsym, bool cross_mode_jump, unsigned int r_type,
4099 if (!local && !gsym->is_weak_undefined())
4104 r_type, gsym->name());
5689 Mips_symbol<size>* gsym = reloc.symbol();
5690 gold_assert(gsym != NULL);
5697 oview + this->get_primary_got_offset(gsym));
5707 gsym->set_applied_secondary_got_fixup();
5753 const Mips_symbol<size>* gsym = reloc.symbol();
5754 gold_assert(gsym != NULL);
5759 if ((gsym->is_defined_in_discarded_section() || gsym->is_undefined())
5760 && !gsym->is_weak_undefined())
5763 gsym->name());
5767 if (!gsym->is_weak_undefined())
5768 value = gsym->value();
5973 Mips_symbol<size>* gsym = stub_section->gsym();
5976 if (gsym->has_mips16_fn_stub())
5981 gsym->set_mips16_fn_stub(stub_section);
5982 if (gsym->should_add_dynsym_entry(symtab))
5987 gsym->set_need_fn_stub();
5988 if (gsym->is_from_dynobj())
5989 gsym->set_needs_dynsym_value();
5992 if (!gsym->need_fn_stub())
5997 if (gsym->is_mips16())
6002 else if (gsym->has_mips16_call_stub())
6006 gsym->set_mips16_call_stub(stub_section);
6011 if (gsym->is_mips16())
6016 else if (gsym->has_mips16_call_fp_stub())
6020 gsym->set_mips16_call_fp_stub(stub_section);
6058 Mips_symbol<size>* gsym)
6060 if (!gsym->has_la25_stub())
6062 gsym->set_la25_stub_offset(this->symbols_.size() * 16);
6063 this->symbols_.insert(gsym);
6064 this->create_stub_symbol(gsym, symtab, target, 16);
6292 Mips_output_data_plt<size, big_endian>::add_entry(Mips_symbol<size>* gsym,
6295 gold_assert(!gsym->has_plt_offset());
6298 gsym->set_plt_offset(this->entry_count() * sizeof(plt_entry)
6300 this->symbols_.push_back(gsym);
6307 gsym->set_needs_mips_plt(true);
6309 gsym->set_needs_comp_plt(true);
6319 gsym->set_needs_dynsym_entry();
6320 this->rel_->add_global(gsym, elfcpp::R_MIPS_JUMP_SLOT, this->got_plt_,
6869 Mips_symbol<size>* gsym)
6871 if (!gsym->has_lazy_stub() && !gsym->has_plt_offset())
6873 this->symbols_.insert(gsym);
6874 gsym->set_has_lazy_stub(true);
6883 Mips_symbol<size>* gsym)
6885 if (gsym->has_lazy_stub())
6887 this->symbols_.erase(gsym);
6888 gsym->set_has_lazy_stub(false);
7190 Target_mips<size, big_endian>::do_dynsym_value(const Symbol* gsym) const
7193 const Mips_symbol<size>* mips_sym = Mips_symbol<size>::as_mips_sym(gsym);
7452 Mips_symbol<size>* gsym,
7455 if (gsym->has_lazy_stub() || gsym->has_plt_offset())
7480 this->plt_->add_entry(gsym, r_type);
9028 Symbol* gsym)
9050 Mips_symbol<size>* mips_sym = Mips_symbol<size>::as_mips_sym(gsym);
9074 && strcmp(gsym->name(), "_GLOBAL_OFFSET_TABLE_") == 0)
9147 || strcmp(gsym->name(), "__gnu_local_gp") != 0)
9221 && strcmp(gsym->name(), "_gp_disp") == 0
9223 if (static_reloc && gsym->needs_plt_entry())
9231 if (gsym->is_from_dynobj() && !parameters->options().shared())
9233 gsym->set_needs_dynsym_value();
9246 if (gsym->needs_dynamic_reloc(Scan::get_reference_flags(r_type)))
9248 if (gsym->may_need_copy_reloc())
9251 data_shndx, output_section, gsym, *rel);
9262 gsym->name());
9342 const bool is_final = gsym->final_value_is_known();
9438 if (!mips_obj->is_newabi() && strcmp(gsym->name(), "_gp_disp") == 0)
9448 object->name().c_str(), r_type, gsym->name());
9466 Symbol* gsym)
9479 gsym);
9493 Symbol* gsym)
9506 gsym);
9514 const Mips_symbol<size>* gsym,
9525 if (gsym == NULL)
9531 if (gsym->needs_dynamic_reloc(Scan::get_reference_flags(r_type))
9532 && !gsym->may_need_copy_reloc())
9541 has_got_offset = gsym->has_got_offset(GOT_TYPE_STANDARD);
9543 has_got_offset = gsym->global_gotoffset() != -1U;
9550 return symbol_references_local(gsym, gsym->has_dynsym_index());
9571 const Sized_symbol<size>* gsym,
9607 const Mips_symbol<size>* mips_sym = Mips_symbol<size>::as_mips_sym(gsym);
9610 if (gsym == NULL)
9673 bool gp_disp = (gsym != NULL && (strcmp(gsym->name(), "_gp_disp") == 0)
9678 bool gnu_local_gp = gsym && (strcmp(gsym->name(), "__gnu_local_gp") == 0);
9833 && !(gsym != NULL && gsym->is_weak_undefined())
9907 gsym == NULL, r_addend, extract_addend, gsym, cross_mode_jump, r_type,
9944 gsym == NULL, r_type);
9975 if (gsym != NULL)
9976 got_offset = target->got_section()->got_offset(gsym, GOT_TYPE_STANDARD,
9990 if (gsym != NULL)
9991 got_offset = target->got_section()->got_offset(gsym, GOT_TYPE_STANDARD,
10003 if (gsym != NULL)
10004 got_offset = target->got_section()->got_offset(gsym, GOT_TYPE_STANDARD,
10016 gold_assert(gsym != NULL);
10017 got_offset = target->got_section()->got_offset(gsym, GOT_TYPE_STANDARD,
10029 if (gsym != NULL)
10031 got_offset = target->got_section()->got_offset(gsym,
10047 if (gsym != NULL)
10048 got_offset = target->got_section()->got_offset(gsym, GOT_TYPE_TLS_PAIR,
10060 if (gsym != NULL)
10061 got_offset = target->got_section()->got_offset(gsym,
10100 if (gsymgsym, gsym->has_dynsym_index()))
10198 const Sized_symbol<size>* gsym,
10213 gsym,
10229 const Sized_symbol<size>* gsym,
10244 gsym,
10362 Symbol* gsym)
10365 object->name().c_str(), r_type, gsym->demangled_name().c_str());