/toolchain/binutils/binutils-2.25/bfd/ |
D | elf32-xstormy16.c | 867 bfd_vma *plt_offset; in xstormy16_elf_relocate_section() local 870 plt_offset = &h->plt.offset; in xstormy16_elf_relocate_section() 872 plt_offset = elf_local_got_offsets (input_bfd) + r_symndx; in xstormy16_elf_relocate_section() 878 BFD_ASSERT (*plt_offset == (bfd_vma) -1); in xstormy16_elf_relocate_section() 884 BFD_ASSERT (*plt_offset != (bfd_vma) -1); in xstormy16_elf_relocate_section() 888 if ((*plt_offset & 1) == 0) in xstormy16_elf_relocate_section() 895 bfd_put_32 (input_bfd, x, splt->contents + *plt_offset); in xstormy16_elf_relocate_section() 896 *plt_offset |= 1; in xstormy16_elf_relocate_section() 901 + (*plt_offset & -2)); in xstormy16_elf_relocate_section()
|
D | elf32-m32c.c | 460 bfd_vma *plt_offset; in m32c_elf_relocate_section() local 463 plt_offset = &h->plt.offset; in m32c_elf_relocate_section() 465 plt_offset = elf_local_got_offsets (input_bfd) + r_symndx; in m32c_elf_relocate_section() 473 BFD_ASSERT (*plt_offset == (bfd_vma) -1); in m32c_elf_relocate_section() 479 BFD_ASSERT (*plt_offset != (bfd_vma) -1); in m32c_elf_relocate_section() 483 if ((*plt_offset & 1) == 0) in m32c_elf_relocate_section() 489 bfd_put_32 (input_bfd, x, splt->contents + *plt_offset); in m32c_elf_relocate_section() 490 *plt_offset |= 1; in m32c_elf_relocate_section() 495 + (*plt_offset & -2)); in m32c_elf_relocate_section() 506 (*plt_offset & -2), in m32c_elf_relocate_section()
|
D | sunos.c | 591 bfd_vma plt_offset; member 665 ret->plt_offset = 0; in sunos_link_hash_newfunc() 1333 BFD_ASSERT (h->plt_offset != 0 in sunos_scan_std_relocs() 1365 if (h->plt_offset == 0) in sunos_scan_std_relocs() 1369 h->plt_offset = splt->size; in sunos_scan_std_relocs() 1602 || h->plt_offset != 0 in sunos_scan_ext_relocs() 1641 if (h->plt_offset == 0) in sunos_scan_ext_relocs() 1645 h->plt_offset = splt->size; in sunos_scan_ext_relocs() 2102 if (h->plt_offset != 0) in sunos_write_dynamic_symbol() 2111 p = splt->contents + h->plt_offset; in sunos_write_dynamic_symbol() [all …]
|
D | elf64-x86-64.c | 3414 bfd_vma off, offplt, plt_offset; in elf_x86_64_relocate_section() local 3528 plt_offset = eh->plt_bnd.offset; in elf_x86_64_relocate_section() 3533 plt_offset = h->plt.offset; in elf_x86_64_relocate_section() 3539 plt_offset = h->plt.offset; in elf_x86_64_relocate_section() 3543 + resolved_plt->output_offset + plt_offset); in elf_x86_64_relocate_section() 3870 plt_offset = eh->plt_bnd.offset; in elf_x86_64_relocate_section() 3875 plt_offset = h->plt.offset; in elf_x86_64_relocate_section() 3880 + plt_offset); in elf_x86_64_relocate_section() 3910 plt_offset = eh->plt_bnd.offset; in elf_x86_64_relocate_section() 3915 plt_offset = h->plt.offset; in elf_x86_64_relocate_section() [all …]
|
D | elf32-rl78.c | 493 bfd_vma *plt_offset; in rl78_elf_relocate_section() local 496 plt_offset = &h->plt.offset; in rl78_elf_relocate_section() 498 plt_offset = elf_local_got_offsets (input_bfd) + r_symndx; in rl78_elf_relocate_section() 504 if ((*plt_offset & 1) == 0) in rl78_elf_relocate_section() 510 bfd_put_32 (input_bfd, x, splt->contents + *plt_offset); in rl78_elf_relocate_section() 511 *plt_offset |= 1; in rl78_elf_relocate_section() 516 + (*plt_offset & -2)); in rl78_elf_relocate_section() 527 (*plt_offset & -2), in rl78_elf_relocate_section()
|
D | elf64-alpha.c | 121 int plt_offset; member 1723 gotent->plt_offset = -1; in get_got_entry() 2574 gotent->plt_offset = splt->size; in elf64_alpha_size_plt_section_1() 4858 BFD_ASSERT (gotent->plt_offset != -1); in elf64_alpha_finish_dynamic_symbol() 4865 + gotent->plt_offset); in elf64_alpha_finish_dynamic_symbol() 4867 plt_index = (gotent->plt_offset-PLT_HEADER_SIZE) / PLT_ENTRY_SIZE; in elf64_alpha_finish_dynamic_symbol() 4872 disp = (PLT_HEADER_SIZE - 4) - (gotent->plt_offset + 4); in elf64_alpha_finish_dynamic_symbol() 4875 splt->contents + gotent->plt_offset); in elf64_alpha_finish_dynamic_symbol() 4877 plt_index = ((gotent->plt_offset - NEW_PLT_HEADER_SIZE) in elf64_alpha_finish_dynamic_symbol() 4882 disp = -(gotent->plt_offset + 4); in elf64_alpha_finish_dynamic_symbol() [all …]
|
D | elf64-hppa.c | 58 bfd_vma plt_offset; member 1004 hh->plt_offset = x->ofs; in allocate_global_data_plt() 1006 if (hh->plt_offset < 0x2000) in allocate_global_data_plt() 1014 hppa_info->gp_offset = hh->plt_offset; in allocate_global_data_plt() 2016 bfd_put_64 (splt->owner, value, splt->contents + hh->plt_offset); in elf64_hppa_finish_dynamic_symbol() 2018 bfd_put_64 (splt->owner, value, splt->contents + hh->plt_offset + 0x8); in elf64_hppa_finish_dynamic_symbol() 2026 rel.r_offset = (hh->plt_offset + splt->output_offset in elf64_hppa_finish_dynamic_symbol() 2063 value = hh->plt_offset - hppa_info->gp_offset; in elf64_hppa_finish_dynamic_symbol() 3527 value = (hh->plt_offset in elf_hppa_final_link_relocate()
|
D | elfxx-sparc.c | 4217 bfd_vma plt_offset, bfd_vma plt_index, in sparc_vxworks_build_plt_entry() argument 4244 htab->elf.splt->contents + plt_offset); in sparc_vxworks_build_plt_entry() 4246 htab->elf.splt->contents + plt_offset + 4); in sparc_vxworks_build_plt_entry() 4248 htab->elf.splt->contents + plt_offset + 8); in sparc_vxworks_build_plt_entry() 4250 htab->elf.splt->contents + plt_offset + 12); in sparc_vxworks_build_plt_entry() 4252 htab->elf.splt->contents + plt_offset + 16); in sparc_vxworks_build_plt_entry() 4254 htab->elf.splt->contents + plt_offset + 20); in sparc_vxworks_build_plt_entry() 4257 bfd_put_32 (output_bfd, plt_entry[6] + (((-plt_offset - 24) >> 2) in sparc_vxworks_build_plt_entry() 4259 htab->elf.splt->contents + plt_offset + 24); in sparc_vxworks_build_plt_entry() 4261 htab->elf.splt->contents + plt_offset + 28); in sparc_vxworks_build_plt_entry() [all …]
|
D | elfxx-mips.c | 10552 bfd_vma plt_offset; in _bfd_mips_elf_finish_dynamic_symbol() local 10554 plt_offset = htab->plt_header_size + h->plt.plist->mips_offset; in _bfd_mips_elf_finish_dynamic_symbol() 10556 BFD_ASSERT (plt_offset <= htab->splt->size); in _bfd_mips_elf_finish_dynamic_symbol() 10559 loc = htab->splt->contents + plt_offset; in _bfd_mips_elf_finish_dynamic_symbol() 10593 bfd_vma plt_offset; in _bfd_mips_elf_finish_dynamic_symbol() local 10595 plt_offset = (htab->plt_header_size + htab->plt_mips_offset in _bfd_mips_elf_finish_dynamic_symbol() 10598 BFD_ASSERT (plt_offset <= htab->splt->size); in _bfd_mips_elf_finish_dynamic_symbol() 10601 loc = htab->splt->contents + plt_offset; in _bfd_mips_elf_finish_dynamic_symbol() 10638 + htab->splt->output_offset + plt_offset); in _bfd_mips_elf_finish_dynamic_symbol() 11007 bfd_vma plt_offset; in _bfd_mips_vxworks_finish_dynamic_symbol() local [all …]
|
D | elf64-s390.c | 3314 bfd_vma plt_offset, in elf_s390_finish_ifunc_symbol() argument 3329 plt_index = plt_offset / PLT_ENTRY_SIZE; in elf_s390_finish_ifunc_symbol() 3337 memcpy (plt->contents + plt_offset, elf_s390x_plt_entry, in elf_s390_finish_ifunc_symbol() 3346 plt_offset))/2, in elf_s390_finish_ifunc_symbol() 3347 plt->contents + plt_offset + 2); in elf_s390_finish_ifunc_symbol() 3351 plt->contents + plt_offset + 24); in elf_s390_finish_ifunc_symbol() 3355 plt->contents + plt_offset + 28); in elf_s390_finish_ifunc_symbol() 3362 + plt_offset in elf_s390_finish_ifunc_symbol()
|
D | elf32-arm.c | 8216 bfd_vma plt_offset; in elf32_arm_final_link_relocate() local 8298 plt_offset = root_plt->offset; in elf32_arm_final_link_relocate() 8309 if (plt_offset & 1) in elf32_arm_final_link_relocate() 8310 plt_offset--; in elf32_arm_final_link_relocate() 8324 + plt_offset); in elf32_arm_final_link_relocate() 8342 plt_offset = (bfd_vma) -1; in elf32_arm_final_link_relocate() 8378 && plt_offset != (bfd_vma) -1) in elf32_arm_final_link_relocate() 8388 + plt_offset); in elf32_arm_final_link_relocate() 8592 if (plt_offset != (bfd_vma) -1) in elf32_arm_final_link_relocate() 8600 if (plt_offset != (bfd_vma) -1) in elf32_arm_final_link_relocate() [all …]
|
D | elf32-i386.c | 4989 bfd_vma plt_offset; in elf_i386_plt_sym_val() local 4998 plt_offset = bed->plt->plt_entry_size; in elf_i386_plt_sym_val() 5001 return plt->vma + (i + 1) * plt_offset; in elf_i386_plt_sym_val() 5003 while (plt_offset < plt->size) in elf_i386_plt_sym_val() 5010 plt_offset + bed->plt->plt_reloc_offset, in elf_i386_plt_sym_val() 5016 return plt->vma + plt_offset; in elf_i386_plt_sym_val() 5017 plt_offset += bed->plt->plt_entry_size; in elf_i386_plt_sym_val()
|
D | elfnn-ia64.c | 58 bfd_vma plt_offset; member 2768 dyn_i->plt_offset = offset; in allocate_plt_entries() 4538 plt_index = (dyn_i->plt_offset - PLT_HEADER_SIZE) / PLT_MIN_ENTRY_SIZE; in elfNN_ia64_finish_dynamic_symbol() 4540 loc = plt_sec->contents + dyn_i->plt_offset; in elfNN_ia64_finish_dynamic_symbol() 4544 ia64_elf_install_value (loc+2, -dyn_i->plt_offset, R_IA64_PCREL21B); in elfNN_ia64_finish_dynamic_symbol() 4548 + dyn_i->plt_offset); in elfNN_ia64_finish_dynamic_symbol()
|
D | elf32-ppc.c | 5742 bfd_vma plt_offset = 0, glink_offset = 0; in allocate_dynrelocs() local 5771 plt_offset = s->size; in allocate_dynrelocs() 5774 ent->plt.offset = plt_offset; in allocate_dynrelocs() 5812 plt_offset = (htab->plt_initial_entry_size in allocate_dynrelocs() 5830 h->root.u.def.value = plt_offset; in allocate_dynrelocs() 5843 ent->plt.offset = plt_offset; in allocate_dynrelocs() 6253 bfd_vma plt_offset = 0, glink_offset = 0; in ppc_elf_size_dynamic_sections() local 6262 plt_offset = s->size; in ppc_elf_size_dynamic_sections() 6265 ent->plt.offset = plt_offset; in ppc_elf_size_dynamic_sections()
|
D | ChangeLog-9495 | 1531 (sunos_write_dynamic_symbol): Use plt_offset for the address of 1862 a symbol with a non-zero plt_offset. 2232 (struct sunos_link_hash_entry): Add got_offset and plt_offset 2246 plt_offset field; only put symbol in .plt if it is not defined by 2250 (sunos_write_dynamic_symbol): Check plt_offset rather than 2255 If plt_offset is set, redirect relocation to PLT. If this is a 5781 Add got_offset and plt_offset fields. 5812 copy_offset. Initialize got_offset and plt_offset. 5830 symbol already has one. When making a PLT entry, set plt_offset. 5842 (elf_i386_finish_dynamic_symbol): Create a PLT entry if plt_offset [all …]
|
/toolchain/binutils/binutils-2.25/gold/ |
D | x86_64.cc | 233 unsigned int plt_offset, in fill_plt_entry() argument 237 got_offset, plt_offset, plt_index); in fill_plt_entry() 247 unsigned int plt_offset) in fill_tlsdesc_entry() argument 250 tlsdesc_got_offset, plt_offset); in fill_tlsdesc_entry() 267 unsigned int plt_offset, 276 unsigned int plt_offset) = 0; 375 unsigned int plt_offset, 384 unsigned int plt_offset); 1250 off_t plt_offset; in add_entry() local 1278 plt_offset = plt_index * this->get_plt_entry_size(); in add_entry() [all …]
|
D | i386.cc | 163 unsigned int plt_offset, in fill_plt_entry() argument 167 plt_offset, plt_rel_offset); in fill_plt_entry() 181 unsigned int plt_offset, 307 unsigned int plt_offset, 337 unsigned int plt_offset, 1126 unsigned int plt_offset = this->irelative_count_ * this->get_plt_entry_size(); in add_local_ifunc_entry() local 1147 return plt_offset; in add_local_ifunc_entry() 1216 return this->address() + offset + gsym->plt_offset(); in address_for_global() 1286 unsigned int plt_offset, in do_fill_plt_entry() argument 1293 elfcpp::Swap<32, false>::writeval(pov + 12, - (plt_offset + 12 + 4)); in do_fill_plt_entry() [all …]
|
D | sparc.cc | 1477 section_offset_type plt_offset; in add_entry() local 1484 plt_offset = plt_index_to_offset(index); in add_entry() 1485 gsym->set_plt_offset(plt_offset); in add_entry() 1497 plt_offset = plt_index_to_offset(this->count_ + 4); in add_entry() 1498 gsym->set_plt_offset(plt_offset); in add_entry() 1502 plt_offset, 0); in add_entry() 1519 section_offset_type plt_offset; in add_local_ifunc_entry() local 1521 plt_offset = plt_index_to_offset(index); in add_local_ifunc_entry() 1533 return plt_offset; in add_local_ifunc_entry() 1548 section_offset_type plt_offset; in emit_pending_ifunc_relocs() local [all …]
|
D | tilegx.cc | 2002 off_t plt_offset; in add_entry() local 2052 plt_offset = plt_index * this->get_plt_entry_size(); in add_entry() 2054 plt_offset = (plt_index + 1) * this->get_plt_entry_size(); in add_entry() 2071 plt_offset = this->free_list_.allocate(this->get_plt_entry_size(), in add_entry() 2073 if (plt_offset == -1) in add_entry() 2080 plt_index = plt_offset / this->get_plt_entry_size() - 1; in add_entry() 2084 gsym->set_plt_offset(plt_offset); in add_entry() 2105 unsigned int plt_offset = in add_local_ifunc_entry() local 2121 return plt_offset; in add_local_ifunc_entry() 2199 return this->address() + offset + gsym->plt_offset(); in address_for_global() [all …]
|
D | aarch64.cc | 3728 + gsym->plt_offset()); in scan_reloc_for_stub() 4189 unsigned int plt_offset) in fill_plt_entry() argument 4192 got_offset, plt_offset); in fill_plt_entry() 4202 unsigned int plt_offset) in fill_tlsdesc_entry() argument 4205 tlsdesc_got_offset, plt_offset); in fill_tlsdesc_entry() 4227 unsigned int plt_offset) = 0; 4235 unsigned int plt_offset) = 0; 4365 unsigned int plt_offset = this->irelative_count_ * this->get_plt_entry_size(); in add_local_ifunc_entry() local 4380 return plt_offset; in add_local_ifunc_entry() 4478 return this->address() + offset + gsym->plt_offset(); in address_for_global() [all …]
|
D | symtab.h | 445 plt_offset() const in plt_offset() function 453 set_plt_offset(unsigned int plt_offset) in set_plt_offset() argument 455 gold_assert(plt_offset != -1U); in set_plt_offset() 456 this->plt_offset_ = plt_offset; in set_plt_offset()
|
D | arm.cc | 7469 unsigned int plt_offset) in fill_plt_entry() argument 7470 { do_fill_plt_entry(pov, got_address, plt_address, got_offset, plt_offset); } in fill_plt_entry() 7488 unsigned int plt_offset) = 0; 7648 unsigned int plt_offset = this->irelative_count_ * this->get_plt_entry_size(); in add_local_ifunc_entry() local 7663 return plt_offset; in add_local_ifunc_entry() 7743 return this->address() + begin_offset + gsym->plt_offset(); in address_for_global() 7795 unsigned int plt_offset); 7855 unsigned int plt_offset) in do_fill_plt_entry() argument 7858 - (plt_address + plt_offset + 8)); in do_fill_plt_entry() 7904 unsigned int plt_offset = this->first_plt_entry_offset(); in do_write() local [all …]
|
D | object.cc | 2080 unsigned int symndx, unsigned int plt_offset) in set_local_plt_offset() argument 2083 this->local_plt_offsets_.insert(std::make_pair(symndx, plt_offset)); in set_local_plt_offset()
|
D | object.h | 2173 set_local_plt_offset(unsigned int symndx, unsigned int plt_offset);
|
D | incremental.cc | 1922 ((sym->plt_offset() - this->info_.first_plt_entry_offset) in operator ()()
|