Lines Matching refs:gotent
1679 struct alpha_elf_got_entry *gotent; in get_got_entry() local
1711 for (gotent = *slot; gotent ; gotent = gotent->next) in get_got_entry()
1712 if (gotent->gotobj == abfd in get_got_entry()
1713 && gotent->reloc_type == r_type in get_got_entry()
1714 && gotent->addend == r_addend) in get_got_entry()
1717 if (!gotent) in get_got_entry()
1723 gotent = (struct alpha_elf_got_entry *) bfd_alloc (abfd, amt); in get_got_entry()
1724 if (!gotent) in get_got_entry()
1727 gotent->gotobj = abfd; in get_got_entry()
1728 gotent->addend = r_addend; in get_got_entry()
1729 gotent->got_offset = -1; in get_got_entry()
1730 gotent->plt_offset = -1; in get_got_entry()
1731 gotent->use_count = 1; in get_got_entry()
1732 gotent->reloc_type = r_type; in get_got_entry()
1733 gotent->reloc_done = 0; in get_got_entry()
1734 gotent->reloc_xlated = 0; in get_got_entry()
1736 gotent->next = *slot; in get_got_entry()
1737 *slot = gotent; in get_got_entry()
1745 gotent->use_count += 1; in get_got_entry()
1747 return gotent; in get_got_entry()
1932 struct alpha_elf_got_entry *gotent; in elf64_alpha_check_relocs() local
1934 gotent = get_got_entry (abfd, h, r_type, r_symndx, addend); in elf64_alpha_check_relocs()
1935 if (!gotent) in elf64_alpha_check_relocs()
1940 gotent->flags |= gotent_flags; in elf64_alpha_check_relocs()
2059 struct alpha_elf_got_entry *gotent; in elf64_alpha_gc_sweep_hook() local
2081 gotent = get_got_entry (abfd, h, r_type, r_symndx, rel->r_addend); in elf64_alpha_gc_sweep_hook()
2088 if (gotent == NULL || gotent->use_count < 2) in elf64_alpha_gc_sweep_hook()
2093 gotent->use_count -= 2; in elf64_alpha_gc_sweep_hook()
2421 struct alpha_elf_got_entry *gotent; in elf64_alpha_calc_got_offsets_for_symbol() local
2423 for (gotent = h->got_entries; gotent; gotent = gotent->next) in elf64_alpha_calc_got_offsets_for_symbol()
2424 if (gotent->use_count > 0) in elf64_alpha_calc_got_offsets_for_symbol()
2429 td = alpha_elf_tdata (gotent->gotobj); in elf64_alpha_calc_got_offsets_for_symbol()
2431 gotent->got_offset = *plge; in elf64_alpha_calc_got_offsets_for_symbol()
2432 *plge += alpha_got_entry_size (gotent->reloc_type); in elf64_alpha_calc_got_offsets_for_symbol()
2467 struct alpha_elf_got_entry **local_got_entries, *gotent; in elf64_alpha_calc_got_offsets() local
2475 for (gotent = local_got_entries[k]; gotent; gotent = gotent->next) in elf64_alpha_calc_got_offsets()
2476 if (gotent->use_count > 0) in elf64_alpha_calc_got_offsets()
2478 gotent->got_offset = got_offset; in elf64_alpha_calc_got_offsets()
2479 got_offset += alpha_got_entry_size (gotent->reloc_type); in elf64_alpha_calc_got_offsets()
2579 struct alpha_elf_got_entry *gotent; in elf64_alpha_size_plt_section_1() local
2587 for (gotent = h->got_entries; gotent ; gotent = gotent->next) in elf64_alpha_size_plt_section_1()
2588 if (gotent->reloc_type == R_ALPHA_LITERAL in elf64_alpha_size_plt_section_1()
2589 && gotent->use_count > 0) in elf64_alpha_size_plt_section_1()
2593 gotent->plt_offset = splt->size; in elf64_alpha_size_plt_section_1()
2779 struct alpha_elf_got_entry *gotent; in elf64_alpha_size_rela_got_1() local
2799 for (gotent = h->got_entries; gotent ; gotent = gotent->next) in elf64_alpha_size_rela_got_1()
2800 if (gotent->use_count > 0) in elf64_alpha_size_rela_got_1()
2801 entries += alpha_dynamic_entries_for_reloc (gotent->reloc_type, dynamic, in elf64_alpha_size_rela_got_1()
2841 struct alpha_elf_got_entry **local_got_entries, *gotent; in elf64_alpha_size_rela_got_section() local
2849 for (gotent = local_got_entries[k]; in elf64_alpha_size_rela_got_section()
2850 gotent ; gotent = gotent->next) in elf64_alpha_size_rela_got_section()
2851 if (gotent->use_count > 0) in elf64_alpha_size_rela_got_section()
2853 (gotent->reloc_type, 0, bfd_link_pic (info), in elf64_alpha_size_rela_got_section()
3040 struct alpha_elf_got_entry *gotent; member
3147 if (--info->gotent->use_count == 0) in elf64_alpha_relax_got_load()
3509 if (--info->gotent->use_count == 0) in elf64_alpha_relax_with_lituse()
3736 if (--info->gotent->use_count == 0) in elf64_alpha_relax_tls_get_addr()
3738 int sz = alpha_got_entry_size (info->gotent->reloc_type); in elf64_alpha_relax_tls_get_addr()
3760 if (info->gotent->use_count == 0) in elf64_alpha_relax_tls_get_addr()
3761 tprel_gotent = info->gotent; in elf64_alpha_relax_tls_get_addr()
3876 struct alpha_elf_got_entry *gotent; in elf64_alpha_relax_section() local
3944 info.first_gotent = &info.gotent; in elf64_alpha_relax_section()
3945 info.gotent = NULL; in elf64_alpha_relax_section()
3993 for (gotent = *info.first_gotent; gotent ; gotent = gotent->next) in elf64_alpha_relax_section()
3994 if (gotent->gotobj == info.gotobj in elf64_alpha_relax_section()
3995 && gotent->reloc_type == r_type in elf64_alpha_relax_section()
3996 && gotent->addend == irel->r_addend) in elf64_alpha_relax_section()
3998 info.gotent = gotent; in elf64_alpha_relax_section()
4006 BFD_ASSERT(info.gotent != NULL); in elf64_alpha_relax_section()
4026 BFD_ASSERT(info.gotent != NULL); in elf64_alpha_relax_section()
4033 BFD_ASSERT(info.gotent != NULL); in elf64_alpha_relax_section()
4287 struct alpha_elf_got_entry *gotent; in elf64_alpha_relocate_section() local
4340 gotent = local_got_entries[r_symndx]; in elf64_alpha_relocate_section()
4342 gotent = NULL; in elf64_alpha_relocate_section()
4349 && gotent in elf64_alpha_relocate_section()
4350 && !gotent->reloc_xlated) in elf64_alpha_relocate_section()
4354 for (ent = gotent; ent; ent = ent->next) in elf64_alpha_relocate_section()
4396 gotent = h->got_entries; in elf64_alpha_relocate_section()
4407 for (; gotent ; gotent = gotent->next) in elf64_alpha_relocate_section()
4408 if (gotent->gotobj == gotobj in elf64_alpha_relocate_section()
4409 && gotent->reloc_type == r_type in elf64_alpha_relocate_section()
4410 && gotent->addend == addend) in elf64_alpha_relocate_section()
4436 BFD_ASSERT(gotent != NULL); in elf64_alpha_relocate_section()
4437 BFD_ASSERT(gotent->use_count >= 1); in elf64_alpha_relocate_section()
4439 if (!gotent->reloc_done) in elf64_alpha_relocate_section()
4441 gotent->reloc_done = 1; in elf64_alpha_relocate_section()
4444 sgot->contents + gotent->got_offset); in elf64_alpha_relocate_section()
4453 gotent->got_offset, 0, in elf64_alpha_relocate_section()
4459 + gotent->got_offset); 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()
4687 sgot->contents + gotent->got_offset); in elf64_alpha_relocate_section()
4694 gotent->got_offset, 0, in elf64_alpha_relocate_section()
4705 sgot->contents + gotent->got_offset + 8); in elf64_alpha_relocate_section()
4710 + gotent->got_offset); in elf64_alpha_relocate_section()
4757 BFD_ASSERT(gotent != NULL); in elf64_alpha_relocate_section()
4758 BFD_ASSERT(gotent->use_count >= 1); in elf64_alpha_relocate_section()
4760 if (!gotent->reloc_done) in elf64_alpha_relocate_section()
4762 gotent->reloc_done = 1; in elf64_alpha_relocate_section()
4776 gotent->got_offset, 0, in elf64_alpha_relocate_section()
4783 sgot->contents + gotent->got_offset); in elf64_alpha_relocate_section()
4788 + gotent->got_offset); in elf64_alpha_relocate_section()
4862 struct alpha_elf_got_entry *gotent; in elf64_alpha_finish_dynamic_symbol() local
4871 for (gotent = ah->got_entries; gotent ; gotent = gotent->next) in elf64_alpha_finish_dynamic_symbol()
4872 if (gotent->reloc_type == R_ALPHA_LITERAL in elf64_alpha_finish_dynamic_symbol()
4873 && gotent->use_count > 0) in elf64_alpha_finish_dynamic_symbol()
4878 sgot = alpha_elf_tdata (gotent->gotobj)->got; in elf64_alpha_finish_dynamic_symbol()
4881 BFD_ASSERT (gotent->got_offset != -1); in elf64_alpha_finish_dynamic_symbol()
4882 BFD_ASSERT (gotent->plt_offset != -1); in elf64_alpha_finish_dynamic_symbol()
4886 + gotent->got_offset); in elf64_alpha_finish_dynamic_symbol()
4889 + gotent->plt_offset); in elf64_alpha_finish_dynamic_symbol()
4891 plt_index = (gotent->plt_offset-PLT_HEADER_SIZE) / PLT_ENTRY_SIZE; in elf64_alpha_finish_dynamic_symbol()
4896 disp = (PLT_HEADER_SIZE - 4) - (gotent->plt_offset + 4); in elf64_alpha_finish_dynamic_symbol()
4899 splt->contents + gotent->plt_offset); in elf64_alpha_finish_dynamic_symbol()
4901 plt_index = ((gotent->plt_offset - NEW_PLT_HEADER_SIZE) in elf64_alpha_finish_dynamic_symbol()
4906 disp = -(gotent->plt_offset + 4); in elf64_alpha_finish_dynamic_symbol()
4909 splt->contents + gotent->plt_offset); in elf64_alpha_finish_dynamic_symbol()
4911 splt->contents + gotent->plt_offset + 4); in elf64_alpha_finish_dynamic_symbol()
4913 splt->contents + gotent->plt_offset + 8); in elf64_alpha_finish_dynamic_symbol()
4915 plt_index = ((gotent->plt_offset - OLD_PLT_HEADER_SIZE) in elf64_alpha_finish_dynamic_symbol()
4929 sgot->contents + gotent->got_offset); in elf64_alpha_finish_dynamic_symbol()
4936 struct alpha_elf_got_entry *gotent; in elf64_alpha_finish_dynamic_symbol() local
4941 for (gotent = ((struct alpha_elf_link_hash_entry *) h)->got_entries; in elf64_alpha_finish_dynamic_symbol()
4942 gotent != NULL; in elf64_alpha_finish_dynamic_symbol()
4943 gotent = gotent->next) in elf64_alpha_finish_dynamic_symbol()
4948 if (gotent->use_count == 0) in elf64_alpha_finish_dynamic_symbol()
4951 sgot = alpha_elf_tdata (gotent->gotobj)->got; in elf64_alpha_finish_dynamic_symbol()
4953 r_type = gotent->reloc_type; in elf64_alpha_finish_dynamic_symbol()
4974 gotent->got_offset, h->dynindx, in elf64_alpha_finish_dynamic_symbol()
4975 r_type, gotent->addend); in elf64_alpha_finish_dynamic_symbol()
4977 if (gotent->reloc_type == R_ALPHA_TLSGD) in elf64_alpha_finish_dynamic_symbol()
4979 gotent->got_offset + 8, h->dynindx, in elf64_alpha_finish_dynamic_symbol()
4980 R_ALPHA_DTPREL64, gotent->addend); in elf64_alpha_finish_dynamic_symbol()