Lines Matching refs:hh

172 #define pc_dynrelocs(hh) 0  argument
210 struct elf32_hppa_link_hash_entry *hh; member
316 #define hh_name(hh) \ argument
317 (hh ? hh->eh.root.root.string : "<undef>")
354 hsh->hh = NULL; in stub_hash_newfunc()
382 struct elf32_hppa_link_hash_entry *hh; in hppa_link_hash_newfunc() local
385 hh = hppa_elf_hash_entry (entry); in hppa_link_hash_newfunc()
386 hh->hsh_cache = NULL; in hppa_link_hash_newfunc()
387 hh->plabel = 0; in hppa_link_hash_newfunc()
388 hh->tls_type = GOT_UNKNOWN; in hppa_link_hash_newfunc()
460 const struct elf32_hppa_link_hash_entry *hh, in hppa_stub_name() argument
466 if (hh) in hppa_stub_name()
468 len = 8 + 1 + strlen (hh_name (hh)) + 1 + 8 + 1; in hppa_stub_name()
473 hh_name (hh), in hppa_stub_name()
496 struct elf32_hppa_link_hash_entry *hh, in hppa_get_stub_entry() argument
512 if (hh != NULL && hh->hsh_cache != NULL in hppa_get_stub_entry()
513 && hh->hsh_cache->hh == hh in hppa_get_stub_entry()
514 && hh->hsh_cache->id_sec == id_sec) in hppa_get_stub_entry()
516 hsh_entry = hh->hsh_cache; in hppa_get_stub_entry()
522 stub_name = hppa_stub_name (id_sec, sym_sec, hh, rela); in hppa_get_stub_entry()
528 if (hh != NULL) in hppa_get_stub_entry()
529 hh->hsh_cache = hsh_entry; in hppa_get_stub_entry()
598 struct elf32_hppa_link_hash_entry *hh, in hppa_type_of_stub() argument
607 if (hh != NULL in hppa_type_of_stub()
608 && hh->eh.plt.offset != (bfd_vma) -1 in hppa_type_of_stub()
609 && hh->eh.dynindx != -1 in hppa_type_of_stub()
610 && !hh->plabel in hppa_type_of_stub()
612 || !hh->eh.def_regular in hppa_type_of_stub()
613 || hh->eh.root.type == bfd_link_hash_defweak)) in hppa_type_of_stub()
789 off = hsh->hh->eh.plt.offset; in hppa_build_one_stub()
887 hsh->hh->eh.root.u.def.section = stub_sec; in hppa_build_one_stub()
888 hsh->hh->eh.root.u.def.value = stub_sec->size; in hppa_build_one_stub()
1131 struct elf32_hppa_link_hash_entry *hh; in elf32_hppa_check_relocs() local
1137 hh = NULL; in elf32_hppa_check_relocs()
1140 hh = hppa_elf_hash_entry (eh_syms[r_symndx - symtab_hdr->sh_info]); in elf32_hppa_check_relocs()
1141 while (hh->eh.root.type == bfd_link_hash_indirect in elf32_hppa_check_relocs()
1142 || hh->eh.root.type == bfd_link_hash_warning) in elf32_hppa_check_relocs()
1143 hh = hppa_elf_hash_entry (hh->eh.root.u.i.link); in elf32_hppa_check_relocs()
1147 r_type = elf32_hppa_optimized_tls_reloc (info, r_type, hh == NULL); in elf32_hppa_check_relocs()
1201 if (hh == NULL) in elf32_hppa_check_relocs()
1218 if (hh->eh.type == STT_PARISC_MILLI) in elf32_hppa_check_relocs()
1262 if (!bfd_elf_gc_record_vtinherit (abfd, sec, &hh->eh, rela->r_offset)) in elf32_hppa_check_relocs()
1269 if (!bfd_elf_gc_record_vtentry (abfd, sec, &hh->eh, rela->r_addend)) in elf32_hppa_check_relocs()
1322 if (hh != NULL) in elf32_hppa_check_relocs()
1327 hh->eh.got.refcount += 1; in elf32_hppa_check_relocs()
1328 hh->tls_type |= tls_type; in elf32_hppa_check_relocs()
1359 if (hh != NULL) in elf32_hppa_check_relocs()
1361 hh->eh.needs_plt = 1; in elf32_hppa_check_relocs()
1362 hh->eh.plt.refcount += 1; in elf32_hppa_check_relocs()
1368 hh->plabel = 1; in elf32_hppa_check_relocs()
1391 if (hh != NULL) in elf32_hppa_check_relocs()
1392 hh->eh.non_got_ref = 1; in elf32_hppa_check_relocs()
1424 || (hh != NULL in elf32_hppa_check_relocs()
1425 && (!SYMBOLIC_BIND (info, &hh->eh) in elf32_hppa_check_relocs()
1426 || hh->eh.root.type == bfd_link_hash_defweak in elf32_hppa_check_relocs()
1427 || !hh->eh.def_regular)))) in elf32_hppa_check_relocs()
1430 && hh != NULL in elf32_hppa_check_relocs()
1431 && (hh->eh.root.type == bfd_link_hash_defweak in elf32_hppa_check_relocs()
1432 || !hh->eh.def_regular))) in elf32_hppa_check_relocs()
1453 if (hh != NULL) in elf32_hppa_check_relocs()
1455 hdh_head = &hh->eh.dyn_relocs; in elf32_hppa_check_relocs()
1513 struct elf_link_hash_entry *hh, in elf32_hppa_gc_mark_hook() argument
1516 if (hh != NULL) in elf32_hppa_gc_mark_hook()
1524 return _bfd_elf_gc_mark_hook (sec, info, rela, hh, sym); in elf32_hppa_gc_mark_hook()
1627 struct elf32_hppa_link_hash_entry *hh = hppa_elf_hash_entry (eh); in alias_readonly_dynrelocs() local
1630 if (_bfd_elf_readonly_dynrelocs (&hh->eh)) in alias_readonly_dynrelocs()
1632 hh = hppa_elf_hash_entry (hh->eh.u.alias); in alias_readonly_dynrelocs()
1633 } while (hh != NULL && &hh->eh != eh); in alias_readonly_dynrelocs()
1801 struct elf32_hppa_link_hash_entry *hh; in allocate_plt_static() local
1808 hh = hppa_elf_hash_entry (eh); in allocate_plt_static()
1826 hh->plabel = 0; in allocate_plt_static()
1828 else if (hh->plabel) in allocate_plt_static()
1897 struct elf32_hppa_link_hash_entry *hh; in allocate_dynrelocs() local
1908 hh = hppa_elf_hash_entry (eh); in allocate_dynrelocs()
1912 && !hh->plabel in allocate_dynrelocs()
1934 need = got_entries_needed (hh->tls_type); in allocate_dynrelocs()
1938 || (bfd_link_pic (info) && (hh->tls_type & GOT_NORMAL) != 0) in allocate_dynrelocs()
1945 += got_relocs_needed (hh->tls_type, need, local, in allocate_dynrelocs()
2534 struct elf32_hppa_link_hash_entry *hh; in get_local_syms() local
2536 hh = hppa_elf_hash_entry (*eh_syms); in get_local_syms()
2538 while (hh->eh.root.type == bfd_link_hash_indirect in get_local_syms()
2539 || hh->eh.root.type == bfd_link_hash_warning) in get_local_syms()
2540 hh = hppa_elf_hash_entry (hh->eh.root.u.i.link); in get_local_syms()
2545 if ((hh->eh.root.type == bfd_link_hash_defined in get_local_syms()
2546 || hh->eh.root.type == bfd_link_hash_defweak) in get_local_syms()
2547 && hh->eh.type == STT_FUNC in get_local_syms()
2548 && hh->eh.root.u.def.section->output_section != NULL in get_local_syms()
2549 && (hh->eh.root.u.def.section->output_section->owner in get_local_syms()
2551 && hh->eh.root.u.def.section->owner == input_bfd in get_local_syms()
2552 && hh->eh.def_regular in get_local_syms()
2553 && !hh->eh.forced_local in get_local_syms()
2554 && ELF_ST_VISIBILITY (hh->eh.other) == STV_DEFAULT) in get_local_syms()
2560 sec = hh->eh.root.u.def.section; in get_local_syms()
2561 stub_name = hh_name (hh); in get_local_syms()
2571 hsh->target_value = hh->eh.root.u.def.value; in get_local_syms()
2572 hsh->target_section = hh->eh.root.u.def.section; in get_local_syms()
2574 hsh->hh = hh; in get_local_syms()
2722 struct elf32_hppa_link_hash_entry *hh; in elf32_hppa_size_stubs() local
2749 hh = NULL; in elf32_hppa_size_stubs()
2776 hh = hppa_elf_hash_entry (elf_sym_hashes (input_bfd)[e_indx]); in elf32_hppa_size_stubs()
2778 while (hh->eh.root.type == bfd_link_hash_indirect in elf32_hppa_size_stubs()
2779 || hh->eh.root.type == bfd_link_hash_warning) in elf32_hppa_size_stubs()
2780 hh = hppa_elf_hash_entry (hh->eh.root.u.i.link); in elf32_hppa_size_stubs()
2782 if (hh->eh.root.type == bfd_link_hash_defined in elf32_hppa_size_stubs()
2783 || hh->eh.root.type == bfd_link_hash_defweak) in elf32_hppa_size_stubs()
2785 sym_sec = hh->eh.root.u.def.section; in elf32_hppa_size_stubs()
2786 sym_value = hh->eh.root.u.def.value; in elf32_hppa_size_stubs()
2792 else if (hh->eh.root.type == bfd_link_hash_undefweak) in elf32_hppa_size_stubs()
2797 else if (hh->eh.root.type == bfd_link_hash_undefined) in elf32_hppa_size_stubs()
2800 && (ELF_ST_VISIBILITY (hh->eh.other) in elf32_hppa_size_stubs()
2802 && hh->eh.type != STT_PARISC_MILLI)) in elf32_hppa_size_stubs()
2813 stub_type = hppa_type_of_stub (section, irela, hh, in elf32_hppa_size_stubs()
2822 stub_name = hppa_stub_name (id_sec, sym_sec, hh, irela); in elf32_hppa_size_stubs()
2853 hsh->hh = hh; in elf32_hppa_size_stubs()
3106 struct elf32_hppa_link_hash_entry *hh, in final_link_relocate() argument
3169 || (hh != NULL in final_link_relocate()
3170 && hh->eh.plt.offset != (bfd_vma) -1 in final_link_relocate()
3171 && hh->eh.dynindx != -1 in final_link_relocate()
3172 && !hh->plabel in final_link_relocate()
3174 || !hh->eh.def_regular in final_link_relocate()
3175 || hh->eh.root.type == bfd_link_hash_defweak))) in final_link_relocate()
3178 hh, rela, htab); in final_link_relocate()
3186 else if (sym_sec == NULL && hh != NULL in final_link_relocate()
3187 && hh->eh.root.type == bfd_link_hash_undefweak) in final_link_relocate()
3378 hh, rela, htab); in final_link_relocate()
3475 struct elf32_hppa_link_hash_entry *hh; in elf32_hppa_relocate_section() local
3495 hh = NULL; in elf32_hppa_relocate_section()
3534 hh = hppa_elf_hash_entry (eh); in elf32_hppa_relocate_section()
3562 if (hh != NULL) in elf32_hppa_relocate_section()
3566 off = hh->eh.got.offset; in elf32_hppa_relocate_section()
3568 reloc = (!UNDEFWEAK_NO_DYNAMIC_RELOC (info, &hh->eh) in elf32_hppa_relocate_section()
3570 || (hh->eh.dynindx != -1 in elf32_hppa_relocate_section()
3571 && !SYMBOL_REFERENCES_LOCAL (info, &hh->eh)))); in elf32_hppa_relocate_section()
3575 &hh->eh)) in elf32_hppa_relocate_section()
3587 hh->eh.got.offset |= 1; in elf32_hppa_relocate_section()
3663 if (hh != NULL) in elf32_hppa_relocate_section()
3665 off = hh->eh.plt.offset; in elf32_hppa_relocate_section()
3668 &hh->eh)) in elf32_hppa_relocate_section()
3677 hh->eh.plt.offset |= 1; in elf32_hppa_relocate_section()
3743 if (hh == NULL in elf32_hppa_relocate_section()
3744 || (hh->eh.root.type != bfd_link_hash_undefweak in elf32_hppa_relocate_section()
3745 && hh->eh.root.type != bfd_link_hash_undefined)) in elf32_hppa_relocate_section()
3769 ? ((hh == NULL in elf32_hppa_relocate_section()
3770 || hh->eh.dyn_relocs != NULL) in elf32_hppa_relocate_section()
3771 && ((hh != NULL && pc_dynrelocs (hh)) in elf32_hppa_relocate_section()
3773 : (hh != NULL in elf32_hppa_relocate_section()
3774 && hh->eh.dyn_relocs != NULL)) in elf32_hppa_relocate_section()
3798 else if (hh != NULL in elf32_hppa_relocate_section()
3799 && hh->eh.dynindx != -1 in elf32_hppa_relocate_section()
3803 || !SYMBOLIC_BIND (info, &hh->eh) in elf32_hppa_relocate_section()
3804 || !hh->eh.def_regular)) in elf32_hppa_relocate_section()
3806 outrel.r_info = ELF32_R_INFO (hh->eh.dynindx, r_type); in elf32_hppa_relocate_section()
3904 if (hh != NULL) in elf32_hppa_relocate_section()
3907 || hh->eh.dynindx == -1 in elf32_hppa_relocate_section()
3908 || SYMBOL_REFERENCES_LOCAL (info, &hh->eh) in elf32_hppa_relocate_section()
3909 || UNDEFWEAK_NO_DYNAMIC_RELOC (info, &hh->eh)) in elf32_hppa_relocate_section()
3916 indx = hh->eh.dynindx; in elf32_hppa_relocate_section()
3917 off = hh->eh.got.offset; in elf32_hppa_relocate_section()
3918 tls_type = hh->tls_type; in elf32_hppa_relocate_section()
3944 && (hh == NULL in elf32_hppa_relocate_section()
3945 || !UNDEFWEAK_NO_DYNAMIC_RELOC (info, &hh->eh)))) in elf32_hppa_relocate_section()
4000 && SYMBOL_REFERENCES_LOCAL (info, &hh->eh))) in elf32_hppa_relocate_section()
4022 if (hh != NULL) in elf32_hppa_relocate_section()
4023 hh->eh.got.offset |= 1; in elf32_hppa_relocate_section()
4031 if (hh != NULL) in elf32_hppa_relocate_section()
4033 hh_name (hh)); in elf32_hppa_relocate_section()
4083 htab, sym_sec, hh, info); in elf32_hppa_relocate_section()
4088 if (hh != NULL) in elf32_hppa_relocate_section()
4089 sym_name = hh_name (hh); in elf32_hppa_relocate_section()
4121 (info, (hh ? &hh->eh.root : NULL), sym_name, howto->name, in elf32_hppa_relocate_section()