Lines Matching refs:fdh

4743   struct ppc_link_hash_entry *fdh = fh->oh;  in lookup_fdh()  local
4745 if (fdh == NULL) in lookup_fdh()
4749 fdh = (struct ppc_link_hash_entry *) in lookup_fdh()
4751 if (fdh == NULL) in lookup_fdh()
4752 return fdh; in lookup_fdh()
4754 fdh->is_func_descriptor = 1; in lookup_fdh()
4755 fdh->oh = fh; in lookup_fdh()
4757 fh->oh = fdh; in lookup_fdh()
4760 return ppc_follow_link (fdh); in lookup_fdh()
4772 struct ppc_link_hash_entry *fdh; in make_fdh() local
4788 fdh = (struct ppc_link_hash_entry *) bh; in make_fdh()
4789 fdh->elf.non_elf = 0; in make_fdh()
4790 fdh->fake = 1; in make_fdh()
4791 fdh->is_func_descriptor = 1; in make_fdh()
4792 fdh->oh = fh; in make_fdh()
4794 fh->oh = fdh; in make_fdh()
4795 return fdh; in make_fdh()
4916 struct ppc_link_hash_entry *fdh; in add_symbol_adjust() local
4931 fdh = lookup_fdh (eh, htab); in add_symbol_adjust()
4932 if (fdh == NULL) in add_symbol_adjust()
4942 fdh = make_fdh (info, eh); in add_symbol_adjust()
4943 if (fdh == NULL) in add_symbol_adjust()
4945 fdh->elf.ref_regular = 1; in add_symbol_adjust()
4951 unsigned descr_vis = ELF_ST_VISIBILITY (fdh->elf.other) - 1; in add_symbol_adjust()
4953 fdh->elf.other += entry_vis - descr_vis; in add_symbol_adjust()
4957 if ((fdh->elf.root.type == bfd_link_hash_defined in add_symbol_adjust()
4958 || fdh->elf.root.type == bfd_link_hash_defweak) in add_symbol_adjust()
6143 defined_code_entry (struct ppc_link_hash_entry *fdh) in defined_code_entry() argument
6145 if (fdh->is_func_descriptor) in defined_code_entry()
6147 struct ppc_link_hash_entry *fh = ppc_follow_link (fdh->oh); in defined_code_entry()
6164 struct ppc_link_hash_entry *fdh = ppc_follow_link (fh->oh); in defined_func_desc() local
6165 if (fdh->elf.root.type == bfd_link_hash_defined in defined_func_desc()
6166 || fdh->elf.root.type == bfd_link_hash_defweak) in defined_func_desc()
6167 return fdh; in defined_func_desc()
6222 struct ppc_link_hash_entry *fdh; in ppc64_elf_gc_mark_dynamic_ref() local
6226 fdh = defined_func_desc (eh); in ppc64_elf_gc_mark_dynamic_ref()
6227 if (fdh != NULL) in ppc64_elf_gc_mark_dynamic_ref()
6228 eh = fdh; in ppc64_elf_gc_mark_dynamic_ref()
6289 struct ppc_link_hash_entry *eh, *fh, *fdh; in ppc64_elf_gc_mark_hook() local
6304 fdh = defined_func_desc (eh); in ppc64_elf_gc_mark_hook()
6305 if (fdh != NULL) in ppc64_elf_gc_mark_hook()
6306 eh = fdh; in ppc64_elf_gc_mark_hook()
6767 struct ppc_link_hash_entry *fdh; in func_desc_adjust() local
6785 && (fdh = defined_func_desc (fh)) != NULL in func_desc_adjust()
6786 && get_opd_info (fdh->elf.root.u.def.section) != NULL in func_desc_adjust()
6787 && opd_entry_value (fdh->elf.root.u.def.section, in func_desc_adjust()
6788 fdh->elf.root.u.def.value, in func_desc_adjust()
6792 fh->elf.root.type = fdh->elf.root.type; in func_desc_adjust()
6794 fh->elf.def_regular = fdh->elf.def_regular; in func_desc_adjust()
6795 fh->elf.def_dynamic = fdh->elf.def_dynamic; in func_desc_adjust()
6814 fdh = lookup_fdh (fh, htab); in func_desc_adjust()
6815 if (fdh == NULL in func_desc_adjust()
6820 fdh = make_fdh (info, fh); in func_desc_adjust()
6821 if (fdh == NULL) in func_desc_adjust()
6831 if (fdh != NULL in func_desc_adjust()
6832 && fdh->fake in func_desc_adjust()
6833 && fdh->elf.root.type == bfd_link_hash_undefweak) in func_desc_adjust()
6837 fdh->elf.root.type = bfd_link_hash_undefined; in func_desc_adjust()
6838 bfd_link_add_undef (&htab->elf.root, &fdh->elf.root); in func_desc_adjust()
6843 _bfd_elf_link_hash_hide_symbol (info, &fdh->elf, TRUE); in func_desc_adjust()
6847 if (fdh != NULL in func_desc_adjust()
6848 && !fdh->elf.forced_local in func_desc_adjust()
6850 || fdh->elf.def_dynamic in func_desc_adjust()
6851 || fdh->elf.ref_dynamic in func_desc_adjust()
6852 || (fdh->elf.root.type == bfd_link_hash_undefweak in func_desc_adjust()
6853 && ELF_ST_VISIBILITY (fdh->elf.other) == STV_DEFAULT))) in func_desc_adjust()
6855 if (fdh->elf.dynindx == -1) in func_desc_adjust()
6856 if (! bfd_elf_link_record_dynamic_symbol (info, &fdh->elf)) in func_desc_adjust()
6858 fdh->elf.ref_regular |= fh->elf.ref_regular; in func_desc_adjust()
6859 fdh->elf.ref_dynamic |= fh->elf.ref_dynamic; in func_desc_adjust()
6860 fdh->elf.ref_regular_nonweak |= fh->elf.ref_regular_nonweak; in func_desc_adjust()
6861 fdh->elf.non_got_ref |= fh->elf.non_got_ref; in func_desc_adjust()
6864 move_plt_plist (fh, fdh); in func_desc_adjust()
6865 fdh->elf.needs_plt = 1; in func_desc_adjust()
6867 fdh->is_func_descriptor = 1; in func_desc_adjust()
6868 fdh->oh = fh; in func_desc_adjust()
6869 fh->oh = fdh; in func_desc_adjust()
6880 || fdh == NULL in func_desc_adjust()
6881 || !fdh->elf.def_regular in func_desc_adjust()
6882 || fdh->elf.forced_local); in func_desc_adjust()
7833 struct ppc_link_hash_entry *fdh = NULL; in ppc64_elf_edit_opd() local
7850 fdh = lookup_fdh ((struct ppc_link_hash_entry *) h, htab); in ppc64_elf_edit_opd()
7851 if (fdh != NULL in ppc64_elf_edit_opd()
7852 && fdh->elf.root.type != bfd_link_hash_defined in ppc64_elf_edit_opd()
7853 && fdh->elf.root.type != bfd_link_hash_defweak) in ppc64_elf_edit_opd()
7854 fdh = NULL; in ppc64_elf_edit_opd()
7861 if (fdh != NULL && sym_sec->owner == ibfd) in ppc64_elf_edit_opd()
7865 fdh->elf.root.u.def.value = 0; in ppc64_elf_edit_opd()
7866 fdh->elf.root.u.def.section = sym_sec; in ppc64_elf_edit_opd()
7874 if (fdh != NULL) in ppc64_elf_edit_opd()
7883 fdh->elf.root.u.def.value = wptr - new_contents; in ppc64_elf_edit_opd()
7884 fdh->adjust_done = 1; in ppc64_elf_edit_opd()
10078 struct ppc_link_hash_entry *fdh = h; in ppc_type_of_stub() local
10082 fdh = ppc_follow_link (h->oh); in ppc_type_of_stub()
10083 *hash = fdh; in ppc_type_of_stub()
10086 for (ent = fdh->elf.plt.plist; ent != NULL; ent = ent->next) in ppc_type_of_stub()
10098 if (!is_static_defined (&fdh->elf) in ppc_type_of_stub()
12073 struct ppc_link_hash_entry *fdh; in ppc64_elf_size_stubs() local
12105 fdh = NULL; in ppc64_elf_size_stubs()
12126 && (fdh = lookup_fdh (hash, htab)) != NULL) in ppc64_elf_size_stubs()
12128 if (fdh->elf.root.type == bfd_link_hash_defined in ppc64_elf_size_stubs()
12129 || fdh->elf.root.type == bfd_link_hash_defweak) in ppc64_elf_size_stubs()
12131 sym_sec = fdh->elf.root.u.def.section; in ppc64_elf_size_stubs()
12132 sym_value = fdh->elf.root.u.def.value; in ppc64_elf_size_stubs()
12137 fdh = NULL; in ppc64_elf_size_stubs()
12179 if (fdh != NULL) in ppc64_elf_size_stubs()
13029 struct ppc_link_hash_entry *fdh; in ppc64_elf_relocate_section() local
13695 fdh = h; in ppc64_elf_relocate_section()
13699 fdh = ppc_follow_link (h->oh); in ppc64_elf_relocate_section()
13700 stub_entry = ppc_get_stub_entry (input_section, sec, fdh, &orig_rel, in ppc64_elf_relocate_section()
13833 relocation += PPC64_LOCAL_ENTRY_OFFSET (fdh in ppc64_elf_relocate_section()
13834 ? fdh->elf.other in ppc64_elf_relocate_section()