• Home
  • Raw
  • Download

Lines Matching refs:root

3795   struct bfd_hash_entry root;  member
3825 struct bfd_hash_entry root; member
4229 htab->elf.root.hash_table_free = ppc64_elf_link_hash_table_free; in ppc64_elf_link_hash_table_create()
4244 return &htab->elf.root; in ppc64_elf_link_hash_table_create()
4366 len = 8 + 1 + strlen (h->elf.root.root.string) + 1 + 8 + 1; in ppc_stub_name()
4373 h->elf.root.root.string, in ppc_stub_name()
4572 return (struct elf_link_hash_entry *) follow_link (&h->root); in elf_follow_link()
4578 return (struct ppc_link_hash_entry *) follow_link (&h->elf.root); in ppc_follow_link()
4638 && eind->elf.root.type != bfd_link_hash_indirect in ppc64_elf_copy_indirect_symbol()
4687 if (eind->elf.root.type != bfd_link_hash_indirect) in ppc64_elf_copy_indirect_symbol()
4747 const char *fd_name = fh->elf.root.root.string + 1; in lookup_fdh()
4774 abfd = fh->elf.root.u.undef.abfd; in make_fdh()
4776 newsym->name = fh->elf.root.root.string + 1; in make_fdh()
4885 && !(h->root.type == bfd_link_hash_undefweak in ppc64_elf_archive_symbol_lookup()
4918 if (eh->elf.root.type == bfd_link_hash_indirect) in add_symbol_adjust()
4921 if (eh->elf.root.type == bfd_link_hash_warning) in add_symbol_adjust()
4922 eh = (struct ppc_link_hash_entry *) eh->elf.root.u.i.link; in add_symbol_adjust()
4924 if (eh->elf.root.root.string[0] != '.') in add_symbol_adjust()
4935 && (eh->elf.root.type == bfd_link_hash_undefined in add_symbol_adjust()
4936 || eh->elf.root.type == bfd_link_hash_undefweak) 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()
4959 && eh->elf.root.type == bfd_link_hash_undefined) in add_symbol_adjust()
4961 eh->elf.root.type = bfd_link_hash_undefweak; in add_symbol_adjust()
5042 && strcmp (eh->elf.root.root.string, ".TOC.") == 0) in ppc64_elf_before_check_relocs()
5061 bfd_link_repair_undef_list (&htab->elf.root); in ppc64_elf_before_check_relocs()
5261 h->root.non_ir_ref = 1; in ppc64_elf_check_relocs()
5442 if (h->root.root.string[0] == '.' in ppc64_elf_check_relocs()
5443 && h->root.root.string[1] != '\0') in ppc64_elf_check_relocs()
5532 if (h->root.type == bfd_link_hash_defined) in ppc64_elf_check_relocs()
5533 dest = h->root.u.def.section; in ppc64_elf_check_relocs()
5560 if (h->root.root.string[0] == '.' in ppc64_elf_check_relocs()
5561 && h->root.root.string[1] != '\0') in ppc64_elf_check_relocs()
5660 if (h->root.root.string[0] == '.' in ppc64_elf_check_relocs()
5661 && h->root.root.string[1] != 0 in ppc64_elf_check_relocs()
5753 || h->root.type == bfd_link_hash_defweak in ppc64_elf_check_relocs()
5758 && (h->root.type == bfd_link_hash_defweak in ppc64_elf_check_relocs()
6013 BFD_ASSERT (rh->root.type == bfd_link_hash_defined in opd_entry_value()
6014 || rh->root.type == bfd_link_hash_defweak); in opd_entry_value()
6015 val = rh->root.u.def.value; in opd_entry_value()
6016 sec = rh->root.u.def.section; in opd_entry_value()
6133 return ((h->root.type == bfd_link_hash_defined in is_static_defined()
6134 || h->root.type == bfd_link_hash_defweak) in is_static_defined()
6135 && h->root.u.def.section != NULL in is_static_defined()
6136 && h->root.u.def.section->output_section != NULL); in is_static_defined()
6148 if (fh->elf.root.type == bfd_link_hash_defined in defined_code_entry()
6149 || fh->elf.root.type == bfd_link_hash_defweak) in defined_code_entry()
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()
6192 if (eh->elf.root.type != bfd_link_hash_defined in ppc64_elf_gc_keep()
6193 && eh->elf.root.type != bfd_link_hash_defweak) in ppc64_elf_gc_keep()
6199 sec = fh->elf.root.u.def.section; in ppc64_elf_gc_keep()
6202 else if (get_opd_info (eh->elf.root.u.def.section) != NULL in ppc64_elf_gc_keep()
6203 && opd_entry_value (eh->elf.root.u.def.section, in ppc64_elf_gc_keep()
6204 eh->elf.root.u.def.value, in ppc64_elf_gc_keep()
6208 sec = eh->elf.root.u.def.section; in ppc64_elf_gc_keep()
6230 if ((eh->elf.root.type == bfd_link_hash_defined in ppc64_elf_gc_mark_dynamic_ref()
6231 || eh->elf.root.type == bfd_link_hash_defweak) in ppc64_elf_gc_mark_dynamic_ref()
6240 && (*d->match) (&d->head, NULL, eh->elf.root.root.string))) in ppc64_elf_gc_mark_dynamic_ref()
6241 && (strchr (eh->elf.root.root.string, ELF_VER_CHR) != NULL in ppc64_elf_gc_mark_dynamic_ref()
6243 eh->elf.root.root.string))))) in ppc64_elf_gc_mark_dynamic_ref()
6248 eh->elf.root.u.def.section->flags |= SEC_KEEP; in ppc64_elf_gc_mark_dynamic_ref()
6255 code_sec = fh->elf.root.u.def.section; in ppc64_elf_gc_mark_dynamic_ref()
6258 else if (get_opd_info (eh->elf.root.u.def.section) != NULL in ppc64_elf_gc_mark_dynamic_ref()
6259 && opd_entry_value (eh->elf.root.u.def.section, in ppc64_elf_gc_mark_dynamic_ref()
6260 eh->elf.root.u.def.value, in ppc64_elf_gc_mark_dynamic_ref()
6299 switch (h->root.type) in ppc64_elf_gc_mark_hook()
6314 eh->elf.root.u.def.section->gc_mark = 1; in ppc64_elf_gc_mark_hook()
6316 rsec = fh->elf.root.u.def.section; in ppc64_elf_gc_mark_hook()
6318 else if (get_opd_info (eh->elf.root.u.def.section) != NULL in ppc64_elf_gc_mark_hook()
6319 && opd_entry_value (eh->elf.root.u.def.section, in ppc64_elf_gc_mark_hook()
6320 eh->elf.root.u.def.value, in ppc64_elf_gc_mark_hook()
6322 eh->elf.root.u.def.section->gc_mark = 1; in ppc64_elf_gc_mark_hook()
6324 rsec = h->root.u.def.section; in ppc64_elf_gc_mark_hook()
6328 rsec = h->root.u.c.p->section; in ppc64_elf_gc_mark_hook()
6566 h->root.type = bfd_link_hash_defined; in sfpr_define()
6567 h->root.u.def.section = htab->sfpr; in sfpr_define()
6568 h->root.u.def.value = htab->sfpr->size; in sfpr_define()
6771 if (fh->elf.root.type == bfd_link_hash_indirect) in func_desc_adjust()
6783 if (fh->elf.root.type == bfd_link_hash_undefweak 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()
6789 &fh->elf.root.u.def.section, in func_desc_adjust()
6790 &fh->elf.root.u.def.value, FALSE) != (bfd_vma) -1) in func_desc_adjust()
6792 fh->elf.root.type = fdh->elf.root.type; in func_desc_adjust()
6807 || fh->elf.root.root.string[0] != '.' in func_desc_adjust()
6808 || fh->elf.root.root.string[1] == '\0') in func_desc_adjust()
6817 && (fh->elf.root.type == bfd_link_hash_undefined in func_desc_adjust()
6818 || fh->elf.root.type == bfd_link_hash_undefweak)) in func_desc_adjust()
6833 && fdh->elf.root.type == bfd_link_hash_undefweak) in func_desc_adjust()
6835 if (fh->elf.root.type == bfd_link_hash_undefined) 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()
6840 else if (fh->elf.root.type == bfd_link_hash_defined in func_desc_adjust()
6841 || fh->elf.root.type == bfd_link_hash_defweak) in func_desc_adjust()
6852 || (fdh->elf.root.type == bfd_link_hash_undefweak in func_desc_adjust()
6926 htab->elf.hgot->root.type = bfd_link_hash_defined; in ppc64_elf_func_desc_adjust()
6927 htab->elf.hgot->root.u.def.value = 0; in ppc64_elf_func_desc_adjust()
6928 htab->elf.hgot->root.u.def.section = bfd_abs_section_ptr; in ppc64_elf_func_desc_adjust()
7004 && h->root.type == bfd_link_hash_undefweak)))) in ppc64_elf_adjust_dynamic_symbol()
7051 BFD_ASSERT (h->u.weakdef->root.type == bfd_link_hash_defined in ppc64_elf_adjust_dynamic_symbol()
7052 || h->u.weakdef->root.type == bfd_link_hash_defweak); in ppc64_elf_adjust_dynamic_symbol()
7053 h->root.u.def.section = h->u.weakdef->root.u.def.section; in ppc64_elf_adjust_dynamic_symbol()
7054 h->root.u.def.value = h->u.weakdef->root.u.def.value; in ppc64_elf_adjust_dynamic_symbol()
7094 h->root.root.string); in ppc64_elf_adjust_dynamic_symbol()
7114 if ((h->root.u.def.section->flags & SEC_ALLOC) != 0 && h->size != 0) in ppc64_elf_adjust_dynamic_symbol()
7155 p = eh->elf.root.root.string - 1; in ppc64_elf_hide_symbol()
7172 q = eh->elf.root.root.string + strlen (eh->elf.root.root.string); in ppc64_elf_hide_symbol()
7173 while (q >= eh->elf.root.root.string && *q == *p) in ppc64_elf_hide_symbol()
7175 if (q < eh->elf.root.root.string && *p == '.') in ppc64_elf_hide_symbol()
7218 if (h->root.type == bfd_link_hash_defined in get_sym_h()
7219 || h->root.type == bfd_link_hash_defweak) in get_sym_h()
7220 symsec = h->root.u.def.section; in get_sym_h()
7312 BFD_ASSERT (h->root.type == bfd_link_hash_defined); in get_tls_mask()
7313 off = h->root.u.def.value; in get_tls_mask()
7360 ent.offset = h->root.u.def.value; in tocsave_find()
7392 if (h->root.type == bfd_link_hash_indirect) in adjust_opd_syms()
7395 if (h->root.type != bfd_link_hash_defined in adjust_opd_syms()
7396 && h->root.type != bfd_link_hash_defweak) in adjust_opd_syms()
7403 sym_sec = eh->elf.root.u.def.section; in adjust_opd_syms()
7407 long adjust = opd->adjust[eh->elf.root.u.def.value / 8]; in adjust_opd_syms()
7421 eh->elf.root.u.def.value = 0; in adjust_opd_syms()
7422 eh->elf.root.u.def.section = dsec; in adjust_opd_syms()
7425 eh->elf.root.u.def.value += adjust; in adjust_opd_syms()
7514 || h->root.type == bfd_link_hash_defweak in dec_dynrel_count()
7519 && (h->root.type == bfd_link_hash_defweak in dec_dynrel_count()
7697 sym_name = h->root.root.string; in ppc64_elf_edit_opd()
7848 && h->root.root.string[0] == '.') 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()
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()
7883 fdh->elf.root.u.def.value = wptr - new_contents; in ppc64_elf_edit_opd()
8035 && (opt_fd->root.type == bfd_link_hash_defined in ppc64_elf_tls_setup()
8036 || opt_fd->root.type == bfd_link_hash_defweak)) in ppc64_elf_tls_setup()
8049 && tga_fd->root.type == bfd_link_hash_undefweak))) in ppc64_elf_tls_setup()
8058 tga_fd->root.type = bfd_link_hash_indirect; in ppc64_elf_tls_setup()
8059 tga_fd->root.u.i.link = &opt_fd->root; in ppc64_elf_tls_setup()
8074 tga->root.type = bfd_link_hash_indirect; in ppc64_elf_tls_setup()
8075 tga->root.u.i.link = &opt->root; in ppc64_elf_tls_setup()
8209 if (h->root.type == bfd_link_hash_defined in ppc64_elf_tls_optimize()
8210 || h->root.type == bfd_link_hash_defweak) in ppc64_elf_tls_optimize()
8211 value = h->root.u.def.value; in ppc64_elf_tls_optimize()
8212 else if (h->root.type == bfd_link_hash_undefweak) in ppc64_elf_tls_optimize()
8232 && h->root.type == bfd_link_hash_undefweak) in ppc64_elf_tls_optimize()
8342 value = h->root.u.def.value; in ppc64_elf_tls_optimize()
8583 if (h->root.type != bfd_link_hash_defined in adjust_toc_syms()
8584 && h->root.type != bfd_link_hash_defweak) in adjust_toc_syms()
8591 if (eh->elf.root.u.def.section == toc_inf->toc) in adjust_toc_syms()
8593 if (eh->elf.root.u.def.value > toc_inf->toc->rawsize) in adjust_toc_syms()
8596 i = eh->elf.root.u.def.value >> 3; in adjust_toc_syms()
8601 (_("%s defined on removed toc entry"), eh->elf.root.root.string); in adjust_toc_syms()
8605 eh->elf.root.u.def.value = (bfd_vma) i << 3; in adjust_toc_syms()
8608 eh->elf.root.u.def.value -= toc_inf->skip[i]; in adjust_toc_syms()
8611 else if (strcmp (eh->elf.root.u.def.section->name, ".toc") == 0) in adjust_toc_syms()
8730 val = h->root.u.def.value; in ppc64_elf_edit_toc()
8805 val = h->root.u.def.value; in ppc64_elf_edit_toc()
8987 val = h->root.u.def.value; in ppc64_elf_edit_toc()
9147 val = h->root.u.def.value; in ppc64_elf_edit_toc()
9336 || h->root.type != bfd_link_hash_undefweak)) in allocate_got()
9376 if (h->root.type == bfd_link_hash_indirect) in allocate_dynrelocs()
9555 && h->root.type == bfd_link_hash_undefweak) in allocate_dynrelocs()
9628 if (h->root.type == bfd_link_hash_indirect) in size_global_entry_stubs()
9652 h->root.u.def.section = s; in size_global_entry_stubs()
9653 h->root.u.def.value = s->size; in size_global_entry_stubs()
9666 if (h->root.type == bfd_link_hash_indirect) in maybe_set_textrel()
10481 asection *opd = stub_entry->h->elf.root.u.def.section; in get_r2off()
10482 bfd_vma opd_off = stub_entry->h->elf.root.u.def.value; in get_r2off()
10488 stub_entry->h->elf.root.root.string); in get_r2off()
10574 stub_entry->root.string); in ppc_build_one_stub()
10611 if (h->elf.root.u.def.section != stub_entry->target_section) in ppc_build_one_stub()
10616 off = (h->elf.root.u.def.value in ppc_build_one_stub()
10617 + h->elf.root.u.def.section->output_offset in ppc_build_one_stub()
10618 + h->elf.root.u.def.section->output_section->vma); in ppc_build_one_stub()
10628 stub_entry->root.string + 9, in ppc_build_one_stub()
10633 stub_entry->root.string); in ppc_build_one_stub()
10697 stub_entry->root.string); in ppc_build_one_stub()
10802 if (fh->elf.root.type == bfd_link_hash_undefined) in ppc_build_one_stub()
10803 fh->elf.root.type = bfd_link_hash_undefweak; in ppc_build_one_stub()
10852 ? stub_entry->h->elf.root.root.string in ppc_build_one_stub()
10914 len2 = strlen (stub_entry->root.string); in ppc_build_one_stub()
10918 memcpy (name, stub_entry->root.string, 9); in ppc_build_one_stub()
10920 memcpy (name + len1 + 9, stub_entry->root.string + 8, len2 - 8 + 1); in ppc_build_one_stub()
10924 if (h->root.type == bfd_link_hash_new) in ppc_build_one_stub()
10926 h->root.type = bfd_link_hash_defined; in ppc_build_one_stub()
10927 h->root.u.def.section = stub_entry->stub_sec; in ppc_build_one_stub()
10928 h->root.u.def.value = stub_entry->stub_offset; in ppc_build_one_stub()
11037 stub_entry->root.string + 9, in ppc_size_one_stub()
11042 stub_entry->root.string); in ppc_size_one_stub()
11260 if (h->root.type == bfd_link_hash_indirect) in merge_global_got()
11276 if (h->root.type == bfd_link_hash_indirect) in reallocate_got()
11577 if (h->root.type != bfd_link_hash_defined in toc_adjusting_stub_needed()
11578 && h->root.type != bfd_link_hash_defweak) in toc_adjusting_stub_needed()
11580 sym_value = h->root.u.def.value; in toc_adjusting_stub_needed()
12112 else if (hash->elf.root.type == bfd_link_hash_defined in ppc64_elf_size_stubs()
12113 || hash->elf.root.type == bfd_link_hash_defweak) in ppc64_elf_size_stubs()
12115 sym_value = hash->elf.root.u.def.value; in ppc64_elf_size_stubs()
12119 else if (hash->elf.root.type == bfd_link_hash_undefweak in ppc64_elf_size_stubs()
12120 || hash->elf.root.type == bfd_link_hash_undefined) in ppc64_elf_size_stubs()
12125 if (hash->elf.root.root.string[0] == '.' 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()
12183 hash->elf.root.type = bfd_link_hash_defweak; in ppc64_elf_size_stubs()
12184 hash->elf.root.u.def.section = code_sec; in ppc64_elf_size_stubs()
12185 hash->elf.root.u.def.value = code_value; in ppc64_elf_size_stubs()
12548 htab->elf.hgot->root.u.def.value = TOC_BASE_OFF; in ppc64_elf_set_toc()
12549 htab->elf.hgot->root.u.def.section = s; in ppc64_elf_set_toc()
12574 if (h->root.type == bfd_link_hash_indirect) in build_global_entry_stubs()
12597 p = s->contents + h->root.u.def.value; in build_global_entry_stubs()
12603 off -= h->root.u.def.value + s->output_offset + s->output_section->vma; in build_global_entry_stubs()
12609 h->root.root.string); in build_global_entry_stubs()
12617 size_t len = strlen (h->root.root.string); in build_global_entry_stubs()
12623 sprintf (name, "%08x.global_entry.%s", s->id, h->root.root.string); in build_global_entry_stubs()
12627 if (h->root.type == bfd_link_hash_new) in build_global_entry_stubs()
12629 h->root.type = bfd_link_hash_defined; in build_global_entry_stubs()
12630 h->root.u.def.section = s; in build_global_entry_stubs()
12631 h->root.u.def.value = p - s->contents; in build_global_entry_stubs()
12700 if (h->root.type == bfd_link_hash_new) in ppc64_elf_build_stubs()
12702 h->root.type = bfd_link_hash_defined; in ppc64_elf_build_stubs()
12703 h->root.u.def.section = htab->glink; in ppc64_elf_build_stubs()
12704 h->root.u.def.value = 8; in ppc64_elf_build_stubs()
12906 if (h->root.type == bfd_link_hash_indirect) in undo_symbol_twiddle()
12910 if (eh->elf.root.type != bfd_link_hash_undefweak || !eh->was_undefined) in undo_symbol_twiddle()
12913 eh->elf.root.type = bfd_link_hash_undefined; in undo_symbol_twiddle()
13105 sym_name = h_elf->root.root.string; in ppc64_elf_relocate_section()
13123 if (h_elf->root.u.def.value >= isec->output_offset in ppc64_elf_relocate_section()
13124 && h_elf->root.u.def.value < (isec->output_offset in ppc64_elf_relocate_section()
13127 h_elf->root.u.def.value -= isec->output_offset; in ppc64_elf_relocate_section()
13128 h_elf->root.u.def.section = isec; in ppc64_elf_relocate_section()
13192 || h->elf.root.type == bfd_link_hash_defined in ppc64_elf_relocate_section()
13193 || h->elf.root.type == bfd_link_hash_defweak) in ppc64_elf_relocate_section()
13746 const char *name = h->elf.root.root.string; in ppc64_elf_relocate_section()
13895 && h->elf.root.type == bfd_link_hash_undefweak in ppc64_elf_relocate_section()
14053 || h->elf.root.type != bfd_link_hash_undefweak)) in ppc64_elf_relocate_section()
14239 && h->elf.root.type == bfd_link_hash_undefweak in ppc64_elf_relocate_section()
14332 || h->elf.root.type != bfd_link_hash_undefweak) in ppc64_elf_relocate_section()
14716 h->elf.root.root.string); in ppc64_elf_relocate_section()
14773 && h->elf.root.type == bfd_link_hash_undefweak in ppc64_elf_relocate_section()
14786 (info, &h->elf.root, sym_name, in ppc64_elf_relocate_section()
14883 && (h->root.type == bfd_link_hash_defined in ppc64_elf_finish_dynamic_symbol()
14884 || h->root.type == bfd_link_hash_defweak)); in ppc64_elf_finish_dynamic_symbol()
14892 rela.r_addend = (h->root.u.def.value in ppc64_elf_finish_dynamic_symbol()
14893 + h->root.u.def.section->output_offset in ppc64_elf_finish_dynamic_symbol()
14894 + h->root.u.def.section->output_section->vma in ppc64_elf_finish_dynamic_symbol()
14943 || (h->root.type != bfd_link_hash_defined in ppc64_elf_finish_dynamic_symbol()
14944 && h->root.type != bfd_link_hash_defweak) in ppc64_elf_finish_dynamic_symbol()
14948 rela.r_offset = (h->root.u.def.value in ppc64_elf_finish_dynamic_symbol()
14949 + h->root.u.def.section->output_section->vma in ppc64_elf_finish_dynamic_symbol()
14950 + h->root.u.def.section->output_offset); in ppc64_elf_finish_dynamic_symbol()