Lines Matching refs:eh

53   struct elf_link_hash_entry eh;  member
154 #define eh_name(eh) \ argument
155 (eh ? eh->root.root.string : "<undef>")
638 while (hh->eh.root.type == bfd_link_hash_indirect in elf64_hppa_check_relocs()
639 || hh->eh.root.type == bfd_link_hash_warning) in elf64_hppa_check_relocs()
640 hh = hppa_elf_hash_entry (hh->eh.root.u.i.link); in elf64_hppa_check_relocs()
644 hh->eh.ref_regular = 1; in elf64_hppa_check_relocs()
657 || !hh->eh.def_regular in elf64_hppa_check_relocs()
658 || hh->eh.root.type == bfd_link_hash_defweak)) in elf64_hppa_check_relocs()
711 if (hh != NULL && hh->eh.type != STT_PARISC_MILLI) in elf64_hppa_check_relocs()
788 hh->eh.got.refcount += 1; in elf64_hppa_check_relocs()
811 hh->eh.needs_plt = 1; in elf64_hppa_check_relocs()
812 hh->eh.plt.refcount += 1; in elf64_hppa_check_relocs()
903 elf64_hppa_dynamic_symbol_p (struct elf_link_hash_entry *eh, in elf64_hppa_dynamic_symbol_p() argument
909 if (_bfd_elf_dynamic_symbol_p (eh, info, 1)) in elf64_hppa_dynamic_symbol_p()
912 if (eh->root.root.string[0] == '$' && eh->root.root.string[1] == '$') in elf64_hppa_dynamic_symbol_p()
925 elf64_hppa_mark_exported_functions (struct elf_link_hash_entry *eh, void *data) in elf64_hppa_mark_exported_functions() argument
927 struct elf64_hppa_link_hash_entry *hh = hppa_elf_hash_entry (eh); in elf64_hppa_mark_exported_functions()
935 if (eh in elf64_hppa_mark_exported_functions()
936 && (eh->root.type == bfd_link_hash_defined in elf64_hppa_mark_exported_functions()
937 || eh->root.type == bfd_link_hash_defweak) in elf64_hppa_mark_exported_functions()
938 && eh->root.u.def.section->output_section != NULL in elf64_hppa_mark_exported_functions()
939 && eh->type == STT_FUNC) in elf64_hppa_mark_exported_functions()
949 eh->needs_plt = 1; in elf64_hppa_mark_exported_functions()
958 allocate_global_data_dlt (struct elf_link_hash_entry *eh, void *data) in allocate_global_data_dlt() argument
960 struct elf64_hppa_link_hash_entry *hh = hppa_elf_hash_entry (eh); in allocate_global_data_dlt()
970 if (eh->dynindx == -1 && eh->type != STT_PARISC_MILLI) in allocate_global_data_dlt()
972 bfd *owner = eh->root.u.def.section->owner; in allocate_global_data_dlt()
989 allocate_global_data_plt (struct elf_link_hash_entry *eh, void *data) in allocate_global_data_plt() argument
991 struct elf64_hppa_link_hash_entry *hh = hppa_elf_hash_entry (eh); in allocate_global_data_plt()
995 && elf64_hppa_dynamic_symbol_p (eh, x->info) in allocate_global_data_plt()
996 && !((eh->root.type == bfd_link_hash_defined in allocate_global_data_plt()
997 || eh->root.type == bfd_link_hash_defweak) in allocate_global_data_plt()
998 && eh->root.u.def.section->output_section != NULL)) in allocate_global_data_plt()
1022 allocate_global_data_stub (struct elf_link_hash_entry *eh, void *data) in allocate_global_data_stub() argument
1024 struct elf64_hppa_link_hash_entry *hh = hppa_elf_hash_entry (eh); in allocate_global_data_stub()
1028 && elf64_hppa_dynamic_symbol_p (eh, x->info) in allocate_global_data_stub()
1029 && !((eh->root.type == bfd_link_hash_defined in allocate_global_data_stub()
1030 || eh->root.type == bfd_link_hash_defweak) in allocate_global_data_stub()
1031 && eh->root.u.def.section->output_section != NULL)) in allocate_global_data_stub()
1044 allocate_global_data_opd (struct elf_link_hash_entry *eh, void *data) in allocate_global_data_opd() argument
1046 struct elf64_hppa_link_hash_entry *hh = hppa_elf_hash_entry (eh); in allocate_global_data_opd()
1053 if (hh && (hh->eh.root.type == bfd_link_hash_undefined in allocate_global_data_opd()
1054 || hh->eh.root.type == bfd_link_hash_undefweak in allocate_global_data_opd()
1055 || hh->eh.root.u.def.section->output_section == NULL)) in allocate_global_data_opd()
1063 || (hh->eh.dynindx == -1 && hh->eh.type != STT_PARISC_MILLI) in allocate_global_data_opd()
1064 || (hh->eh.root.type == bfd_link_hash_defined in allocate_global_data_opd()
1065 || hh->eh.root.type == bfd_link_hash_defweak)) in allocate_global_data_opd()
1072 && (hh == NULL || (hh->eh.dynindx == -1))) in allocate_global_data_opd()
1076 owner = (hh->owner ? hh->owner: eh->root.u.def.section->owner); in allocate_global_data_opd()
1088 if (bfd_link_pic (x->info) && eh) in allocate_global_data_opd()
1093 new_name = concat (".", eh->root.root.string, NULL); in allocate_global_data_opd()
1099 nh->root.type = eh->root.type; in allocate_global_data_opd()
1100 nh->root.u.def.value = eh->root.u.def.value; in allocate_global_data_opd()
1101 nh->root.u.def.section = eh->root.u.def.section; in allocate_global_data_opd()
1393 allocate_dynrel_entries (struct elf_link_hash_entry *eh, void *data) in allocate_dynrel_entries() argument
1395 struct elf64_hppa_link_hash_entry *hh = hppa_elf_hash_entry (eh); in allocate_dynrel_entries()
1405 dynamic_symbol = elf64_hppa_dynamic_symbol_p (eh, x->info); in allocate_dynrel_entries()
1427 if (eh->dynindx == -1 && eh->type != STT_PARISC_MILLI) in allocate_dynrel_entries()
1467 struct elf_link_hash_entry *eh) in elf64_hppa_adjust_dynamic_symbol() argument
1475 if (eh->is_weakalias) in elf64_hppa_adjust_dynamic_symbol()
1477 struct elf_link_hash_entry *def = weakdef (eh); in elf64_hppa_adjust_dynamic_symbol()
1479 eh->root.u.def.section = def->root.u.def.section; in elf64_hppa_adjust_dynamic_symbol()
1480 eh->root.u.def.value = def->root.u.def.value; in elf64_hppa_adjust_dynamic_symbol()
1500 elf64_hppa_mark_milli_and_exported_functions (struct elf_link_hash_entry *eh, in elf64_hppa_mark_milli_and_exported_functions() argument
1505 if (eh->type == STT_PARISC_MILLI) in elf64_hppa_mark_milli_and_exported_functions()
1507 if (eh->dynindx != -1) in elf64_hppa_mark_milli_and_exported_functions()
1509 eh->dynindx = -1; in elf64_hppa_mark_milli_and_exported_functions()
1511 eh->dynstr_index); in elf64_hppa_mark_milli_and_exported_functions()
1516 return elf64_hppa_mark_exported_functions (eh, data); in elf64_hppa_mark_milli_and_exported_functions()
1861 struct elf_link_hash_entry *eh) in elf64_hppa_link_output_symbol_hook() argument
1863 struct elf64_hppa_link_hash_entry *hh = hppa_elf_hash_entry (eh); in elf64_hppa_link_output_symbol_hook()
1867 if (!name || !eh) in elf64_hppa_link_output_symbol_hook()
1893 struct elf_link_hash_entry *eh, in elf64_hppa_finish_dynamic_symbol() argument
1896 struct elf64_hppa_link_hash_entry *hh = hppa_elf_hash_entry (eh); in elf64_hppa_finish_dynamic_symbol()
1936 && elf64_hppa_dynamic_symbol_p (eh, info)) in elf64_hppa_finish_dynamic_symbol()
1948 if (bfd_link_pic (info) && eh->root.type == bfd_link_hash_undefined) in elf64_hppa_finish_dynamic_symbol()
1951 value = (eh->root.u.def.value + eh->root.u.def.section->vma); in elf64_hppa_finish_dynamic_symbol()
1976 rel.r_info = ELF64_R_INFO (hh->eh.dynindx, R_PARISC_IPLT); in elf64_hppa_finish_dynamic_symbol()
1986 && elf64_hppa_dynamic_symbol_p (eh, info)) in elf64_hppa_finish_dynamic_symbol()
2033 hh->eh.root.root.string, (int64_t) value); in elf64_hppa_finish_dynamic_symbol()
2064 elf64_hppa_finalize_opd (struct elf_link_hash_entry *eh, void *data) in elf64_hppa_finalize_opd() argument
2066 struct elf64_hppa_link_hash_entry *hh = hppa_elf_hash_entry (eh); in elf64_hppa_finalize_opd()
2089 value = (eh->root.u.def.value in elf64_hppa_finalize_opd()
2090 + eh->root.u.def.section->output_section->vma in elf64_hppa_finalize_opd()
2091 + eh->root.u.def.section->output_offset); in elf64_hppa_finalize_opd()
2113 if (eh->dynindx != -1) in elf64_hppa_finalize_opd()
2114 dynindx = eh->dynindx; in elf64_hppa_finalize_opd()
2152 if (eh) in elf64_hppa_finalize_opd()
2157 new_name = concat (".", eh->root.root.string, NULL); in elf64_hppa_finalize_opd()
2184 elf64_hppa_finalize_dlt (struct elf_link_hash_entry *eh, void *data) in elf64_hppa_finalize_dlt() argument
2186 struct elf64_hppa_link_hash_entry *hh = hppa_elf_hash_entry (eh); in elf64_hppa_finalize_dlt()
2218 else if ((eh->root.type == bfd_link_hash_defined in elf64_hppa_finalize_dlt()
2219 || eh->root.type == bfd_link_hash_defweak) in elf64_hppa_finalize_dlt()
2220 && eh->root.u.def.section) in elf64_hppa_finalize_dlt()
2222 value = eh->root.u.def.value + eh->root.u.def.section->output_offset; in elf64_hppa_finalize_dlt()
2223 if (eh->root.u.def.section->output_section) in elf64_hppa_finalize_dlt()
2224 value += eh->root.u.def.section->output_section->vma; in elf64_hppa_finalize_dlt()
2226 value += eh->root.u.def.section->vma; in elf64_hppa_finalize_dlt()
2240 && (elf64_hppa_dynamic_symbol_p (eh, info) || bfd_link_pic (info))) in elf64_hppa_finalize_dlt()
2249 if (eh && eh->dynindx != -1) in elf64_hppa_finalize_dlt()
2250 dynindx = eh->dynindx; in elf64_hppa_finalize_dlt()
2261 if (eh && eh->type == STT_FUNC) in elf64_hppa_finalize_dlt()
2278 elf64_hppa_finalize_dynreloc (struct elf_link_hash_entry *eh, in elf64_hppa_finalize_dynreloc() argument
2281 struct elf64_hppa_link_hash_entry *hh = hppa_elf_hash_entry (eh); in elf64_hppa_finalize_dynreloc()
2286 dynamic_symbol = elf64_hppa_dynamic_symbol_p (eh, info); in elf64_hppa_finalize_dynreloc()
2303 if (eh->dynindx != -1) in elf64_hppa_finalize_dynreloc()
2304 dynindx = eh->dynindx; in elf64_hppa_finalize_dynreloc()
3135 struct elf_link_hash_entry *eh) in elf_hppa_final_link_relocate() argument
3138 struct elf64_hppa_link_hash_entry *hh = hppa_elf_hash_entry (eh); in elf_hppa_final_link_relocate()
3240 eh ? eh->root.root.string : "unknown"); in elf_hppa_final_link_relocate()
3532 if (eh == NULL && r_type == R_PARISC_LTOFF_FPTR64) in elf_hppa_final_link_relocate()
3765 struct elf_link_hash_entry *eh; in elf64_hppa_relocate_section() local
3783 eh = NULL; in elf64_hppa_relocate_section()
3803 eh = sym_hashes[r_symndx - symtab_hdr->sh_info]; in elf64_hppa_relocate_section()
3807 eh = ((struct elf_link_hash_entry *) in elf64_hppa_relocate_section()
3808 unwrap_hash_lookup (info, input_bfd, &eh->root)); in elf64_hppa_relocate_section()
3810 while (eh->root.type == bfd_link_hash_indirect in elf64_hppa_relocate_section()
3811 || eh->root.type == bfd_link_hash_warning) in elf64_hppa_relocate_section()
3812 eh = (struct elf_link_hash_entry *) eh->root.u.i.link; in elf64_hppa_relocate_section()
3815 if (eh->root.type == bfd_link_hash_defined in elf64_hppa_relocate_section()
3816 || eh->root.type == bfd_link_hash_defweak) in elf64_hppa_relocate_section()
3818 sym_sec = eh->root.u.def.section; in elf64_hppa_relocate_section()
3821 relocation = (eh->root.u.def.value in elf64_hppa_relocate_section()
3825 else if (eh->root.type == bfd_link_hash_undefweak) in elf64_hppa_relocate_section()
3828 && ELF_ST_VISIBILITY (eh->other) == STV_DEFAULT) in elf64_hppa_relocate_section()
3831 && elf_hppa_is_dynamic_loader_symbol (eh->root.root.string)) in elf64_hppa_relocate_section()
3839 || ELF_ST_VISIBILITY (eh->other) != STV_DEFAULT; in elf64_hppa_relocate_section()
3842 (info, eh->root.root.string, input_bfd, in elf64_hppa_relocate_section()
3848 && eh->root.type != bfd_link_hash_defined in elf64_hppa_relocate_section()
3849 && eh->root.type != bfd_link_hash_defweak in elf64_hppa_relocate_section()
3850 && eh->root.type != bfd_link_hash_undefweak) in elf64_hppa_relocate_section()
3853 && ELF_ST_VISIBILITY (eh->other) == STV_DEFAULT in elf64_hppa_relocate_section()
3854 && eh->type == STT_PARISC_MILLI) in elf64_hppa_relocate_section()
3856 (info, eh_name (eh), input_bfd, in elf64_hppa_relocate_section()
3871 eh); in elf64_hppa_relocate_section()
3883 if (eh != NULL) in elf64_hppa_relocate_section()
3897 (info, (eh ? &eh->root : NULL), sym_name, howto->name, in elf64_hppa_relocate_section()