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()
1913 struct alpha_elf_got_entry *gotent; in elf64_alpha_check_relocs() local
1915 gotent = get_got_entry (abfd, h, r_type, r_symndx, addend); in elf64_alpha_check_relocs()
1916 if (!gotent) in elf64_alpha_check_relocs()
1921 gotent->flags |= gotent_flags; in elf64_alpha_check_relocs()
2040 struct alpha_elf_got_entry *gotent; in elf64_alpha_gc_sweep_hook() local
2062 gotent = get_got_entry (abfd, h, r_type, r_symndx, rel->r_addend); in elf64_alpha_gc_sweep_hook()
2069 if (gotent == NULL || gotent->use_count < 2) in elf64_alpha_gc_sweep_hook()
2074 gotent->use_count -= 2; in elf64_alpha_gc_sweep_hook()
2402 struct alpha_elf_got_entry *gotent; in elf64_alpha_calc_got_offsets_for_symbol() local
2404 for (gotent = h->got_entries; gotent; gotent = gotent->next) in elf64_alpha_calc_got_offsets_for_symbol()
2405 if (gotent->use_count > 0) in elf64_alpha_calc_got_offsets_for_symbol()
2410 td = alpha_elf_tdata (gotent->gotobj); in elf64_alpha_calc_got_offsets_for_symbol()
2412 gotent->got_offset = *plge; in elf64_alpha_calc_got_offsets_for_symbol()
2413 *plge += alpha_got_entry_size (gotent->reloc_type); in elf64_alpha_calc_got_offsets_for_symbol()
2448 struct alpha_elf_got_entry **local_got_entries, *gotent; in elf64_alpha_calc_got_offsets() local
2456 for (gotent = local_got_entries[k]; gotent; gotent = gotent->next) in elf64_alpha_calc_got_offsets()
2457 if (gotent->use_count > 0) in elf64_alpha_calc_got_offsets()
2459 gotent->got_offset = got_offset; in elf64_alpha_calc_got_offsets()
2460 got_offset += alpha_got_entry_size (gotent->reloc_type); in elf64_alpha_calc_got_offsets()
2560 struct alpha_elf_got_entry *gotent; in elf64_alpha_size_plt_section_1() local
2568 for (gotent = h->got_entries; gotent ; gotent = gotent->next) in elf64_alpha_size_plt_section_1()
2569 if (gotent->reloc_type == R_ALPHA_LITERAL in elf64_alpha_size_plt_section_1()
2570 && gotent->use_count > 0) in elf64_alpha_size_plt_section_1()
2574 gotent->plt_offset = splt->size; in elf64_alpha_size_plt_section_1()
2759 struct alpha_elf_got_entry *gotent; in elf64_alpha_size_rela_got_1() local
2779 for (gotent = h->got_entries; gotent ; gotent = gotent->next) in elf64_alpha_size_rela_got_1()
2780 if (gotent->use_count > 0) in elf64_alpha_size_rela_got_1()
2781 entries += alpha_dynamic_entries_for_reloc (gotent->reloc_type, dynamic, in elf64_alpha_size_rela_got_1()
2820 struct alpha_elf_got_entry **local_got_entries, *gotent; in elf64_alpha_size_rela_got_section() local
2828 for (gotent = local_got_entries[k]; in elf64_alpha_size_rela_got_section()
2829 gotent ; gotent = gotent->next) in elf64_alpha_size_rela_got_section()
2830 if (gotent->use_count > 0) in elf64_alpha_size_rela_got_section()
2832 (gotent->reloc_type, 0, info->shared, info->pie)); in elf64_alpha_size_rela_got_section()
3018 struct alpha_elf_got_entry *gotent; member
3125 if (--info->gotent->use_count == 0) in elf64_alpha_relax_got_load()
3487 if (--info->gotent->use_count == 0) in elf64_alpha_relax_with_lituse()
3714 if (--info->gotent->use_count == 0) in elf64_alpha_relax_tls_get_addr()
3716 int sz = alpha_got_entry_size (info->gotent->reloc_type); in elf64_alpha_relax_tls_get_addr()
3738 if (info->gotent->use_count == 0) in elf64_alpha_relax_tls_get_addr()
3739 tprel_gotent = info->gotent; in elf64_alpha_relax_tls_get_addr()
3854 struct alpha_elf_got_entry *gotent; in elf64_alpha_relax_section() local
3922 info.first_gotent = &info.gotent; in elf64_alpha_relax_section()
3923 info.gotent = NULL; in elf64_alpha_relax_section()
3971 for (gotent = *info.first_gotent; gotent ; gotent = gotent->next) in elf64_alpha_relax_section()
3972 if (gotent->gotobj == info.gotobj in elf64_alpha_relax_section()
3973 && gotent->reloc_type == r_type in elf64_alpha_relax_section()
3974 && gotent->addend == irel->r_addend) in elf64_alpha_relax_section()
3976 info.gotent = gotent; in elf64_alpha_relax_section()
3984 BFD_ASSERT(info.gotent != NULL); in elf64_alpha_relax_section()
4004 BFD_ASSERT(info.gotent != NULL); in elf64_alpha_relax_section()
4011 BFD_ASSERT(info.gotent != NULL); in elf64_alpha_relax_section()
4265 struct alpha_elf_got_entry *gotent; in elf64_alpha_relocate_section() local
4318 gotent = local_got_entries[r_symndx]; in elf64_alpha_relocate_section()
4320 gotent = NULL; in elf64_alpha_relocate_section()
4327 && gotent in elf64_alpha_relocate_section()
4328 && !gotent->reloc_xlated) in elf64_alpha_relocate_section()
4332 for (ent = gotent; ent; ent = ent->next) in elf64_alpha_relocate_section()
4374 gotent = h->got_entries; in elf64_alpha_relocate_section()
4385 for (; gotent ; gotent = gotent->next) in elf64_alpha_relocate_section()
4386 if (gotent->gotobj == gotobj in elf64_alpha_relocate_section()
4387 && gotent->reloc_type == r_type in elf64_alpha_relocate_section()
4388 && gotent->addend == addend) in elf64_alpha_relocate_section()
4414 BFD_ASSERT(gotent != NULL); in elf64_alpha_relocate_section()
4415 BFD_ASSERT(gotent->use_count >= 1); in elf64_alpha_relocate_section()
4417 if (!gotent->reloc_done) in elf64_alpha_relocate_section()
4419 gotent->reloc_done = 1; in elf64_alpha_relocate_section()
4422 sgot->contents + gotent->got_offset); in elf64_alpha_relocate_section()
4429 gotent->got_offset, 0, in elf64_alpha_relocate_section()
4435 + gotent->got_offset); in elf64_alpha_relocate_section()
4655 if (!gotent->reloc_done) in elf64_alpha_relocate_section()
4657 gotent->reloc_done = 1; in elf64_alpha_relocate_section()
4661 sgot->contents + gotent->got_offset); in elf64_alpha_relocate_section()
4668 gotent->got_offset, 0, in elf64_alpha_relocate_section()
4679 sgot->contents + gotent->got_offset + 8); in elf64_alpha_relocate_section()
4684 + gotent->got_offset); in elf64_alpha_relocate_section()
4731 BFD_ASSERT(gotent != NULL); in elf64_alpha_relocate_section()
4732 BFD_ASSERT(gotent->use_count >= 1); in elf64_alpha_relocate_section()
4734 if (!gotent->reloc_done) in elf64_alpha_relocate_section()
4736 gotent->reloc_done = 1; in elf64_alpha_relocate_section()
4750 gotent->got_offset, 0, in elf64_alpha_relocate_section()
4757 sgot->contents + gotent->got_offset); in elf64_alpha_relocate_section()
4762 + gotent->got_offset); in elf64_alpha_relocate_section()
4838 struct alpha_elf_got_entry *gotent; in elf64_alpha_finish_dynamic_symbol() local
4847 for (gotent = ah->got_entries; gotent ; gotent = gotent->next) in elf64_alpha_finish_dynamic_symbol()
4848 if (gotent->reloc_type == R_ALPHA_LITERAL in elf64_alpha_finish_dynamic_symbol()
4849 && gotent->use_count > 0) in elf64_alpha_finish_dynamic_symbol()
4854 sgot = alpha_elf_tdata (gotent->gotobj)->got; in elf64_alpha_finish_dynamic_symbol()
4857 BFD_ASSERT (gotent->got_offset != -1); in elf64_alpha_finish_dynamic_symbol()
4858 BFD_ASSERT (gotent->plt_offset != -1); in elf64_alpha_finish_dynamic_symbol()
4862 + gotent->got_offset); 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()
4885 splt->contents + gotent->plt_offset); in elf64_alpha_finish_dynamic_symbol()
4887 splt->contents + gotent->plt_offset + 4); in elf64_alpha_finish_dynamic_symbol()
4889 splt->contents + gotent->plt_offset + 8); in elf64_alpha_finish_dynamic_symbol()
4891 plt_index = ((gotent->plt_offset - OLD_PLT_HEADER_SIZE) in elf64_alpha_finish_dynamic_symbol()
4905 sgot->contents + gotent->got_offset); in elf64_alpha_finish_dynamic_symbol()
4912 struct alpha_elf_got_entry *gotent; in elf64_alpha_finish_dynamic_symbol() local
4917 for (gotent = ((struct alpha_elf_link_hash_entry *) h)->got_entries; in elf64_alpha_finish_dynamic_symbol()
4918 gotent != NULL; in elf64_alpha_finish_dynamic_symbol()
4919 gotent = gotent->next) in elf64_alpha_finish_dynamic_symbol()
4924 if (gotent->use_count == 0) in elf64_alpha_finish_dynamic_symbol()
4927 sgot = alpha_elf_tdata (gotent->gotobj)->got; in elf64_alpha_finish_dynamic_symbol()
4929 r_type = gotent->reloc_type; in elf64_alpha_finish_dynamic_symbol()
4950 gotent->got_offset, h->dynindx, in elf64_alpha_finish_dynamic_symbol()
4951 r_type, gotent->addend); in elf64_alpha_finish_dynamic_symbol()
4953 if (gotent->reloc_type == R_ALPHA_TLSGD) in elf64_alpha_finish_dynamic_symbol()
4955 gotent->got_offset + 8, h->dynindx, in elf64_alpha_finish_dynamic_symbol()
4956 R_ALPHA_DTPREL64, gotent->addend); in elf64_alpha_finish_dynamic_symbol()