Lines Matching refs:root
75 h->root.type = bfd_link_hash_new; in _bfd_elf_define_linkage_sym()
78 bh = &h->root; in _bfd_elf_define_linkage_sym()
421 if (h->root.type != bfd_link_hash_undefined in bfd_elf_link_record_dynamic_symbol()
422 && h->root.type != bfd_link_hash_undefweak) in bfd_elf_link_record_dynamic_symbol()
447 name = h->root.root.string; in bfd_elf_link_record_dynamic_symbol()
488 && h->root.type == bfd_link_hash_new in bfd_elf_link_mark_dynamic_symbol()
489 && (*d->match) (&d->head, NULL, h->root.root.string))) in bfd_elf_link_mark_dynamic_symbol()
515 switch (h->root.type) in bfd_elf_record_link_assignment()
526 h->root.type = bfd_link_hash_new; in bfd_elf_record_link_assignment()
527 if (h->root.u.undef.next != NULL || htab->root.undefs_tail == &h->root) in bfd_elf_record_link_assignment()
528 bfd_link_repair_undef_list (&htab->root); in bfd_elf_record_link_assignment()
539 while (hv->root.type == bfd_link_hash_indirect in bfd_elf_record_link_assignment()
540 || hv->root.type == bfd_link_hash_warning) in bfd_elf_record_link_assignment()
541 hv = (struct elf_link_hash_entry *) hv->root.u.i.link; in bfd_elf_record_link_assignment()
544 h->root.type = bfd_link_hash_undefined; in bfd_elf_record_link_assignment()
545 hv->root.type = bfd_link_hash_indirect; in bfd_elf_record_link_assignment()
546 hv->root.u.i.link = (struct bfd_link_hash_entry *) h; in bfd_elf_record_link_assignment()
561 h->root.type = bfd_link_hash_undefined; in bfd_elf_record_link_assignment()
936 while (h->root.type == bfd_link_hash_indirect in _bfd_elf_merge_symbol()
937 || h->root.type == bfd_link_hash_warning) in _bfd_elf_merge_symbol()
938 h = (struct elf_link_hash_entry *) h->root.u.i.link; in _bfd_elf_merge_symbol()
945 switch (h->root.type) in _bfd_elf_merge_symbol()
952 oldbfd = h->root.u.undef.abfd; in _bfd_elf_merge_symbol()
957 oldbfd = h->root.u.def.section->owner; in _bfd_elf_merge_symbol()
958 oldsec = h->root.u.def.section; in _bfd_elf_merge_symbol()
962 oldbfd = h->root.u.c.p->section->owner; in _bfd_elf_merge_symbol()
963 oldsec = h->root.u.c.p->section; in _bfd_elf_merge_symbol()
965 *pold_alignment = h->root.u.c.p->alignment_power; in _bfd_elf_merge_symbol()
973 oldweak = (h->root.type == bfd_link_hash_defweak in _bfd_elf_merge_symbol()
974 || h->root.type == bfd_link_hash_undefweak); in _bfd_elf_merge_symbol()
1021 if (h->root.type == bfd_link_hash_new) in _bfd_elf_merge_symbol()
1054 olddef = (h->root.type != bfd_link_hash_undefined in _bfd_elf_merge_symbol()
1055 && h->root.type != bfd_link_hash_undefweak in _bfd_elf_merge_symbol()
1056 && h->root.type != bfd_link_hash_common); in _bfd_elf_merge_symbol()
1074 && (((olddef || h->root.type == bfd_link_hash_common) in _bfd_elf_merge_symbol()
1123 tbfd, tsec, ntbfd, ntsec, h->root.root.string); in _bfd_elf_merge_symbol()
1128 tbfd, ntbfd, h->root.root.string); in _bfd_elf_merge_symbol()
1133 tbfd, tsec, ntbfd, h->root.root.string); in _bfd_elf_merge_symbol()
1138 tbfd, ntbfd, ntsec, h->root.root.string); in _bfd_elf_merge_symbol()
1170 if (hi->root.type == bfd_link_hash_indirect) in _bfd_elf_merge_symbol()
1178 hi->root.type = h->root.type; in _bfd_elf_merge_symbol()
1179 h->root.type = bfd_link_hash_indirect; in _bfd_elf_merge_symbol()
1182 h->root.u.i.link = (struct bfd_link_hash_entry *) hi; in _bfd_elf_merge_symbol()
1212 if (h->root.u.undef.next || info->hash->undefs_tail == &h->root) in _bfd_elf_merge_symbol()
1214 h->root.type = bfd_link_hash_undefined; in _bfd_elf_merge_symbol()
1215 h->root.u.undef.abfd = abfd; in _bfd_elf_merge_symbol()
1219 h->root.type = bfd_link_hash_new; in _bfd_elf_merge_symbol()
1220 h->root.u.undef.abfd = NULL; in _bfd_elf_merge_symbol()
1267 && h->root.type == bfd_link_hash_undefined)) in _bfd_elf_merge_symbol()
1274 || h->root.type == bfd_link_hash_undefined) in _bfd_elf_merge_symbol()
1313 && h->root.type == bfd_link_hash_defined in _bfd_elf_merge_symbol()
1315 && (h->root.u.def.section->flags & SEC_ALLOC) != 0 in _bfd_elf_merge_symbol()
1316 && (h->root.u.def.section->flags & SEC_LOAD) == 0 in _bfd_elf_merge_symbol()
1347 (info, &h->root, abfd, bfd_link_hash_common, sym->st_size))) in _bfd_elf_merge_symbol()
1373 || (h->root.type == bfd_link_hash_common in _bfd_elf_merge_symbol()
1389 if (h->root.type == bfd_link_hash_common) in _bfd_elf_merge_symbol()
1400 && h->root.type == bfd_link_hash_common) in _bfd_elf_merge_symbol()
1459 h->root.type = bfd_link_hash_undefined; in _bfd_elf_merge_symbol()
1460 h->root.u.undef.abfd = h->root.u.def.section->owner; in _bfd_elf_merge_symbol()
1482 if (hi->root.type == bfd_link_hash_indirect) in _bfd_elf_merge_symbol()
1505 (info, &h->root, abfd, bfd_link_hash_common, sym->st_size))) in _bfd_elf_merge_symbol()
1517 *pold_alignment = h->root.u.def.section->alignment_power; in _bfd_elf_merge_symbol()
1522 h->root.type = bfd_link_hash_undefined; in _bfd_elf_merge_symbol()
1523 h->root.u.undef.abfd = h->root.u.def.section->owner; in _bfd_elf_merge_symbol()
1528 if (hi->root.type == bfd_link_hash_indirect) in _bfd_elf_merge_symbol()
1539 flip->root.type = h->root.type; in _bfd_elf_merge_symbol()
1540 flip->root.u.undef.abfd = h->root.u.undef.abfd; in _bfd_elf_merge_symbol()
1541 h->root.type = bfd_link_hash_indirect; in _bfd_elf_merge_symbol()
1542 h->root.u.i.link = (struct bfd_link_hash_entry *) flip; in _bfd_elf_merge_symbol()
1620 bh = &hi->root; in _bfd_elf_add_default_symbol()
1647 while (hi->root.type == bfd_link_hash_indirect in _bfd_elf_add_default_symbol()
1648 || hi->root.type == bfd_link_hash_warning) in _bfd_elf_add_default_symbol()
1649 hi = (struct elf_link_hash_entry *) hi->root.u.i.link; in _bfd_elf_add_default_symbol()
1651 h->root.type = bfd_link_hash_indirect; in _bfd_elf_add_default_symbol()
1652 h->root.u.i.link = (struct bfd_link_hash_entry *) hi; in _bfd_elf_add_default_symbol()
1671 if (hi->root.type == bfd_link_hash_warning) in _bfd_elf_add_default_symbol()
1672 hi = (struct elf_link_hash_entry *) hi->root.u.i.link; in _bfd_elf_add_default_symbol()
1678 if (hi->root.type == bfd_link_hash_indirect) in _bfd_elf_add_default_symbol()
1682 ht = (struct elf_link_hash_entry *) hi->root.u.i.link; in _bfd_elf_add_default_symbol()
1738 if (hi->root.type != bfd_link_hash_defined in _bfd_elf_add_default_symbol()
1739 && hi->root.type != bfd_link_hash_defweak) in _bfd_elf_add_default_symbol()
1746 bh = &hi->root; in _bfd_elf_add_default_symbol()
1757 if (hi->root.type == bfd_link_hash_indirect) in _bfd_elf_add_default_symbol()
1794 if (h->root.type == bfd_link_hash_indirect) in _bfd_elf_export_symbol()
1804 h->root.root.string)) in _bfd_elf_export_symbol()
1931 p = strchr (h->root.root.string, ELF_VER_CHR); in _bfd_elf_link_assign_sym_version()
1965 len = p - h->root.root.string; in _bfd_elf_link_assign_sym_version()
1972 memcpy (alc, h->root.root.string, len - 1); in _bfd_elf_link_assign_sym_version()
2045 info->output_bfd, h->root.root.string); in _bfd_elf_link_assign_sym_version()
2063 h->root.root.string, &hide); in _bfd_elf_link_assign_sym_version()
2369 && h->root.type == bfd_link_hash_undefweak) in _bfd_elf_link_hash_fixup_symbol()
2393 while (h->root.type == bfd_link_hash_indirect) in _bfd_elf_fix_symbol_flags()
2394 h = (struct elf_link_hash_entry *) h->root.u.i.link; in _bfd_elf_fix_symbol_flags()
2396 if (h->root.type != bfd_link_hash_defined in _bfd_elf_fix_symbol_flags()
2397 && h->root.type != bfd_link_hash_defweak) in _bfd_elf_fix_symbol_flags()
2404 if (h->root.u.def.section->owner != NULL in _bfd_elf_fix_symbol_flags()
2405 && (bfd_get_flavour (h->root.u.def.section->owner) in _bfd_elf_fix_symbol_flags()
2434 if ((h->root.type == bfd_link_hash_defined in _bfd_elf_fix_symbol_flags()
2435 || h->root.type == bfd_link_hash_defweak) in _bfd_elf_fix_symbol_flags()
2437 && (h->root.u.def.section->owner != NULL in _bfd_elf_fix_symbol_flags()
2438 ? (bfd_get_flavour (h->root.u.def.section->owner) in _bfd_elf_fix_symbol_flags()
2440 : (bfd_is_abs_section (h->root.u.def.section) in _bfd_elf_fix_symbol_flags()
2456 if (h->root.type == bfd_link_hash_defined in _bfd_elf_fix_symbol_flags()
2460 && (h->root.u.def.section->owner->flags & (DYNAMIC | BFD_PLUGIN)) == 0) in _bfd_elf_fix_symbol_flags()
2486 && h->root.type == bfd_link_hash_undefweak) in _bfd_elf_fix_symbol_flags()
2503 while (h->root.type == bfd_link_hash_indirect) in _bfd_elf_fix_symbol_flags()
2504 h = (struct elf_link_hash_entry *) h->root.u.i.link; in _bfd_elf_fix_symbol_flags()
2506 BFD_ASSERT (h->root.type == bfd_link_hash_defined in _bfd_elf_fix_symbol_flags()
2507 || h->root.type == bfd_link_hash_defweak); in _bfd_elf_fix_symbol_flags()
2509 BFD_ASSERT (weakdef->root.type == bfd_link_hash_defined in _bfd_elf_fix_symbol_flags()
2510 || weakdef->root.type == bfd_link_hash_defweak); in _bfd_elf_fix_symbol_flags()
2533 if (h->root.type == bfd_link_hash_indirect) in _bfd_elf_adjust_dynamic_symbol()
2619 h->root.root.string); in _bfd_elf_adjust_dynamic_symbol()
2642 asection *sec = h->root.u.def.section; in _bfd_elf_adjust_dynamic_copy()
2651 while ((h->root.u.def.value & mask) != 0) in _bfd_elf_adjust_dynamic_copy()
2670 h->root.u.def.section = dynbss; in _bfd_elf_adjust_dynamic_copy()
2671 h->root.u.def.value = dynbss->size; in _bfd_elf_adjust_dynamic_copy()
2687 if ((h->root.type == bfd_link_hash_defined in _bfd_elf_link_sec_merge_syms()
2688 || h->root.type == bfd_link_hash_defweak) in _bfd_elf_link_sec_merge_syms()
2689 && ((sec = h->root.u.def.section)->flags & SEC_MERGE) in _bfd_elf_link_sec_merge_syms()
2694 h->root.u.def.value = in _bfd_elf_link_sec_merge_syms()
2696 &h->root.u.def.section, in _bfd_elf_link_sec_merge_syms()
2698 h->root.u.def.value); in _bfd_elf_link_sec_merge_syms()
2720 while (h->root.type == bfd_link_hash_indirect in _bfd_elf_dynamic_symbol_p()
2721 || h->root.type == bfd_link_hash_warning) in _bfd_elf_dynamic_symbol_p()
2722 h = (struct elf_link_hash_entry *) h->root.u.i.link; in _bfd_elf_dynamic_symbol_p()
3106 vdiff = h1->root.u.def.value - h2->root.u.def.value; in elf_sort_symbol()
3111 long sdiff = h1->root.u.def.section->id - h2->root.u.def.section->id; in elf_sort_symbol()
3413 && (h->root.type == bfd_link_hash_defined in elf_link_add_object_symbols()
3414 || h->root.type == bfd_link_hash_defweak)) in elf_link_add_object_symbols()
3741 for (entsize = 0, i = 0; i < htab->root.table.size; i++) in elf_link_add_object_symbols()
3746 for (p = htab->root.table.table[i]; p != NULL; p = p->next) in elf_link_add_object_symbols()
3749 entsize += htab->root.table.entsize; in elf_link_add_object_symbols()
3750 if (h->root.type == bfd_link_hash_warning) in elf_link_add_object_symbols()
3751 entsize += htab->root.table.entsize; in elf_link_add_object_symbols()
3755 tabsize = htab->root.table.size * sizeof (struct bfd_hash_entry *); in elf_link_add_object_symbols()
3762 alloc_mark = bfd_hash_allocate (&htab->root.table, 1); in elf_link_add_object_symbols()
3774 memcpy (old_tab, htab->root.table.table, tabsize); in elf_link_add_object_symbols()
3775 old_undefs = htab->root.undefs; in elf_link_add_object_symbols()
3776 old_undefs_tail = htab->root.undefs_tail; in elf_link_add_object_symbols()
3777 old_table = htab->root.table.table; in elf_link_add_object_symbols()
3778 old_size = htab->root.table.size; in elf_link_add_object_symbols()
3779 old_count = htab->root.table.count; in elf_link_add_object_symbols()
3783 for (i = 0; i < htab->root.table.size; i++) in elf_link_add_object_symbols()
3788 for (p = htab->root.table.table[i]; p != NULL; p = p->next) in elf_link_add_object_symbols()
3790 memcpy (old_ent, p, htab->root.table.entsize); in elf_link_add_object_symbols()
3791 old_ent = (char *) old_ent + htab->root.table.entsize; in elf_link_add_object_symbols()
3793 if (h->root.type == bfd_link_hash_warning) in elf_link_add_object_symbols()
3795 memcpy (old_ent, h->root.u.i.link, htab->root.table.entsize); in elf_link_add_object_symbols()
3796 old_ent = (char *) old_ent + htab->root.table.entsize; in elf_link_add_object_symbols()
4059 newname = (char *) bfd_hash_allocate (&htab->root.table, newlen); in elf_link_add_object_symbols()
4099 while (h->root.type == bfd_link_hash_indirect in elf_link_add_object_symbols()
4100 || h->root.type == bfd_link_hash_warning) in elf_link_add_object_symbols()
4101 h = (struct elf_link_hash_entry *) h->root.u.i.link; in elf_link_add_object_symbols()
4118 while (h->root.type == bfd_link_hash_indirect in elf_link_add_object_symbols()
4119 || h->root.type == bfd_link_hash_warning) in elf_link_add_object_symbols()
4120 h = (struct elf_link_hash_entry *) h->root.u.i.link; in elf_link_add_object_symbols()
4152 && h->root.type == bfd_link_hash_common) in elf_link_add_object_symbols()
4165 h->root.u.c.p->alignment_power = align; in elf_link_add_object_symbols()
4167 h->root.u.c.p->alignment_power = old_alignment; in elf_link_add_object_symbols()
4235 || (!override && h->root.type == bfd_link_hash_common)) in elf_link_add_object_symbols()
4246 && h->root.type != bfd_link_hash_common) in elf_link_add_object_symbols()
4254 BFD_ASSERT (h->root.type == bfd_link_hash_defined in elf_link_add_object_symbols()
4255 || h->root.type == bfd_link_hash_defweak); in elf_link_add_object_symbols()
4257 symbol_align = ffs (h->root.u.def.value) - 1; in elf_link_add_object_symbols()
4258 if (h->root.u.def.section->owner != NULL in elf_link_add_object_symbols()
4259 && (h->root.u.def.section->owner->flags & DYNAMIC) == 0) in elf_link_add_object_symbols()
4261 normal_align = h->root.u.def.section->alignment_power; in elf_link_add_object_symbols()
4288 common_bfd, h->root.u.def.section, in elf_link_add_object_symbols()
4323 if (h->root.type == bfd_link_hash_common) in elf_link_add_object_symbols()
4324 h->size = h->root.u.c.size; in elf_link_add_object_symbols()
4328 || (old_weak && h->root.type == bfd_link_hash_common) in elf_link_add_object_symbols()
4428 h->root.root.string); in elf_link_add_object_symbols()
4478 htab->root.table.table = old_table; in elf_link_add_object_symbols()
4479 htab->root.table.size = old_size; in elf_link_add_object_symbols()
4480 htab->root.table.count = old_count; in elf_link_add_object_symbols()
4481 memcpy (htab->root.table.table, old_tab, tabsize); in elf_link_add_object_symbols()
4482 htab->root.undefs = old_undefs; in elf_link_add_object_symbols()
4483 htab->root.undefs_tail = old_undefs_tail; in elf_link_add_object_symbols()
4485 for (i = 0; i < htab->root.table.size; i++) in elf_link_add_object_symbols()
4492 for (p = htab->root.table.table[i]; p != NULL; p = p->next) in elf_link_add_object_symbols()
4495 if (h->root.type == bfd_link_hash_warning) in elf_link_add_object_symbols()
4496 h = (struct elf_link_hash_entry *) h->root.u.i.link; in elf_link_add_object_symbols()
4505 if (h->root.type == bfd_link_hash_common) in elf_link_add_object_symbols()
4507 size = h->root.u.c.size; in elf_link_add_object_symbols()
4508 alignment_power = h->root.u.c.p->alignment_power; in elf_link_add_object_symbols()
4515 memcpy (p, old_ent, htab->root.table.entsize); in elf_link_add_object_symbols()
4516 old_ent = (char *) old_ent + htab->root.table.entsize; in elf_link_add_object_symbols()
4518 if (h->root.type == bfd_link_hash_warning) in elf_link_add_object_symbols()
4520 memcpy (h->root.u.i.link, old_ent, htab->root.table.entsize); in elf_link_add_object_symbols()
4521 old_ent = (char *) old_ent + htab->root.table.entsize; in elf_link_add_object_symbols()
4522 h = (struct elf_link_hash_entry *) h->root.u.i.link; in elf_link_add_object_symbols()
4524 if (h->root.type == bfd_link_hash_common) in elf_link_add_object_symbols()
4526 if (size > h->root.u.c.size) in elf_link_add_object_symbols()
4527 h->root.u.c.size = size; in elf_link_add_object_symbols()
4528 if (alignment_power > h->root.u.c.p->alignment_power) in elf_link_add_object_symbols()
4529 h->root.u.c.p->alignment_power = alignment_power; in elf_link_add_object_symbols()
4540 objalloc_free_block ((struct objalloc *) htab->root.table.memory, in elf_link_add_object_symbols()
4566 p = strchr (h->root.root.string, ELF_VER_CHR); in elf_link_add_object_symbols()
4568 || (h->root.type != bfd_link_hash_defined in elf_link_add_object_symbols()
4569 && h->root.type != bfd_link_hash_defweak)) in elf_link_add_object_symbols()
4572 amt = p - h->root.root.string; in elf_link_add_object_symbols()
4576 memcpy (shortname, h->root.root.string, amt); in elf_link_add_object_symbols()
4580 bfd_link_hash_lookup (&htab->root, shortname, in elf_link_add_object_symbols()
4583 && hi->root.type == h->root.type in elf_link_add_object_symbols()
4584 && hi->root.u.def.value == h->root.u.def.value in elf_link_add_object_symbols()
4585 && hi->root.u.def.section == h->root.u.def.section) in elf_link_add_object_symbols()
4588 hi->root.type = bfd_link_hash_indirect; in elf_link_add_object_symbols()
4589 hi->root.u.i.link = (struct bfd_link_hash_entry *) h; in elf_link_add_object_symbols()
4642 && h->root.type == bfd_link_hash_defined in elf_link_add_object_symbols()
4666 BFD_ASSERT (hlook->root.type == bfd_link_hash_defined in elf_link_add_object_symbols()
4667 || hlook->root.type == bfd_link_hash_defweak in elf_link_add_object_symbols()
4668 || hlook->root.type == bfd_link_hash_common in elf_link_add_object_symbols()
4669 || hlook->root.type == bfd_link_hash_indirect); in elf_link_add_object_symbols()
4670 slook = hlook->root.u.def.section; in elf_link_add_object_symbols()
4671 vlook = hlook->root.u.def.value; in elf_link_add_object_symbols()
4680 vdiff = vlook - h->root.u.def.value; in elf_link_add_object_symbols()
4687 long sdiff = slook->id - h->root.u.def.section->id; in elf_link_add_object_symbols()
4708 if (h->root.u.def.section != slook in elf_link_add_object_symbols()
4709 || h->root.u.def.value != vlook) in elf_link_add_object_symbols()
4721 if (h->root.u.def.section != slook in elf_link_add_object_symbols()
4722 || h->root.u.def.value != vlook) in elf_link_add_object_symbols()
5013 if (h->root.type == bfd_link_hash_common) in elf_link_add_archive_symbols()
5030 else if (h->root.type != bfd_link_hash_undefined) in elf_link_add_archive_symbols()
5032 if (h->root.type != bfd_link_hash_undefweak) in elf_link_add_archive_symbols()
5133 name = h->root.root.string; in elf_collect_hash_codes()
5205 name = h->root.root.string; in elf_collect_gnu_hash_codes()
5282 || h->root.type == bfd_link_hash_undefined in _bfd_elf_hash_symbol()
5283 || h->root.type == bfd_link_hash_undefweak in _bfd_elf_hash_symbol()
5284 || ((h->root.type == bfd_link_hash_defined in _bfd_elf_hash_symbol()
5285 || h->root.type == bfd_link_hash_defweak) in _bfd_elf_hash_symbol()
5286 && h->root.u.def.section->output_section == NULL)); in _bfd_elf_hash_symbol()
5476 if (h && (h->root.type == bfd_link_hash_defined in bfd_elf_stack_segment_size()
5477 || h->root.type == bfd_link_hash_defweak) in bfd_elf_stack_segment_size()
5486 else if (h->root.u.def.section != bfd_abs_section_ptr) in bfd_elf_stack_segment_size()
5490 info->stacksize = h->root.u.def.value; in bfd_elf_stack_segment_size()
5499 if (h && (h->root.type == bfd_link_hash_undefined in bfd_elf_stack_segment_size()
5500 || h->root.type == bfd_link_hash_undefweak)) in bfd_elf_stack_segment_size()
5745 || (newh->root.type != bfd_link_hash_defined in bfd_elf_size_dynamic_sections()
5746 && newh->root.type != bfd_link_hash_defweak)) in bfd_elf_size_dynamic_sections()
5761 && (newh->root.type == bfd_link_hash_defined in bfd_elf_size_dynamic_sections()
5762 || newh->root.type == bfd_link_hash_defweak)) in bfd_elf_size_dynamic_sections()
6760 if (ind->root.type != bfd_link_hash_indirect) in _bfd_elf_link_hash_copy_indirect()
6839 ret = _bfd_link_hash_table_init (&table->root, abfd, newfunc, entsize); in _bfd_elf_link_hash_table_init()
6841 table->root.type = bfd_link_elf_hash_table; in _bfd_elf_link_hash_table_init()
6866 ret->root.hash_table_free = _bfd_elf_link_hash_table_free; in _bfd_elf_link_hash_table_create()
6868 return &ret->root; in _bfd_elf_link_hash_table_create()
7507 while (h->root.type == bfd_link_hash_indirect in set_symbol_value()
7508 || h->root.type == bfd_link_hash_warning) in set_symbol_value()
7509 h = (struct elf_link_hash_entry *) h->root.u.i.link; in set_symbol_value()
7510 h->root.type = bfd_link_hash_defined; in set_symbol_value()
7511 h->root.u.def.value = val; in set_symbol_value()
7512 h->root.u.def.section = bfd_abs_section_ptr; in set_symbol_value()
7573 global_entry->root.string, (unsigned long) *result); in resolve_symbol()
8484 while (h->root.type == bfd_link_hash_indirect) in elf_link_check_versioned_symbol()
8485 h = (struct elf_link_hash_entry *) h->root.u.i.link; in elf_link_check_versioned_symbol()
8487 switch (h->root.type) in elf_link_check_versioned_symbol()
8495 abfd = h->root.u.undef.abfd; in elf_link_check_versioned_symbol()
8503 abfd = h->root.u.def.section->owner; in elf_link_check_versioned_symbol()
8507 abfd = h->root.u.c.p->section->owner; in elf_link_check_versioned_symbol()
8589 if (strcmp (name, h->root.root.string) != 0) in elf_link_check_versioned_symbol()
8642 if (h->root.type == bfd_link_hash_warning) in elf_link_output_extsym()
8644 h = (struct elf_link_hash_entry *) h->root.u.i.link; in elf_link_output_extsym()
8645 if (h->root.type == bfd_link_hash_new) in elf_link_output_extsym()
8655 && !((h->root.type == bfd_link_hash_defined in elf_link_output_extsym()
8656 || h->root.type == bfd_link_hash_defweak) in elf_link_output_extsym()
8657 && h->root.u.def.section->output_section != NULL)) in elf_link_output_extsym()
8684 if (h->root.type == bfd_link_hash_undefined) in elf_link_output_extsym()
8706 (flinfo->info, h->root.root.string, in elf_link_output_extsym()
8707 h->ref_regular ? NULL : h->root.u.undef.abfd, in elf_link_output_extsym()
8735 while (hi->root.type == bfd_link_hash_indirect) in elf_link_output_extsym()
8736 hi = (struct elf_link_hash_entry *) hi->root.u.i.link; in elf_link_output_extsym()
8745 if (hi->root.u.def.section != bfd_abs_section_ptr) in elf_link_output_extsym()
8746 def_bfd = hi->root.u.def.section->owner; in elf_link_output_extsym()
8748 h->root.root.string); in elf_link_output_extsym()
8762 || h->root.type == bfd_link_hash_new) in elf_link_output_extsym()
8770 h->root.root.string, FALSE, FALSE) == NULL) in elf_link_output_extsym()
8772 else if ((h->root.type == bfd_link_hash_defined in elf_link_output_extsym()
8773 || h->root.type == bfd_link_hash_defweak) in elf_link_output_extsym()
8775 && discarded_section (h->root.u.def.section)) in elf_link_output_extsym()
8776 || (h->root.u.def.section->owner != NULL in elf_link_output_extsym()
8777 && (h->root.u.def.section->owner->flags & BFD_PLUGIN) != 0))) in elf_link_output_extsym()
8779 else if ((h->root.type == bfd_link_hash_undefined in elf_link_output_extsym()
8780 || h->root.type == bfd_link_hash_undefweak) in elf_link_output_extsym()
8781 && h->root.u.undef.abfd != NULL in elf_link_output_extsym()
8782 && (h->root.u.undef.abfd->flags & BFD_PLUGIN) != 0) in elf_link_output_extsym()
8808 else if (h->root.type == bfd_link_hash_undefweak in elf_link_output_extsym()
8809 || h->root.type == bfd_link_hash_defweak) in elf_link_output_extsym()
8815 switch (h->root.type) in elf_link_output_extsym()
8832 input_sec = h->root.u.def.section; in elf_link_output_extsym()
8864 sym.st_value = h->root.u.def.value + input_sec->output_offset; in elf_link_output_extsym()
8893 input_sec = h->root.u.c.p->section; in elf_link_output_extsym()
8895 sym.st_value = 1 << h->root.u.c.p->alignment_power; in elf_link_output_extsym()
8920 || h->root.type != bfd_link_hash_undefweak)) in elf_link_output_extsym()
8971 && h->root.type == bfd_link_hash_undefined in elf_link_output_extsym()
8982 (*_bfd_error_handler) (msg, flinfo->output_bfd, h->root.root.string); in elf_link_output_extsym()
9002 char *p = strrchr (h->root.root.string, ELF_VER_CHR); in elf_link_output_extsym()
9008 flinfo->output_bfd, h->root.root.string); in elf_link_output_extsym()
9083 ret = elf_link_output_sym (flinfo, h->root.root.string, &sym, input_sec, h); in elf_link_output_extsym()
9449 while (h->root.type == bfd_link_hash_indirect in elf_link_input_bfd()
9450 || h->root.type == bfd_link_hash_warning) in elf_link_input_bfd()
9451 h = (struct elf_link_hash_entry *) h->root.u.i.link; in elf_link_input_bfd()
9616 while (h->root.type == bfd_link_hash_indirect in elf_link_input_bfd()
9617 || h->root.type == bfd_link_hash_warning) in elf_link_input_bfd()
9618 h = (struct elf_link_hash_entry *) h->root.u.i.link; in elf_link_input_bfd()
9623 if (h->root.type == bfd_link_hash_defined in elf_link_input_bfd()
9624 || h->root.type == bfd_link_hash_defweak) in elf_link_input_bfd()
9625 ps = &h->root.u.def.section; in elf_link_input_bfd()
9627 sym_name = h->root.root.string; in elf_link_input_bfd()
9826 while (rh->root.type == bfd_link_hash_indirect in elf_link_input_bfd()
9827 || rh->root.type == bfd_link_hash_warning) in elf_link_input_bfd()
9828 rh = (struct elf_link_hash_entry *) rh->root.u.i.link; in elf_link_input_bfd()
10116 && (h->root.type == bfd_link_hash_defined in elf_reloc_link_order()
10117 || h->root.type == bfd_link_hash_defweak)) in elf_reloc_link_order()
10121 section = h->root.u.def.section; in elf_reloc_link_order()
11233 && (h->root.type == bfd_link_hash_defined in bfd_elf_final_link()
11234 || h->root.type == bfd_link_hash_defweak)) in bfd_elf_final_link()
11236 dyn.d_un.d_ptr = h->root.u.def.value; in bfd_elf_final_link()
11237 o = h->root.u.def.section; in bfd_elf_final_link()
11616 switch (h->root.type) in _bfd_elf_gc_mark_hook()
11620 return h->root.u.def.section; in _bfd_elf_gc_mark_hook()
11623 return h->root.u.c.p->section; in _bfd_elf_gc_mark_hook()
11632 if (strncmp (h->root.root.string, "__start_", 8) == 0) in _bfd_elf_gc_mark_hook()
11633 sec_name = h->root.root.string + 8; in _bfd_elf_gc_mark_hook()
11634 else if (strncmp (h->root.root.string, "__stop_", 7) == 0) in _bfd_elf_gc_mark_hook()
11635 sec_name = h->root.root.string + 7; in _bfd_elf_gc_mark_hook()
11682 while (h->root.type == bfd_link_hash_indirect in _bfd_elf_gc_mark_rsec()
11683 || h->root.type == bfd_link_hash_warning) in _bfd_elf_gc_mark_rsec()
11684 h = (struct elf_link_hash_entry *) h->root.u.i.link; in _bfd_elf_gc_mark_rsec()
11887 && (((h->root.type == bfd_link_hash_defined in elf_gc_sweep_symbol()
11888 || h->root.type == bfd_link_hash_defweak) in elf_gc_sweep_symbol()
11890 && h->root.u.def.section->gc_mark)) in elf_gc_sweep_symbol()
11891 || h->root.type == bfd_link_hash_undefined in elf_gc_sweep_symbol()
11892 || h->root.type == bfd_link_hash_undefweak)) in elf_gc_sweep_symbol()
12036 bed = get_elf_backend_data (h->root.u.def.section->owner); in elf_gc_propagate_vtable_entries_used()
12066 BFD_ASSERT (h->root.type == bfd_link_hash_defined in elf_gc_smash_unused_vtentry_relocs()
12067 || h->root.type == bfd_link_hash_defweak); in elf_gc_smash_unused_vtentry_relocs()
12069 sec = h->root.u.def.section; in elf_gc_smash_unused_vtentry_relocs()
12070 hstart = h->root.u.def.value; in elf_gc_smash_unused_vtentry_relocs()
12109 if ((h->root.type == bfd_link_hash_defined in bfd_elf_gc_mark_dynamic_ref_symbol()
12110 || h->root.type == bfd_link_hash_defweak) in bfd_elf_gc_mark_dynamic_ref_symbol()
12119 && (*d->match) (&d->head, NULL, h->root.root.string))) in bfd_elf_gc_mark_dynamic_ref_symbol()
12120 && (strchr (h->root.root.string, ELF_VER_CHR) != NULL in bfd_elf_gc_mark_dynamic_ref_symbol()
12122 h->root.root.string))))) in bfd_elf_gc_mark_dynamic_ref_symbol()
12123 h->root.u.def.section->flags |= SEC_KEEP; in bfd_elf_gc_mark_dynamic_ref_symbol()
12144 && (h->root.type == bfd_link_hash_defined in _bfd_elf_gc_keep()
12145 || h->root.type == bfd_link_hash_defweak) in _bfd_elf_gc_keep()
12146 && !bfd_is_abs_section (h->root.u.def.section)) in _bfd_elf_gc_keep()
12147 h->root.u.def.section->flags |= SEC_KEEP; in _bfd_elf_gc_keep()
12264 && (child->root.type == bfd_link_hash_defined in bfd_elf_gc_record_vtinherit()
12265 || child->root.type == bfd_link_hash_defweak) in bfd_elf_gc_record_vtinherit()
12266 && child->root.u.def.section == sec in bfd_elf_gc_record_vtinherit()
12267 && child->root.u.def.value == offset) in bfd_elf_gc_record_vtinherit()
12326 if (h->root.type == bfd_link_hash_undefined) in bfd_elf_gc_record_vtentry()
12599 while (h->root.type == bfd_link_hash_indirect in bfd_elf_reloc_symbol_deleted_p()
12600 || h->root.type == bfd_link_hash_warning) in bfd_elf_reloc_symbol_deleted_p()
12601 h = (struct elf_link_hash_entry *) h->root.u.i.link; in bfd_elf_reloc_symbol_deleted_p()
12603 if ((h->root.type == bfd_link_hash_defined in bfd_elf_reloc_symbol_deleted_p()
12604 || h->root.type == bfd_link_hash_defweak) in bfd_elf_reloc_symbol_deleted_p()
12605 && (h->root.u.def.section->owner != rcookie->abfd in bfd_elf_reloc_symbol_deleted_p()
12606 || h->root.u.def.section->kept_section != NULL in bfd_elf_reloc_symbol_deleted_p()
12607 || discarded_section (h->root.u.def.section))) in bfd_elf_reloc_symbol_deleted_p()