Lines Matching refs:gotent

1672   struct alpha_elf_got_entry *gotent;  in get_got_entry()  local
1704 for (gotent = *slot; gotent ; gotent = gotent->next) in get_got_entry()
1705 if (gotent->gotobj == abfd in get_got_entry()
1706 && gotent->reloc_type == r_type in get_got_entry()
1707 && gotent->addend == r_addend) in get_got_entry()
1710 if (!gotent) in get_got_entry()
1716 gotent = (struct alpha_elf_got_entry *) bfd_alloc (abfd, amt); in get_got_entry()
1717 if (!gotent) in get_got_entry()
1720 gotent->gotobj = abfd; in get_got_entry()
1721 gotent->addend = r_addend; in get_got_entry()
1722 gotent->got_offset = -1; in get_got_entry()
1723 gotent->plt_offset = -1; in get_got_entry()
1724 gotent->use_count = 1; in get_got_entry()
1725 gotent->reloc_type = r_type; in get_got_entry()
1726 gotent->reloc_done = 0; in get_got_entry()
1727 gotent->reloc_xlated = 0; in get_got_entry()
1729 gotent->next = *slot; in get_got_entry()
1730 *slot = gotent; in get_got_entry()
1738 gotent->use_count += 1; in get_got_entry()
1740 return gotent; in get_got_entry()
1910 struct alpha_elf_got_entry *gotent; in elf64_alpha_check_relocs() local
1912 gotent = get_got_entry (abfd, h, r_type, r_symndx, addend); in elf64_alpha_check_relocs()
1913 if (!gotent) in elf64_alpha_check_relocs()
1918 gotent->flags |= gotent_flags; in elf64_alpha_check_relocs()
2037 struct alpha_elf_got_entry *gotent; in elf64_alpha_gc_sweep_hook() local
2059 gotent = get_got_entry (abfd, h, r_type, r_symndx, rel->r_addend); in elf64_alpha_gc_sweep_hook()
2066 if (gotent == NULL || gotent->use_count < 2) in elf64_alpha_gc_sweep_hook()
2071 gotent->use_count -= 2; in elf64_alpha_gc_sweep_hook()
2399 struct alpha_elf_got_entry *gotent; in elf64_alpha_calc_got_offsets_for_symbol() local
2401 for (gotent = h->got_entries; gotent; gotent = gotent->next) in elf64_alpha_calc_got_offsets_for_symbol()
2402 if (gotent->use_count > 0) in elf64_alpha_calc_got_offsets_for_symbol()
2407 td = alpha_elf_tdata (gotent->gotobj); in elf64_alpha_calc_got_offsets_for_symbol()
2409 gotent->got_offset = *plge; in elf64_alpha_calc_got_offsets_for_symbol()
2410 *plge += alpha_got_entry_size (gotent->reloc_type); in elf64_alpha_calc_got_offsets_for_symbol()
2445 struct alpha_elf_got_entry **local_got_entries, *gotent; in elf64_alpha_calc_got_offsets() local
2453 for (gotent = local_got_entries[k]; gotent; gotent = gotent->next) in elf64_alpha_calc_got_offsets()
2454 if (gotent->use_count > 0) in elf64_alpha_calc_got_offsets()
2456 gotent->got_offset = got_offset; in elf64_alpha_calc_got_offsets()
2457 got_offset += alpha_got_entry_size (gotent->reloc_type); in elf64_alpha_calc_got_offsets()
2553 struct alpha_elf_got_entry *gotent; in elf64_alpha_size_plt_section_1() local
2561 for (gotent = h->got_entries; gotent ; gotent = gotent->next) in elf64_alpha_size_plt_section_1()
2562 if (gotent->reloc_type == R_ALPHA_LITERAL in elf64_alpha_size_plt_section_1()
2563 && gotent->use_count > 0) in elf64_alpha_size_plt_section_1()
2567 gotent->plt_offset = splt->size; in elf64_alpha_size_plt_section_1()
2752 struct alpha_elf_got_entry *gotent; in elf64_alpha_size_rela_got_1() local
2772 for (gotent = h->got_entries; gotent ; gotent = gotent->next) in elf64_alpha_size_rela_got_1()
2773 if (gotent->use_count > 0) in elf64_alpha_size_rela_got_1()
2774 entries += alpha_dynamic_entries_for_reloc (gotent->reloc_type, dynamic, in elf64_alpha_size_rela_got_1()
2813 struct alpha_elf_got_entry **local_got_entries, *gotent; in elf64_alpha_size_rela_got_section() local
2821 for (gotent = local_got_entries[k]; in elf64_alpha_size_rela_got_section()
2822 gotent ; gotent = gotent->next) in elf64_alpha_size_rela_got_section()
2823 if (gotent->use_count > 0) in elf64_alpha_size_rela_got_section()
2825 (gotent->reloc_type, 0, info->shared, info->pie)); in elf64_alpha_size_rela_got_section()
3011 struct alpha_elf_got_entry *gotent; member
3114 if (--info->gotent->use_count == 0) in elf64_alpha_relax_got_load()
3439 if (--info->gotent->use_count == 0) in elf64_alpha_relax_with_lituse()
3662 if (--info->gotent->use_count == 0) in elf64_alpha_relax_tls_get_addr()
3664 int sz = alpha_got_entry_size (info->gotent->reloc_type); in elf64_alpha_relax_tls_get_addr()
3686 if (info->gotent->use_count == 0) in elf64_alpha_relax_tls_get_addr()
3687 tprel_gotent = info->gotent; in elf64_alpha_relax_tls_get_addr()
3797 struct alpha_elf_got_entry *gotent; in elf64_alpha_relax_section() local
3868 info.first_gotent = &info.gotent; in elf64_alpha_relax_section()
3869 info.gotent = NULL; in elf64_alpha_relax_section()
3917 for (gotent = *info.first_gotent; gotent ; gotent = gotent->next) in elf64_alpha_relax_section()
3918 if (gotent->gotobj == info.gotobj in elf64_alpha_relax_section()
3919 && gotent->reloc_type == r_type in elf64_alpha_relax_section()
3920 && gotent->addend == irel->r_addend) in elf64_alpha_relax_section()
3922 info.gotent = gotent; in elf64_alpha_relax_section()
3930 BFD_ASSERT(info.gotent != NULL); in elf64_alpha_relax_section()
3950 BFD_ASSERT(info.gotent != NULL); in elf64_alpha_relax_section()
3957 BFD_ASSERT(info.gotent != NULL); in elf64_alpha_relax_section()
4211 struct alpha_elf_got_entry *gotent; in elf64_alpha_relocate_section() local
4264 gotent = local_got_entries[r_symndx]; in elf64_alpha_relocate_section()
4266 gotent = NULL; in elf64_alpha_relocate_section()
4273 && gotent in elf64_alpha_relocate_section()
4274 && !gotent->reloc_xlated) in elf64_alpha_relocate_section()
4278 for (ent = gotent; ent; ent = ent->next) in elf64_alpha_relocate_section()
4320 gotent = h->got_entries; in elf64_alpha_relocate_section()
4331 for (; gotent ; gotent = gotent->next) in elf64_alpha_relocate_section()
4332 if (gotent->gotobj == gotobj in elf64_alpha_relocate_section()
4333 && gotent->reloc_type == r_type in elf64_alpha_relocate_section()
4334 && gotent->addend == addend) in elf64_alpha_relocate_section()
4360 BFD_ASSERT(gotent != NULL); in elf64_alpha_relocate_section()
4361 BFD_ASSERT(gotent->use_count >= 1); in elf64_alpha_relocate_section()
4363 if (!gotent->reloc_done) in elf64_alpha_relocate_section()
4365 gotent->reloc_done = 1; in elf64_alpha_relocate_section()
4368 sgot->contents + gotent->got_offset); in elf64_alpha_relocate_section()
4375 gotent->got_offset, 0, in elf64_alpha_relocate_section()
4381 + gotent->got_offset); in elf64_alpha_relocate_section()
4601 if (!gotent->reloc_done) in elf64_alpha_relocate_section()
4603 gotent->reloc_done = 1; in elf64_alpha_relocate_section()
4607 sgot->contents + gotent->got_offset); in elf64_alpha_relocate_section()
4614 gotent->got_offset, 0, in elf64_alpha_relocate_section()
4625 sgot->contents + gotent->got_offset + 8); in elf64_alpha_relocate_section()
4630 + gotent->got_offset); in elf64_alpha_relocate_section()
4677 BFD_ASSERT(gotent != NULL); in elf64_alpha_relocate_section()
4678 BFD_ASSERT(gotent->use_count >= 1); in elf64_alpha_relocate_section()
4680 if (!gotent->reloc_done) in elf64_alpha_relocate_section()
4682 gotent->reloc_done = 1; in elf64_alpha_relocate_section()
4696 gotent->got_offset, 0, in elf64_alpha_relocate_section()
4703 sgot->contents + gotent->got_offset); in elf64_alpha_relocate_section()
4708 + gotent->got_offset); in elf64_alpha_relocate_section()
4784 struct alpha_elf_got_entry *gotent; in elf64_alpha_finish_dynamic_symbol() local
4793 for (gotent = ah->got_entries; gotent ; gotent = gotent->next) in elf64_alpha_finish_dynamic_symbol()
4794 if (gotent->reloc_type == R_ALPHA_LITERAL in elf64_alpha_finish_dynamic_symbol()
4795 && gotent->use_count > 0) in elf64_alpha_finish_dynamic_symbol()
4800 sgot = alpha_elf_tdata (gotent->gotobj)->got; in elf64_alpha_finish_dynamic_symbol()
4803 BFD_ASSERT (gotent->got_offset != -1); in elf64_alpha_finish_dynamic_symbol()
4804 BFD_ASSERT (gotent->plt_offset != -1); in elf64_alpha_finish_dynamic_symbol()
4808 + gotent->got_offset); in elf64_alpha_finish_dynamic_symbol()
4811 + gotent->plt_offset); in elf64_alpha_finish_dynamic_symbol()
4813 plt_index = (gotent->plt_offset-PLT_HEADER_SIZE) / PLT_ENTRY_SIZE; in elf64_alpha_finish_dynamic_symbol()
4818 disp = (PLT_HEADER_SIZE - 4) - (gotent->plt_offset + 4); in elf64_alpha_finish_dynamic_symbol()
4821 splt->contents + gotent->plt_offset); in elf64_alpha_finish_dynamic_symbol()
4823 plt_index = ((gotent->plt_offset - NEW_PLT_HEADER_SIZE) in elf64_alpha_finish_dynamic_symbol()
4828 disp = -(gotent->plt_offset + 4); in elf64_alpha_finish_dynamic_symbol()
4831 splt->contents + gotent->plt_offset); in elf64_alpha_finish_dynamic_symbol()
4833 splt->contents + gotent->plt_offset + 4); in elf64_alpha_finish_dynamic_symbol()
4835 splt->contents + gotent->plt_offset + 8); in elf64_alpha_finish_dynamic_symbol()
4837 plt_index = ((gotent->plt_offset - OLD_PLT_HEADER_SIZE) in elf64_alpha_finish_dynamic_symbol()
4851 sgot->contents + gotent->got_offset); in elf64_alpha_finish_dynamic_symbol()
4858 struct alpha_elf_got_entry *gotent; in elf64_alpha_finish_dynamic_symbol() local
4863 for (gotent = ((struct alpha_elf_link_hash_entry *) h)->got_entries; in elf64_alpha_finish_dynamic_symbol()
4864 gotent != NULL; in elf64_alpha_finish_dynamic_symbol()
4865 gotent = gotent->next) in elf64_alpha_finish_dynamic_symbol()
4870 if (gotent->use_count == 0) in elf64_alpha_finish_dynamic_symbol()
4873 sgot = alpha_elf_tdata (gotent->gotobj)->got; in elf64_alpha_finish_dynamic_symbol()
4875 r_type = gotent->reloc_type; in elf64_alpha_finish_dynamic_symbol()
4896 gotent->got_offset, h->dynindx, in elf64_alpha_finish_dynamic_symbol()
4897 r_type, gotent->addend); in elf64_alpha_finish_dynamic_symbol()
4899 if (gotent->reloc_type == R_ALPHA_TLSGD) in elf64_alpha_finish_dynamic_symbol()
4901 gotent->got_offset + 8, h->dynindx, in elf64_alpha_finish_dynamic_symbol()
4902 R_ALPHA_DTPREL64, gotent->addend); in elf64_alpha_finish_dynamic_symbol()