Lines Matching refs:gotent

1663   struct alpha_elf_got_entry *gotent;
1695 for (gotent = *slot; gotent ; gotent = gotent->next)
1696 if (gotent->gotobj == abfd
1697 && gotent->reloc_type == r_type
1698 && gotent->addend == r_addend)
1701 if (!gotent)
1707 gotent = (struct alpha_elf_got_entry *) bfd_alloc (abfd, amt);
1708 if (!gotent)
1711 gotent->gotobj = abfd;
1712 gotent->addend = r_addend;
1713 gotent->got_offset = -1;
1714 gotent->plt_offset = -1;
1715 gotent->use_count = 1;
1716 gotent->reloc_type = r_type;
1717 gotent->reloc_done = 0;
1718 gotent->reloc_xlated = 0;
1720 gotent->next = *slot;
1721 *slot = gotent;
1729 gotent->use_count += 1;
1731 return gotent;
1898 struct alpha_elf_got_entry *gotent;
1900 gotent = get_got_entry (abfd, h, r_type, r_symndx, addend);
1901 if (!gotent)
1906 gotent->flags |= gotent_flags;
2321 struct alpha_elf_got_entry *gotent;
2326 for (gotent = h->got_entries; gotent; gotent = gotent->next)
2327 if (gotent->use_count > 0)
2332 td = alpha_elf_tdata (gotent->gotobj);
2334 gotent->got_offset = *plge;
2335 *plge += alpha_got_entry_size (gotent->reloc_type);
2364 struct alpha_elf_got_entry **local_got_entries, *gotent;
2372 for (gotent = local_got_entries[k]; gotent; gotent = gotent->next)
2373 if (gotent->use_count > 0)
2375 gotent->got_offset = got_offset;
2376 got_offset += alpha_got_entry_size (gotent->reloc_type);
2459 struct alpha_elf_got_entry *gotent;
2467 for (gotent = h->got_entries; gotent ; gotent = gotent->next)
2468 if (gotent->reloc_type == R_ALPHA_LITERAL
2469 && gotent->use_count > 0)
2473 gotent->plt_offset = splt->size;
2654 struct alpha_elf_got_entry *gotent;
2677 for (gotent = h->got_entries; gotent ; gotent = gotent->next)
2678 if (gotent->use_count > 0)
2679 entries += alpha_dynamic_entries_for_reloc (gotent->reloc_type,
2713 struct alpha_elf_got_entry **local_got_entries, *gotent;
2721 for (gotent = local_got_entries[k];
2722 gotent ; gotent = gotent->next)
2723 if (gotent->use_count > 0)
2725 (gotent->reloc_type, 0, info->shared));
2906 struct alpha_elf_got_entry *gotent;
3008 if (--info->gotent->use_count == 0)
3333 if (--info->gotent->use_count == 0)
3551 if (--info->gotent->use_count == 0)
3553 int sz = alpha_got_entry_size (info->gotent->reloc_type);
3575 if (info->gotent->use_count == 0)
3576 tprel_gotent = info->gotent;
3679 struct alpha_elf_got_entry *gotent;
3750 info.first_gotent = &info.gotent;
3751 info.gotent = NULL;
3799 for (gotent = *info.first_gotent; gotent ; gotent = gotent->next)
3800 if (gotent->gotobj == info.gotobj
3801 && gotent->reloc_type == r_type
3802 && gotent->addend == irel->r_addend)
3804 info.gotent = gotent;
3812 BFD_ASSERT(info.gotent != NULL);
3832 BFD_ASSERT(info.gotent != NULL);
3839 BFD_ASSERT(info.gotent != NULL);
4098 struct alpha_elf_got_entry *gotent;
4150 gotent = local_got_entries[r_symndx];
4152 gotent = NULL;
4159 && gotent
4160 && !gotent->reloc_xlated)
4164 for (ent = gotent; ent; ent = ent->next)
4207 gotent = h->got_entries;
4225 for (; gotent ; gotent = gotent->next)
4226 if (gotent->gotobj == gotobj
4227 && gotent->reloc_type == r_type
4228 && gotent->addend == addend)
4254 BFD_ASSERT(gotent != NULL);
4255 BFD_ASSERT(gotent->use_count >= 1);
4257 if (!gotent->reloc_done)
4259 gotent->reloc_done = 1;
4262 sgot->contents + gotent->got_offset);
4269 gotent->got_offset, 0,
4275 + gotent->got_offset);
4486 if (!gotent->reloc_done)
4488 gotent->reloc_done = 1;
4492 sgot->contents + gotent->got_offset);
4499 gotent->got_offset, 0,
4510 sgot->contents + gotent->got_offset + 8);
4515 + gotent->got_offset);
4562 BFD_ASSERT(gotent != NULL);
4563 BFD_ASSERT(gotent->use_count >= 1);
4565 if (!gotent->reloc_done)
4567 gotent->reloc_done = 1;
4581 gotent->got_offset, 0,
4588 sgot->contents + gotent->got_offset);
4593 + gotent->got_offset);
4669 struct alpha_elf_got_entry *gotent;
4678 for (gotent = ah->got_entries; gotent ; gotent = gotent->next)
4679 if (gotent->reloc_type == R_ALPHA_LITERAL
4680 && gotent->use_count > 0)
4685 sgot = alpha_elf_tdata (gotent->gotobj)->got;
4688 BFD_ASSERT (gotent->got_offset != -1);
4689 BFD_ASSERT (gotent->plt_offset != -1);
4693 + gotent->got_offset);
4696 + gotent->plt_offset);
4698 plt_index = (gotent->plt_offset-PLT_HEADER_SIZE) / PLT_ENTRY_SIZE;
4703 disp = (PLT_HEADER_SIZE - 4) - (gotent->plt_offset + 4);
4706 splt->contents + gotent->plt_offset);
4708 plt_index = ((gotent->plt_offset - NEW_PLT_HEADER_SIZE)
4713 disp = -(gotent->plt_offset + 4);
4716 splt->contents + gotent->plt_offset);
4718 splt->contents + gotent->plt_offset + 4);
4720 splt->contents + gotent->plt_offset + 8);
4722 plt_index = ((gotent->plt_offset - OLD_PLT_HEADER_SIZE)
4736 sgot->contents + gotent->got_offset);
4743 struct alpha_elf_got_entry *gotent;
4748 for (gotent = ((struct alpha_elf_link_hash_entry *) h)->got_entries;
4749 gotent != NULL;
4750 gotent = gotent->next)
4755 if (gotent->use_count == 0)
4758 sgot = alpha_elf_tdata (gotent->gotobj)->got;
4760 r_type = gotent->reloc_type;
4781 gotent->got_offset, h->dynindx,
4782 r_type, gotent->addend);
4784 if (gotent->reloc_type == R_ALPHA_TLSGD)
4786 gotent->got_offset + 8, h->dynindx,
4787 R_ALPHA_DTPREL64, gotent->addend);