Lines Matching refs:hh
202 struct elf32_hppa_link_hash_entry *hh; member
331 #define hh_name(hh) \ argument
332 (hh ? hh->eh.root.root.string : "<undef>")
369 hsh->hh = NULL; in stub_hash_newfunc()
397 struct elf32_hppa_link_hash_entry *hh; in hppa_link_hash_newfunc() local
400 hh = hppa_elf_hash_entry (entry); in hppa_link_hash_newfunc()
401 hh->hsh_cache = NULL; in hppa_link_hash_newfunc()
402 hh->dyn_relocs = NULL; in hppa_link_hash_newfunc()
403 hh->plabel = 0; in hppa_link_hash_newfunc()
404 hh->tls_type = GOT_UNKNOWN; in hppa_link_hash_newfunc()
475 const struct elf32_hppa_link_hash_entry *hh, in hppa_stub_name() argument
481 if (hh) in hppa_stub_name()
483 len = 8 + 1 + strlen (hh_name (hh)) + 1 + 8 + 1; in hppa_stub_name()
488 hh_name (hh), in hppa_stub_name()
511 struct elf32_hppa_link_hash_entry *hh, in hppa_get_stub_entry() argument
525 if (hh != NULL && hh->hsh_cache != NULL in hppa_get_stub_entry()
526 && hh->hsh_cache->hh == hh in hppa_get_stub_entry()
527 && hh->hsh_cache->id_sec == id_sec) in hppa_get_stub_entry()
529 hsh_entry = hh->hsh_cache; in hppa_get_stub_entry()
535 stub_name = hppa_stub_name (id_sec, sym_sec, hh, rela); in hppa_get_stub_entry()
541 if (hh != NULL) in hppa_get_stub_entry()
542 hh->hsh_cache = hsh_entry; in hppa_get_stub_entry()
611 struct elf32_hppa_link_hash_entry *hh, in hppa_type_of_stub() argument
620 if (hh != NULL in hppa_type_of_stub()
621 && hh->eh.plt.offset != (bfd_vma) -1 in hppa_type_of_stub()
622 && hh->eh.dynindx != -1 in hppa_type_of_stub()
623 && !hh->plabel in hppa_type_of_stub()
625 || !hh->eh.def_regular in hppa_type_of_stub()
626 || hh->eh.root.type == bfd_link_hash_defweak)) in hppa_type_of_stub()
777 off = hsh->hh->eh.plt.offset; in hppa_build_one_stub()
869 hsh->hh->eh.root.u.def.section = stub_sec; in hppa_build_one_stub()
870 hsh->hh->eh.root.u.def.value = stub_sec->size; in hppa_build_one_stub()
1173 struct elf32_hppa_link_hash_entry *hh; in elf32_hppa_check_relocs() local
1179 hh = NULL; in elf32_hppa_check_relocs()
1182 hh = hppa_elf_hash_entry (eh_syms[r_symndx - symtab_hdr->sh_info]); in elf32_hppa_check_relocs()
1183 while (hh->eh.root.type == bfd_link_hash_indirect in elf32_hppa_check_relocs()
1184 || hh->eh.root.type == bfd_link_hash_warning) in elf32_hppa_check_relocs()
1185 hh = hppa_elf_hash_entry (hh->eh.root.u.i.link); in elf32_hppa_check_relocs()
1189 hh->eh.root.non_ir_ref = 1; in elf32_hppa_check_relocs()
1193 r_type = elf32_hppa_optimized_tls_reloc (info, r_type, hh == NULL); in elf32_hppa_check_relocs()
1245 if (hh == NULL) in elf32_hppa_check_relocs()
1262 if (hh->eh.type == STT_PARISC_MILLI) in elf32_hppa_check_relocs()
1305 if (!bfd_elf_gc_record_vtinherit (abfd, sec, &hh->eh, rela->r_offset)) in elf32_hppa_check_relocs()
1312 BFD_ASSERT (hh != NULL); in elf32_hppa_check_relocs()
1313 if (hh != NULL in elf32_hppa_check_relocs()
1314 && !bfd_elf_gc_record_vtentry (abfd, sec, &hh->eh, rela->r_addend)) in elf32_hppa_check_relocs()
1371 if (hh != NULL) in elf32_hppa_check_relocs()
1373 hh->eh.got.refcount += 1; in elf32_hppa_check_relocs()
1374 old_tls_type = hh->tls_type; in elf32_hppa_check_relocs()
1393 if (hh != NULL) in elf32_hppa_check_relocs()
1394 hh->tls_type = tls_type; in elf32_hppa_check_relocs()
1414 if (hh != NULL) in elf32_hppa_check_relocs()
1416 hh->eh.needs_plt = 1; in elf32_hppa_check_relocs()
1417 hh->eh.plt.refcount += 1; in elf32_hppa_check_relocs()
1423 hh->plabel = 1; in elf32_hppa_check_relocs()
1445 if (hh != NULL && !bfd_link_pic (info)) in elf32_hppa_check_relocs()
1446 hh->eh.non_got_ref = 1; in elf32_hppa_check_relocs()
1479 || (hh != NULL in elf32_hppa_check_relocs()
1480 && (!SYMBOLIC_BIND (info, &hh->eh) in elf32_hppa_check_relocs()
1481 || hh->eh.root.type == bfd_link_hash_defweak in elf32_hppa_check_relocs()
1482 || !hh->eh.def_regular)))) in elf32_hppa_check_relocs()
1486 && hh != NULL in elf32_hppa_check_relocs()
1487 && (hh->eh.root.type == bfd_link_hash_defweak in elf32_hppa_check_relocs()
1488 || !hh->eh.def_regular))) in elf32_hppa_check_relocs()
1509 if (hh != NULL) in elf32_hppa_check_relocs()
1511 hdh_head = &hh->dyn_relocs; in elf32_hppa_check_relocs()
1569 struct elf_link_hash_entry *hh, in elf32_hppa_gc_mark_hook() argument
1572 if (hh != NULL) in elf32_hppa_gc_mark_hook()
1580 return _bfd_elf_gc_mark_hook (sec, info, rela, hh, sym); in elf32_hppa_gc_mark_hook()
1625 struct elf32_hppa_link_hash_entry *hh; in elf32_hppa_gc_sweep_hook() local
1633 hh = hppa_elf_hash_entry (eh); in elf32_hppa_gc_sweep_hook()
1635 for (hdh_pp = &hh->dyn_relocs; (hdh_p = *hdh_pp) != NULL; hdh_pp = &hdh_p->hdh_next) in elf32_hppa_gc_sweep_hook()
1880 struct elf32_hppa_link_hash_entry *hh; in elf32_hppa_adjust_dynamic_symbol() local
1883 hh = hppa_elf_hash_entry (eh); in elf32_hppa_adjust_dynamic_symbol()
1884 for (hdh_p = hh->dyn_relocs; hdh_p != NULL; hdh_p = hdh_p->hdh_next) in elf32_hppa_adjust_dynamic_symbol()
1936 struct elf32_hppa_link_hash_entry *hh; in allocate_plt_static() local
1943 hh = hppa_elf_hash_entry (eh); in allocate_plt_static()
1968 hh->plabel = 0; in allocate_plt_static()
1970 else if (hh->plabel) in allocate_plt_static()
2003 struct elf32_hppa_link_hash_entry *hh; in allocate_dynrelocs() local
2014 hh = hppa_elf_hash_entry (eh); in allocate_dynrelocs()
2018 && !hh->plabel in allocate_dynrelocs()
2047 if ((hh->tls_type & (GOT_TLS_GD | GOT_TLS_IE)) == (GOT_TLS_GD | GOT_TLS_IE)) in allocate_dynrelocs()
2049 else if ((hh->tls_type & GOT_TLS_GD) == GOT_TLS_GD) in allocate_dynrelocs()
2057 if ((hh->tls_type & (GOT_TLS_GD | GOT_TLS_IE)) == (GOT_TLS_GD | GOT_TLS_IE)) in allocate_dynrelocs()
2059 else if ((hh->tls_type & GOT_TLS_GD) == GOT_TLS_GD) in allocate_dynrelocs()
2066 if (hh->dyn_relocs == NULL) in allocate_dynrelocs()
2081 for (hdh_pp = &hh->dyn_relocs; (hdh_p = *hdh_pp) != NULL; ) in allocate_dynrelocs()
2095 if (hh->dyn_relocs != NULL in allocate_dynrelocs()
2099 hh->dyn_relocs = NULL; in allocate_dynrelocs()
2141 hh->dyn_relocs = NULL; in allocate_dynrelocs()
2148 for (hdh_p = hh->dyn_relocs; hdh_p != NULL; hdh_p = hdh_p->hdh_next) in allocate_dynrelocs()
2181 struct elf32_hppa_link_hash_entry *hh; in readonly_dynrelocs() local
2184 hh = hppa_elf_hash_entry (eh); in readonly_dynrelocs()
2185 for (hdh_p = hh->dyn_relocs; hdh_p != NULL; hdh_p = hdh_p->hdh_next) in readonly_dynrelocs()
2747 struct elf32_hppa_link_hash_entry *hh; in get_local_syms() local
2749 hh = hppa_elf_hash_entry (*eh_syms); in get_local_syms()
2751 while (hh->eh.root.type == bfd_link_hash_indirect in get_local_syms()
2752 || hh->eh.root.type == bfd_link_hash_warning) in get_local_syms()
2753 hh = hppa_elf_hash_entry (hh->eh.root.u.i.link); in get_local_syms()
2758 if ((hh->eh.root.type == bfd_link_hash_defined in get_local_syms()
2759 || hh->eh.root.type == bfd_link_hash_defweak) in get_local_syms()
2760 && hh->eh.type == STT_FUNC in get_local_syms()
2761 && hh->eh.root.u.def.section->output_section != NULL in get_local_syms()
2762 && (hh->eh.root.u.def.section->output_section->owner in get_local_syms()
2764 && hh->eh.root.u.def.section->owner == input_bfd in get_local_syms()
2765 && hh->eh.def_regular in get_local_syms()
2766 && !hh->eh.forced_local in get_local_syms()
2767 && ELF_ST_VISIBILITY (hh->eh.other) == STV_DEFAULT) in get_local_syms()
2773 sec = hh->eh.root.u.def.section; in get_local_syms()
2774 stub_name = hh_name (hh); in get_local_syms()
2784 hsh->target_value = hh->eh.root.u.def.value; in get_local_syms()
2785 hsh->target_section = hh->eh.root.u.def.section; in get_local_syms()
2787 hsh->hh = hh; in get_local_syms()
2932 struct elf32_hppa_link_hash_entry *hh; in elf32_hppa_size_stubs() local
2959 hh = NULL; in elf32_hppa_size_stubs()
2986 hh = hppa_elf_hash_entry (elf_sym_hashes (input_bfd)[e_indx]); in elf32_hppa_size_stubs()
2988 while (hh->eh.root.type == bfd_link_hash_indirect in elf32_hppa_size_stubs()
2989 || hh->eh.root.type == bfd_link_hash_warning) in elf32_hppa_size_stubs()
2990 hh = hppa_elf_hash_entry (hh->eh.root.u.i.link); in elf32_hppa_size_stubs()
2992 if (hh->eh.root.type == bfd_link_hash_defined in elf32_hppa_size_stubs()
2993 || hh->eh.root.type == bfd_link_hash_defweak) in elf32_hppa_size_stubs()
2995 sym_sec = hh->eh.root.u.def.section; in elf32_hppa_size_stubs()
2996 sym_value = hh->eh.root.u.def.value; in elf32_hppa_size_stubs()
3002 else if (hh->eh.root.type == bfd_link_hash_undefweak) in elf32_hppa_size_stubs()
3007 else if (hh->eh.root.type == bfd_link_hash_undefined) in elf32_hppa_size_stubs()
3010 && (ELF_ST_VISIBILITY (hh->eh.other) in elf32_hppa_size_stubs()
3012 && hh->eh.type != STT_PARISC_MILLI)) in elf32_hppa_size_stubs()
3023 stub_type = hppa_type_of_stub (section, irela, hh, in elf32_hppa_size_stubs()
3032 stub_name = hppa_stub_name (id_sec, sym_sec, hh, irela); in elf32_hppa_size_stubs()
3063 hsh->hh = hh; in elf32_hppa_size_stubs()
3318 struct elf32_hppa_link_hash_entry *hh, in final_link_relocate() argument
3381 || (hh != NULL in final_link_relocate()
3382 && hh->eh.plt.offset != (bfd_vma) -1 in final_link_relocate()
3383 && hh->eh.dynindx != -1 in final_link_relocate()
3384 && !hh->plabel in final_link_relocate()
3386 || !hh->eh.def_regular in final_link_relocate()
3387 || hh->eh.root.type == bfd_link_hash_defweak))) in final_link_relocate()
3390 hh, rela, htab); in final_link_relocate()
3398 else if (sym_sec == NULL && hh != NULL in final_link_relocate()
3399 && hh->eh.root.type == bfd_link_hash_undefweak) in final_link_relocate()
3588 hh, rela, htab); in final_link_relocate()
3683 struct elf32_hppa_link_hash_entry *hh; in elf32_hppa_relocate_section() local
3703 hh = NULL; in elf32_hppa_relocate_section()
3742 hh = hppa_elf_hash_entry (eh); in elf32_hppa_relocate_section()
3769 if (hh != NULL) in elf32_hppa_relocate_section()
3773 off = hh->eh.got.offset; in elf32_hppa_relocate_section()
3777 &hh->eh)) in elf32_hppa_relocate_section()
3789 hh->eh.got.offset |= 1; in elf32_hppa_relocate_section()
3865 if (hh != NULL) in elf32_hppa_relocate_section()
3867 off = hh->eh.plt.offset; in elf32_hppa_relocate_section()
3870 &hh->eh)) in elf32_hppa_relocate_section()
3879 hh->eh.plt.offset |= 1; in elf32_hppa_relocate_section()
3945 if (hh == NULL in elf32_hppa_relocate_section()
3946 || (hh->eh.root.type != bfd_link_hash_undefweak in elf32_hppa_relocate_section()
3947 && hh->eh.root.type != bfd_link_hash_undefined)) in elf32_hppa_relocate_section()
3983 && (hh == NULL in elf32_hppa_relocate_section()
3984 || ELF_ST_VISIBILITY (hh->eh.other) == STV_DEFAULT in elf32_hppa_relocate_section()
3985 || hh->eh.root.type != bfd_link_hash_undefweak) in elf32_hppa_relocate_section()
3987 || !SYMBOL_CALLS_LOCAL (info, &hh->eh))) in elf32_hppa_relocate_section()
3989 && hh != NULL in elf32_hppa_relocate_section()
3990 && hh->eh.dynindx != -1 in elf32_hppa_relocate_section()
3991 && !hh->eh.non_got_ref in elf32_hppa_relocate_section()
3993 && hh->eh.def_dynamic in elf32_hppa_relocate_section()
3994 && !hh->eh.def_regular) in elf32_hppa_relocate_section()
3995 || hh->eh.root.type == bfd_link_hash_undefweak in elf32_hppa_relocate_section()
3996 || hh->eh.root.type == bfd_link_hash_undefined))) in elf32_hppa_relocate_section()
4020 else if (hh != NULL in elf32_hppa_relocate_section()
4021 && hh->eh.dynindx != -1 in elf32_hppa_relocate_section()
4025 || !SYMBOLIC_BIND (info, &hh->eh) in elf32_hppa_relocate_section()
4026 || !hh->eh.def_regular)) in elf32_hppa_relocate_section()
4028 outrel.r_info = ELF32_R_INFO (hh->eh.dynindx, r_type); in elf32_hppa_relocate_section()
4126 if (hh != NULL) in elf32_hppa_relocate_section()
4133 &hh->eh) in elf32_hppa_relocate_section()
4135 || !SYMBOL_REFERENCES_LOCAL (info, &hh->eh))) in elf32_hppa_relocate_section()
4137 indx = hh->eh.dynindx; in elf32_hppa_relocate_section()
4139 off = hh->eh.got.offset; in elf32_hppa_relocate_section()
4140 tls_type = hh->tls_type; in elf32_hppa_relocate_section()
4165 && (hh == NULL in elf32_hppa_relocate_section()
4166 || ELF_ST_VISIBILITY (hh->eh.other) == STV_DEFAULT in elf32_hppa_relocate_section()
4167 || hh->eh.root.type != bfd_link_hash_undefweak)) in elf32_hppa_relocate_section()
4245 if (hh != NULL) in elf32_hppa_relocate_section()
4246 hh->eh.got.offset |= 1; in elf32_hppa_relocate_section()
4277 htab, sym_sec, hh, info); in elf32_hppa_relocate_section()
4282 if (hh != NULL) in elf32_hppa_relocate_section()
4283 sym_name = hh_name (hh); in elf32_hppa_relocate_section()
4314 (info, (hh ? &hh->eh.root : NULL), sym_name, howto->name, in elf32_hppa_relocate_section()