Lines Matching refs:root
98 struct bfd_link_hash_table root; member
600 if (!_bfd_link_hash_table_init (&ret->root, abfd, xcoff_link_hash_newfunc, in _bfd_xcoff_bfd_link_hash_table_create()
615 ret->root.hash_table_free = _bfd_xcoff_bfd_link_hash_table_free; in _bfd_xcoff_bfd_link_hash_table_create()
622 return &ret->root; in _bfd_xcoff_bfd_link_hash_table_create()
791 if (h->root.type == bfd_link_hash_new) in xcoff_dynamic_definition_p()
799 && (h->root.type == bfd_link_hash_defweak in xcoff_dynamic_definition_p()
800 || h->root.type == bfd_link_hash_undefweak)) in xcoff_dynamic_definition_p()
805 && (h->root.type == bfd_link_hash_undefined in xcoff_dynamic_definition_p()
806 || h->root.type == bfd_link_hash_undefweak)) in xcoff_dynamic_definition_p()
916 h->root.type = bfd_link_hash_defweak; in xcoff_link_add_dynamic_symbols()
918 h->root.type = bfd_link_hash_defined; in xcoff_link_add_dynamic_symbols()
919 h->root.u.def.section = bfd_abs_section_ptr; in xcoff_link_add_dynamic_symbols()
920 h->root.u.def.value = ldsym.l_value; in xcoff_link_add_dynamic_symbols()
929 h->root.type = bfd_link_hash_undefweak; in xcoff_link_add_dynamic_symbols()
931 h->root.type = bfd_link_hash_undefined; in xcoff_link_add_dynamic_symbols()
932 h->root.u.undef.abfd = abfd; in xcoff_link_add_dynamic_symbols()
966 hds->root.type = h->root.type; in xcoff_link_add_dynamic_symbols()
974 hds->root.u.def.section = bfd_abs_section_ptr; in xcoff_link_add_dynamic_symbols()
975 hds->root.u.def.value = ldsym.l_value; in xcoff_link_add_dynamic_symbols()
980 hds->root.u.undef.abfd = abfd; in xcoff_link_add_dynamic_symbols()
1936 if (((*sym_hash)->root.type == bfd_link_hash_defined in xcoff_link_add_symbols()
1937 || (*sym_hash)->root.type == bfd_link_hash_defweak) in xcoff_link_add_symbols()
1947 (*sym_hash)->root.type = bfd_link_hash_undefined; in xcoff_link_add_symbols()
1948 (*sym_hash)->root.u.undef.abfd = in xcoff_link_add_symbols()
1949 (*sym_hash)->root.u.def.section->owner; in xcoff_link_add_symbols()
1960 || (*sym_hash)->root.type == bfd_link_hash_defweak) in xcoff_link_add_symbols()
1965 else if ((*sym_hash)->root.u.undef.next != NULL in xcoff_link_add_symbols()
1966 || info->hash->undefs_tail == &(*sym_hash)->root) in xcoff_link_add_symbols()
1984 && (*sym_hash)->root.type == bfd_link_hash_defined in xcoff_link_add_symbols()
1996 (info, &(*sym_hash)->root, NULL, NULL, (bfd_vma) 0))) in xcoff_link_add_symbols()
2025 if ((*sym_hash)->root.type != bfd_link_hash_common in xcoff_link_add_symbols()
2026 || (*sym_hash)->root.u.c.p->section != csect) in xcoff_link_add_symbols()
2030 (*sym_hash)->root.u.c.p->alignment_power in xcoff_link_add_symbols()
2124 if (h->root.root.string[0] == '.' in xcoff_link_add_symbols()
2131 h->root.root.string + 1, in xcoff_link_add_symbols()
2135 if (hds->root.type == bfd_link_hash_new) in xcoff_link_add_symbols()
2137 bh = &hds->root; in xcoff_link_add_symbols()
2139 (info, abfd, hds->root.root.string, in xcoff_link_add_symbols()
2151 if (h->root.root.string[0] == '.') in xcoff_link_add_symbols()
2508 && h->root.root.string[0] != '.') in xcoff_find_function()
2514 amt = strlen (h->root.root.string) + 2; in xcoff_find_function()
2519 strcpy (fnname + 1, h->root.root.string); in xcoff_find_function()
2525 && (hfn->root.type == bfd_link_hash_defined in xcoff_find_function()
2526 || hfn->root.type == bfd_link_hash_defweak)) in xcoff_find_function()
2565 if (h->root.root.string[0] == '_') in xcoff_covered_by_expall_p()
2570 && (h->root.type == bfd_link_hash_defined in xcoff_covered_by_expall_p()
2571 || h->root.type == bfd_link_hash_defweak) in xcoff_covered_by_expall_p()
2572 && h->root.u.def.section->owner != NULL in xcoff_covered_by_expall_p()
2573 && h->root.u.def.section->owner->my_archive != NULL) in xcoff_covered_by_expall_p()
2596 if (h->root.root.string[0] == '.') in xcoff_auto_export_p()
2613 if (h->root.type == bfd_link_hash_defined in xcoff_auto_export_p()
2614 || h->root.type == bfd_link_hash_defweak) in xcoff_auto_export_p()
2618 owner = h->root.u.def.section->owner; in xcoff_auto_export_p()
2662 || h->root.type == bfd_link_hash_defined in xcoff_need_ldrel_p()
2663 || h->root.type == bfd_link_hash_defweak in xcoff_need_ldrel_p()
2664 || h->root.type == bfd_link_hash_common) in xcoff_need_ldrel_p()
2681 && (h->root.type == bfd_link_hash_defined in xcoff_need_ldrel_p()
2682 || h->root.type == bfd_link_hash_defweak) in xcoff_need_ldrel_p()
2683 && bfd_is_abs_section (h->root.u.def.section)) in xcoff_need_ldrel_p()
2706 && (h->root.type == bfd_link_hash_undefined in xcoff_mark_symbol()
2707 || h->root.type == bfd_link_hash_undefweak)) in xcoff_mark_symbol()
2715 && (h->descriptor->root.type == bfd_link_hash_defined in xcoff_mark_symbol()
2716 || h->descriptor->root.type == bfd_link_hash_defweak)) in xcoff_mark_symbol()
2728 h->root.type = bfd_link_hash_defined; in xcoff_mark_symbol()
2729 h->root.u.def.section = sec; in xcoff_mark_symbol()
2730 h->root.u.def.value = sec->size; in xcoff_mark_symbol()
2768 BFD_ASSERT ((hds->root.type == bfd_link_hash_undefined in xcoff_mark_symbol()
2769 || hds->root.type == bfd_link_hash_undefweak) in xcoff_mark_symbol()
2780 h->root.type = bfd_link_hash_defined; in xcoff_mark_symbol()
2781 h->root.u.def.section = sec; in xcoff_mark_symbol()
2782 h->root.u.def.value = sec->size; in xcoff_mark_symbol()
2839 if (h->root.type == bfd_link_hash_defined in xcoff_mark_symbol()
2840 || h->root.type == bfd_link_hash_defweak) in xcoff_mark_symbol()
2844 hsec = h->root.u.def.section; in xcoff_mark_symbol()
2877 if (h->root.type == bfd_link_hash_defined in xcoff_mark_symbol_by_name()
2878 || h->root.type == bfd_link_hash_defweak) in xcoff_mark_symbol_by_name()
2880 if (!xcoff_mark (info, h->root.u.def.section)) in xcoff_mark_symbol_by_name()
3081 if (h->root.root.string[0] == '.' in bfd_xcoff_import_symbol()
3082 && h->root.type == bfd_link_hash_undefined in bfd_xcoff_import_symbol()
3091 h->root.root.string + 1, in bfd_xcoff_import_symbol()
3095 if (hds->root.type == bfd_link_hash_new) in bfd_xcoff_import_symbol()
3097 hds->root.type = bfd_link_hash_undefined; in bfd_xcoff_import_symbol()
3098 hds->root.u.undef.abfd = h->root.u.undef.abfd; in bfd_xcoff_import_symbol()
3109 if (hds->root.type == bfd_link_hash_undefined) in bfd_xcoff_import_symbol()
3117 if (h->root.type == bfd_link_hash_defined in bfd_xcoff_import_symbol()
3118 && (! bfd_is_abs_section (h->root.u.def.section) in bfd_xcoff_import_symbol()
3119 || h->root.u.def.value != val)) in bfd_xcoff_import_symbol()
3122 (info, &h->root, output_bfd, bfd_abs_section_ptr, val))) in bfd_xcoff_import_symbol()
3126 h->root.type = bfd_link_hash_defined; in bfd_xcoff_import_symbol()
3127 h->root.u.def.section = bfd_abs_section_ptr; in bfd_xcoff_import_symbol()
3128 h->root.u.def.value = val; in bfd_xcoff_import_symbol()
3261 switch (h->root.type) in xcoff_final_definition_p()
3268 && h->root.u.def.section == csect); in xcoff_final_definition_p()
3271 return h->root.u.c.p->section->owner == input_bfd; in xcoff_final_definition_p()
3298 h->root.root.string); in xcoff_build_ldsym()
3307 || h->root.type == bfd_link_hash_defined in xcoff_build_ldsym()
3308 || h->root.type == bfd_link_hash_defweak in xcoff_build_ldsym()
3309 || h->root.type == bfd_link_hash_common) in xcoff_build_ldsym()
3340 h->ldsym, h->root.root.string)) in xcoff_build_ldsym()
3363 && (h->root.type == bfd_link_hash_defined in xcoff_post_gc_symbol()
3364 || h->root.type == bfd_link_hash_defweak) in xcoff_post_gc_symbol()
3365 && (h->root.u.def.section->owner == NULL in xcoff_post_gc_symbol()
3366 || (h->root.u.def.section->owner->xvec in xcoff_post_gc_symbol()
3378 if (h->root.type == bfd_link_hash_common in xcoff_post_gc_symbol()
3379 && h->root.u.c.p->section->size == 0) in xcoff_post_gc_symbol()
3381 BFD_ASSERT (bfd_is_com_section (h->root.u.c.p->section)); in xcoff_post_gc_symbol()
3382 h->root.u.c.p->section->size = h->root.u.c.size; in xcoff_post_gc_symbol()
3706 hsym->ldsym, hsym->root.root.string)) in bfd_xcoff_size_dynamic_sections()
3712 hsym->root.type = bfd_link_hash_defined; in bfd_xcoff_size_dynamic_sections()
3713 hsym->root.u.def.value = 0; in bfd_xcoff_size_dynamic_sections()
4012 switch (h->root.type) in xcoff_symbol_section()
4016 return h->root.u.def.section; in xcoff_symbol_section()
4019 return h->root.u.c.p->section; in xcoff_symbol_section()
4067 reference_bfd, h->root.root.string); in xcoff_create_ldrel()
4240 if (h->root.type == bfd_link_hash_defined in xcoff_link_input_bfd()
4241 || h->root.type == bfd_link_hash_defweak) in xcoff_link_input_bfd()
4242 impbfd = h->root.u.def.section->owner; in xcoff_link_input_bfd()
4243 else if (h->root.type == bfd_link_hash_undefined in xcoff_link_input_bfd()
4244 || h->root.type == bfd_link_hash_undefweak) in xcoff_link_input_bfd()
4245 impbfd = h->root.u.undef.abfd; in xcoff_link_input_bfd()
4270 && (h->root.type == bfd_link_hash_defined in xcoff_link_input_bfd()
4271 || h->root.type == bfd_link_hash_defweak)) in xcoff_link_input_bfd()
4274 h->root.u.def.section->output_section->target_index; in xcoff_link_input_bfd()
5168 if (h->root.type == bfd_link_hash_warning) in xcoff_write_global_symbol()
5170 h = (struct xcoff_link_hash_entry *) h->root.u.i.link; in xcoff_write_global_symbol()
5171 if (h->root.type == bfd_link_hash_new) in xcoff_write_global_symbol()
5188 if (h->root.type == bfd_link_hash_undefined in xcoff_write_global_symbol()
5189 || h->root.type == bfd_link_hash_undefweak) in xcoff_write_global_symbol()
5195 impbfd = h->root.u.undef.abfd; in xcoff_write_global_symbol()
5198 else if (h->root.type == bfd_link_hash_defined in xcoff_write_global_symbol()
5199 || h->root.type == bfd_link_hash_defweak) in xcoff_write_global_symbol()
5203 sec = h->root.u.def.section; in xcoff_write_global_symbol()
5206 + h->root.u.def.value); in xcoff_write_global_symbol()
5239 if ((h->root.type == bfd_link_hash_defined in xcoff_write_global_symbol()
5240 || h->root.type == bfd_link_hash_defweak) in xcoff_write_global_symbol()
5241 && (h->root.u.def.value != 0)) in xcoff_write_global_symbol()
5284 if (h->root.type == bfd_link_hash_defined in xcoff_write_global_symbol()
5285 && (h->root.u.def.section in xcoff_write_global_symbol()
5292 p = h->root.u.def.section->contents + h->root.u.def.value; in xcoff_write_global_symbol()
5387 &irsym, h->root.root.string); in xcoff_write_global_symbol()
5435 && h->root.type == bfd_link_hash_defined in xcoff_write_global_symbol()
5436 && (h->root.u.def.section in xcoff_write_global_symbol()
5462 sec = h->root.u.def.section; in xcoff_write_global_symbol()
5465 p = sec->contents + h->root.u.def.value; in xcoff_write_global_symbol()
5469 && (hentry->root.type == bfd_link_hash_defined in xcoff_write_global_symbol()
5470 || hentry->root.type == bfd_link_hash_defweak)); in xcoff_write_global_symbol()
5471 esec = hentry->root.u.def.section; in xcoff_write_global_symbol()
5476 + h->root.u.def.value); in xcoff_write_global_symbol()
5496 + hentry->root.u.def.value), in xcoff_write_global_symbol()
5508 + hentry->root.u.def.value), in xcoff_write_global_symbol()
5520 + h->root.u.def.value in xcoff_write_global_symbol()
5542 && bfd_hash_lookup (flinfo->info->keep_hash, h->root.root.string, in xcoff_write_global_symbol()
5561 h->root.root.string); in xcoff_write_global_symbol()
5565 if (h->root.type == bfd_link_hash_undefined in xcoff_write_global_symbol()
5566 || h->root.type == bfd_link_hash_undefweak) in xcoff_write_global_symbol()
5570 if (h->root.type == bfd_link_hash_undefweak in xcoff_write_global_symbol()
5577 else if ((h->root.type == bfd_link_hash_defined in xcoff_write_global_symbol()
5578 || h->root.type == bfd_link_hash_defweak) in xcoff_write_global_symbol()
5581 BFD_ASSERT (bfd_is_abs_section (h->root.u.def.section)); in xcoff_write_global_symbol()
5582 isym.n_value = h->root.u.def.value; in xcoff_write_global_symbol()
5584 if (h->root.type == bfd_link_hash_undefweak in xcoff_write_global_symbol()
5591 else if (h->root.type == bfd_link_hash_defined in xcoff_write_global_symbol()
5592 || h->root.type == bfd_link_hash_defweak) in xcoff_write_global_symbol()
5596 isym.n_value = (h->root.u.def.section->output_section->vma in xcoff_write_global_symbol()
5597 + h->root.u.def.section->output_offset in xcoff_write_global_symbol()
5598 + h->root.u.def.value); in xcoff_write_global_symbol()
5599 if (bfd_is_abs_section (h->root.u.def.section->output_section)) in xcoff_write_global_symbol()
5602 isym.n_scnum = h->root.u.def.section->output_section->target_index; in xcoff_write_global_symbol()
5620 else if (h->root.type == bfd_link_hash_common) in xcoff_write_global_symbol()
5622 isym.n_value = (h->root.u.c.p->section->output_section->vma in xcoff_write_global_symbol()
5623 + h->root.u.c.p->section->output_offset); in xcoff_write_global_symbol()
5624 isym.n_scnum = h->root.u.c.p->section->output_section->target_index; in xcoff_write_global_symbol()
5627 aux.x_csect.x_scnlen.l = h->root.u.c.size; in xcoff_write_global_symbol()
5643 if ((h->root.type == bfd_link_hash_defined in xcoff_write_global_symbol()
5644 || h->root.type == bfd_link_hash_defweak) in xcoff_write_global_symbol()
5650 if (h->root.type == bfd_link_hash_undefweak in xcoff_write_global_symbol()
5720 if (h->root.type == bfd_link_hash_defined in xcoff_reloc_link_order()
5721 || h->root.type == bfd_link_hash_defweak) in xcoff_reloc_link_order()
5722 hval = h->root.u.def.value; in xcoff_reloc_link_order()
6284 (info, (*rel_hash)->root.root.string, in _bfd_xcoff_bfd_final_link()
6300 (info, toc_rel_hash->h->root.root.string, in _bfd_xcoff_bfd_final_link()