Lines Matching refs:root
656 if (h->root.type != bfd_link_hash_defined in sh_elf_relax_section()
657 && h->root.type != bfd_link_hash_defweak) in sh_elf_relax_section()
665 symval = (h->root.u.def.value in sh_elf_relax_section()
666 + h->root.u.def.section->output_section->vma in sh_elf_relax_section()
667 + h->root.u.def.section->output_offset); in sh_elf_relax_section()
1329 if ((sym_hash->root.type == bfd_link_hash_defined in sh_elf_relax_delete_bytes()
1330 || sym_hash->root.type == bfd_link_hash_defweak) in sh_elf_relax_delete_bytes()
1331 && sym_hash->root.u.def.section == sec in sh_elf_relax_delete_bytes()
1332 && sym_hash->root.u.def.value > addr in sh_elf_relax_delete_bytes()
1333 && sym_hash->root.u.def.value < toaddr) in sh_elf_relax_delete_bytes()
1335 sym_hash->root.u.def.value -= count; in sh_elf_relax_delete_bytes()
2381 struct elf_link_hash_entry root; member
2419 struct elf_obj_tdata root; member
2456 struct elf_link_hash_table root; member
2497 (&(table)->root, \
2535 ret->datalabel_got.refcount = ret->root.got.refcount; in sh_elf_link_hash_newfunc()
2557 if (!_bfd_elf_link_hash_table_init (&ret->root, abfd, in sh_elf_link_hash_table_create()
2569 return &ret->root.root; in sh_elf_link_hash_table_create()
2685 if (htab->root.dynamic_sections_created) in sh_elf_create_dynamic_sections()
2723 htab->root.hplt = h; in sh_elf_create_dynamic_sections()
2810 BFD_ASSERT (htab->root.dynobj != NULL in sh_elf_adjust_dynamic_symbol()
2826 && h->root.type == bfd_link_hash_undefweak)) in sh_elf_adjust_dynamic_symbol()
2847 BFD_ASSERT (h->u.weakdef->root.type == bfd_link_hash_defined in sh_elf_adjust_dynamic_symbol()
2848 || h->u.weakdef->root.type == bfd_link_hash_defweak); in sh_elf_adjust_dynamic_symbol()
2849 h->root.u.def.section = h->u.weakdef->root.u.def.section; in sh_elf_adjust_dynamic_symbol()
2850 h->root.u.def.value = h->u.weakdef->root.u.def.value; in sh_elf_adjust_dynamic_symbol()
2912 if ((h->root.u.def.section->flags & SEC_ALLOC) != 0 && h->size != 0) in sh_elf_adjust_dynamic_symbol()
2936 if (h->root.type == bfd_link_hash_indirect) in allocate_dynrelocs()
2956 if (htab->root.dynamic_sections_created in allocate_dynrelocs()
2959 || h->root.type != bfd_link_hash_undefweak)) in allocate_dynrelocs()
2992 h->root.u.def.section = s; in allocate_dynrelocs()
2993 h->root.u.def.value = h->plt.offset; in allocate_dynrelocs()
3063 dyn = htab->root.dynamic_sections_created; in allocate_dynrelocs()
3068 && h->root.type != bfd_link_hash_undefweak in allocate_dynrelocs()
3090 || h->root.type != bfd_link_hash_undefweak) in allocate_dynrelocs()
3096 || h->root.type != bfd_link_hash_undefweak)) in allocate_dynrelocs()
3120 dyn = htab->root.dynamic_sections_created; in allocate_dynrelocs()
3134 && (h->root.type != bfd_link_hash_undefweak in allocate_dynrelocs()
3135 || (htab->root.dynamic_sections_created in allocate_dynrelocs()
3153 && h->root.type != bfd_link_hash_undefweak in allocate_dynrelocs()
3210 && h->root.type == bfd_link_hash_undefweak) in allocate_dynrelocs()
3234 || (htab->root.dynamic_sections_created in allocate_dynrelocs()
3235 && (h->root.type == bfd_link_hash_undefweak in allocate_dynrelocs()
3236 || h->root.type == bfd_link_hash_undefined)))) in allocate_dynrelocs()
3330 dynobj = htab->root.dynobj; in sh_elf_size_dynamic_sections()
3333 if (htab->root.dynamic_sections_created) in sh_elf_size_dynamic_sections()
3495 elf_link_hash_traverse (&htab->root, allocate_dynrelocs, info); in sh_elf_size_dynamic_sections()
3501 htab->root.hgot->root.u.def.value = htab->sgotplt->size; in sh_elf_size_dynamic_sections()
3571 if (htab->root.dynamic_sections_created) in sh_elf_size_dynamic_sections()
3613 elf_link_hash_traverse (&htab->root, readonly_dynrelocs, info); in sh_elf_size_dynamic_sections()
3671 - htab->root.hgot->root.u.def.value); in sh_elf_got_offset()
3724 section = h->root.u.def.section; in sh_elf_initialize_funcdesc()
3725 value = h->root.u.def.value; in sh_elf_initialize_funcdesc()
3743 if (h == NULL || h->root.type != bfd_link_hash_undefweak) in sh_elf_initialize_funcdesc()
3758 seg = htab->root.hgot->root.u.def.value in sh_elf_initialize_funcdesc()
3759 + htab->root.hgot->root.u.def.section->output_section->vma in sh_elf_initialize_funcdesc()
3760 + htab->root.hgot->root.u.def.section->output_offset; in sh_elf_initialize_funcdesc()
3833 dynobj = htab->root.dynobj; in sh_elf_relocate_section()
4019 symname = h->root.root.string; in sh_elf_relocate_section()
4020 while (h->root.type == bfd_link_hash_indirect in sh_elf_relocate_section()
4021 || h->root.type == bfd_link_hash_warning) in sh_elf_relocate_section()
4029 h = (struct elf_link_hash_entry *) h->root.u.i.link; in sh_elf_relocate_section()
4031 if (h->root.type == bfd_link_hash_defined in sh_elf_relocate_section()
4032 || h->root.type == bfd_link_hash_defweak) in sh_elf_relocate_section()
4036 dyn = htab ? htab->root.dynamic_sections_created : FALSE; in sh_elf_relocate_section()
4037 sec = h->root.u.def.section; in sh_elf_relocate_section()
4097 relocation = ((h->root.u.def.value in sh_elf_relocate_section()
4117 h->root.root.string); in sh_elf_relocate_section()
4121 else if (h->root.type == bfd_link_hash_undefweak) in sh_elf_relocate_section()
4129 (info, h->root.root.string, input_bfd, in sh_elf_relocate_section()
4289 || h->root.type != bfd_link_hash_undefweak) in sh_elf_relocate_section()
4435 && h->root.type == bfd_link_hash_undefweak) in sh_elf_relocate_section()
4509 dyn = htab->root.dynamic_sections_created; in sh_elf_relocate_section()
4514 && h->root.type == bfd_link_hash_undefweak)) in sh_elf_relocate_section()
4551 || h->root.type != bfd_link_hash_undefweak)) in sh_elf_relocate_section()
4675 + htab->root.hgot->root.u.def.value; in sh_elf_relocate_section()
4732 if (h->root.type == bfd_link_hash_undefweak) in sh_elf_relocate_section()
4809 if (h && h->root.type == bfd_link_hash_undefweak in sh_elf_relocate_section()
4811 || !htab->root.dynamic_sections_created)) in sh_elf_relocate_section()
4824 dynindx = elf_section_data (h->root.u.def.section in sh_elf_relocate_section()
4826 relocation += h->root.u.def.section->output_offset in sh_elf_relocate_section()
4827 + h->root.u.def.value; in sh_elf_relocate_section()
4992 if (h && (h->root.type == bfd_link_hash_undefweak in sh_elf_relocate_section()
4998 h->root.root.string); in sh_elf_relocate_section()
5039 relocation -= (htab->root.hgot->root.u.def.value in sh_elf_relocate_section()
5193 && ! htab->root.dynamic_sections_created) in sh_elf_relocate_section()
5464 if (!h || h->root.type != bfd_link_hash_undefined) in sh_elf_relocate_section()
5505 (info, (h ? &h->root : NULL), name, howto->name, in sh_elf_relocate_section()
5711 while (h->root.type == bfd_link_hash_indirect in sh_elf_gc_sweep_hook()
5712 || h->root.type == bfd_link_hash_warning) in sh_elf_gc_sweep_hook()
5717 h = (struct elf_link_hash_entry *) h->root.u.i.link; in sh_elf_gc_sweep_hook()
5938 if (ind->root.type == bfd_link_hash_indirect in sh_elf_copy_indirect_symbol()
5945 if (ind->root.type != bfd_link_hash_indirect in sh_elf_copy_indirect_symbol()
6029 while (h->root.type == bfd_link_hash_indirect in sh_elf_check_relocs()
6030 || h->root.type == bfd_link_hash_warning) in sh_elf_check_relocs()
6035 h = (struct elf_link_hash_entry *) h->root.u.i.link; in sh_elf_check_relocs()
6040 h->root.non_ir_ref = 1; in sh_elf_check_relocs()
6047 && h->root.type != bfd_link_hash_undefined in sh_elf_check_relocs()
6048 && h->root.type != bfd_link_hash_undefweak in sh_elf_check_relocs()
6122 if (htab->root.dynobj == NULL) in sh_elf_check_relocs()
6123 htab->root.dynobj = abfd; in sh_elf_check_relocs()
6124 if (!create_got_section (htab->root.dynobj, info)) in sh_elf_check_relocs()
6258 abfd, h->root.root.string); in sh_elf_check_relocs()
6263 abfd, h->root.root.string); in sh_elf_check_relocs()
6267 abfd, h->root.root.string); in sh_elf_check_relocs()
6341 abfd, h->root.root.string); in sh_elf_check_relocs()
6345 abfd, h->root.root.string); in sh_elf_check_relocs()
6439 || h->root.type == bfd_link_hash_defweak in sh_elf_check_relocs()
6444 && (h->root.type == bfd_link_hash_defweak in sh_elf_check_relocs()
6450 if (htab->root.dynobj == NULL) in sh_elf_check_relocs()
6451 htab->root.dynobj = abfd; in sh_elf_check_relocs()
6459 (sec, htab->root.dynobj, 2, abfd, /*rela?*/ TRUE); in sh_elf_check_relocs()
6493 p = bfd_alloc (htab->root.dynobj, amt); in sh_elf_check_relocs()
6869 rel.r_info = ELF32_R_INFO (htab->root.hgot->indx, R_SH_DIR32); in sh_elf_finish_dynamic_symbol()
6879 rel.r_info = ELF32_R_INFO (htab->root.hplt->indx, R_SH_DIR32); in sh_elf_finish_dynamic_symbol()
6923 asection *sec = h->root.u.def.section; in sh_elf_finish_dynamic_symbol()
6928 rel.r_addend = (h->root.u.def.value in sh_elf_finish_dynamic_symbol()
6929 + h->root.u.def.section->output_offset); in sh_elf_finish_dynamic_symbol()
6934 rel.r_addend = (h->root.u.def.value in sh_elf_finish_dynamic_symbol()
6935 + h->root.u.def.section->output_section->vma in sh_elf_finish_dynamic_symbol()
6936 + h->root.u.def.section->output_offset); in sh_elf_finish_dynamic_symbol()
6984 asection *sec = h->root.u.def.section; in sh_elf_finish_dynamic_symbol()
6989 rel.r_addend = (h->root.u.def.value in sh_elf_finish_dynamic_symbol()
6990 + h->root.u.def.section->output_offset); in sh_elf_finish_dynamic_symbol()
6995 rel.r_addend = (h->root.u.def.value in sh_elf_finish_dynamic_symbol()
6996 + h->root.u.def.section->output_section->vma in sh_elf_finish_dynamic_symbol()
6997 + h->root.u.def.section->output_offset); in sh_elf_finish_dynamic_symbol()
7024 && (h->root.type == bfd_link_hash_defined in sh_elf_finish_dynamic_symbol()
7025 || h->root.type == bfd_link_hash_defweak)); in sh_elf_finish_dynamic_symbol()
7027 s = bfd_get_linker_section (htab->root.dynobj, ".rela.bss"); in sh_elf_finish_dynamic_symbol()
7030 rel.r_offset = (h->root.u.def.value in sh_elf_finish_dynamic_symbol()
7031 + h->root.u.def.section->output_section->vma in sh_elf_finish_dynamic_symbol()
7032 + h->root.u.def.section->output_offset); in sh_elf_finish_dynamic_symbol()
7042 if (h == htab->root.hdynamic in sh_elf_finish_dynamic_symbol()
7043 || (!htab->vxworks_p && h == htab->root.hgot)) in sh_elf_finish_dynamic_symbol()
7063 sdyn = bfd_get_linker_section (htab->root.dynobj, ".dynamic"); in sh_elf_finish_dynamic_sections()
7065 if (htab->root.dynamic_sections_created) in sh_elf_finish_dynamic_sections()
7082 bfd_elf32_swap_dyn_in (htab->root.dynobj, dyncon, &dyn); in sh_elf_finish_dynamic_sections()
7104 h = elf_link_hash_lookup (&htab->root, name, in sh_elf_finish_dynamic_sections()
7116 BFD_ASSERT (htab->root.hgot != NULL); in sh_elf_finish_dynamic_sections()
7117 s = htab->root.hgot->root.u.def.section; in sh_elf_finish_dynamic_sections()
7118 dyn.d_un.d_ptr = htab->root.hgot->root.u.def.value in sh_elf_finish_dynamic_sections()
7187 rel.r_info = ELF32_R_INFO (htab->root.hgot->indx, R_SH_DIR32); in sh_elf_finish_dynamic_sections()
7200 rel.r_info = ELF32_R_INFO (htab->root.hgot->indx, in sh_elf_finish_dynamic_sections()
7207 rel.r_info = ELF32_R_INFO (htab->root.hplt->indx, in sh_elf_finish_dynamic_sections()
7239 struct elf_link_hash_entry *hgot = htab->root.hgot; in sh_elf_finish_dynamic_sections()
7240 bfd_vma got_value = hgot->root.u.def.value in sh_elf_finish_dynamic_sections()
7241 + hgot->root.u.def.section->output_section->vma in sh_elf_finish_dynamic_sections()
7242 + hgot->root.u.def.section->output_offset; in sh_elf_finish_dynamic_sections()
7390 h = htab->root.hgot; in sh_elf_encode_eh_address()
7391 BFD_ASSERT (h && h->root.type == bfd_link_hash_defined); in sh_elf_encode_eh_address()
7400 (abfd, h->root.u.def.section->output_section))); in sh_elf_encode_eh_address()
7403 - (h->root.u.def.value in sh_elf_encode_eh_address()
7404 + h->root.u.def.section->output_section->vma in sh_elf_encode_eh_address()
7405 + h->root.u.def.section->output_offset); in sh_elf_encode_eh_address()