Lines Matching refs:root
882 struct elf_link_hash_entry root; member
921 struct elf_link_hash_table root; member
972 struct elf_obj_tdata root; member
1218 len = 8 + 1 + 1 + 1+ strlen (hh->root.root.root.string) + 1 + 8 + 1; in nios2_stub_name()
1225 hh->root.root.root.string, in nios2_stub_name()
1569 !(hh->root.root.type == bfd_link_hash_defined in nios2_type_of_stub()
1570 || hh->root.root.type == bfd_link_hash_defweak)) in nios2_type_of_stub()
1891 while (hh->root.root.type == bfd_link_hash_indirect in nios2_elf32_size_stubs()
1892 || hh->root.root.type == bfd_link_hash_warning) in nios2_elf32_size_stubs()
1894 hh->root.root.u.i.link); in nios2_elf32_size_stubs()
1896 if (hh->root.root.type == bfd_link_hash_defined in nios2_elf32_size_stubs()
1897 || hh->root.root.type == bfd_link_hash_defweak) in nios2_elf32_size_stubs()
1899 sym_sec = hh->root.root.u.def.section; in nios2_elf32_size_stubs()
1900 sym_value = hh->root.root.u.def.value; in nios2_elf32_size_stubs()
1909 else if (hh->root.root.type == bfd_link_hash_undefweak) in nios2_elf32_size_stubs()
1914 else if (hh->root.root.type == bfd_link_hash_undefined) in nios2_elf32_size_stubs()
1917 && (ELF_ST_VISIBILITY (hh->root.other) in nios2_elf32_size_stubs()
2750 sgot = htab->root.sgot; in nios2_elf32_relocate_section()
2751 splt = htab->root.splt; in nios2_elf32_relocate_section()
2757 got_base = elf32_nios2_hash_table (info)->h_gp_got->root.u.def.value; in nios2_elf32_relocate_section()
2880 || h->root.type == bfd_link_hash_defined in nios2_elf32_relocate_section()
2881 || h->root.type == bfd_link_hash_defweak)) in nios2_elf32_relocate_section()
2926 if (h != NULL && h->root.type == bfd_link_hash_undefweak) in nios2_elf32_relocate_section()
3040 && h->root.type == bfd_link_hash_undefweak)) in nios2_elf32_relocate_section()
3087 srelgot = htab->root.srelgot; in nios2_elf32_relocate_section()
3108 relocation = (htab->root.sgotplt->output_offset + off in nios2_elf32_relocate_section()
3195 if (htab->root.sgot == NULL) in nios2_elf32_relocate_section()
3211 if (htab->root.srelgot == NULL) in nios2_elf32_relocate_section()
3215 outrel.r_offset = (htab->root.sgot->output_section->vma in nios2_elf32_relocate_section()
3216 + htab->root.sgot->output_offset in nios2_elf32_relocate_section()
3220 loc = htab->root.srelgot->contents; in nios2_elf32_relocate_section()
3221 loc += (htab->root.srelgot->reloc_count++ in nios2_elf32_relocate_section()
3227 htab->root.sgot->contents + off); in nios2_elf32_relocate_section()
3232 relocation = htab->root.sgot->output_offset + off - got_base; in nios2_elf32_relocate_section()
3245 if (htab->root.sgot == NULL) in nios2_elf32_relocate_section()
3252 dyn = htab->root.dynamic_sections_created; in nios2_elf32_relocate_section()
3292 || h->root.type != bfd_link_hash_undefweak)) in nios2_elf32_relocate_section()
3295 if (htab->root.srelgot == NULL) in nios2_elf32_relocate_section()
3297 loc = htab->root.srelgot->contents; in nios2_elf32_relocate_section()
3298 loc += (htab->root.srelgot->reloc_count * in nios2_elf32_relocate_section()
3307 outrel.r_offset = (htab->root.sgot->output_section->vma in nios2_elf32_relocate_section()
3308 + htab->root.sgot->output_offset in nios2_elf32_relocate_section()
3315 htab->root.srelgot->reloc_count++; in nios2_elf32_relocate_section()
3322 htab->root.sgot->contents + cur_off + 4); in nios2_elf32_relocate_section()
3332 htab->root.srelgot->reloc_count++; in nios2_elf32_relocate_section()
3344 htab->root.sgot->contents + cur_off); in nios2_elf32_relocate_section()
3348 htab->root.sgot->contents + cur_off + 4); in nios2_elf32_relocate_section()
3363 outrel.r_offset = (htab->root.sgot->output_section->vma in nios2_elf32_relocate_section()
3364 + htab->root.sgot->output_offset in nios2_elf32_relocate_section()
3371 htab->root.srelgot->reloc_count++; in nios2_elf32_relocate_section()
3377 htab->root.sgot->contents + cur_off); in nios2_elf32_relocate_section()
3389 relocation = htab->root.sgot->output_offset + off - got_base; in nios2_elf32_relocate_section()
3420 || h->root.type != bfd_link_hash_undefweak)) in nios2_elf32_relocate_section()
3502 name = h->root.root.string; in nios2_elf32_relocate_section()
3603 if (!bfd_set_section_alignment (dynobj, htab->root.sgotplt, 4)) in create_got_section()
3610 h = _bfd_elf_define_linkage_sym (dynobj, info, htab->root.sgotplt, in create_got_section()
3629 if (!htab->root.sgot && !create_got_section (dynobj, info)) in nios2_elf32_create_dynamic_sections()
3638 if (!bfd_set_section_alignment (dynobj, htab->root.splt, 4)) in nios2_elf32_create_dynamic_sections()
3697 if (ind->root.type == bfd_link_hash_indirect in nios2_elf32_copy_indirect_symbol()
3739 sgot = htab->root.sgot; in nios2_elf32_check_relocs()
3740 srelgot = htab->root.srelgot; in nios2_elf32_check_relocs()
3755 while (h->root.type == bfd_link_hash_indirect in nios2_elf32_check_relocs()
3756 || h->root.type == bfd_link_hash_warning) in nios2_elf32_check_relocs()
3757 h = (struct elf_link_hash_entry *) h->root.u.i.link; in nios2_elf32_check_relocs()
3761 h->root.non_ir_ref = 1; in nios2_elf32_check_relocs()
3808 sgot = htab->root.sgot; in nios2_elf32_check_relocs()
3815 srelgot = htab->root.srelgot; in nios2_elf32_check_relocs()
3882 if (htab->root.sgot == NULL) in nios2_elf32_check_relocs()
3884 if (htab->root.dynobj == NULL) in nios2_elf32_check_relocs()
3885 htab->root.dynobj = abfd; in nios2_elf32_check_relocs()
3886 if (!create_got_section (htab->root.dynobj, info)) in nios2_elf32_check_relocs()
3984 bfd_alloc (htab->root.dynobj, amt)); in nios2_elf32_check_relocs()
4063 while (h->root.type == bfd_link_hash_indirect in nios2_elf32_gc_sweep_hook()
4064 || h->root.type == bfd_link_hash_warning) in nios2_elf32_gc_sweep_hook()
4065 h = (struct elf_link_hash_entry *) h->root.u.i.link; in nios2_elf32_gc_sweep_hook()
4159 splt = htab->root.splt; in nios2_elf32_finish_dynamic_symbol()
4160 sgotplt = htab->root.sgotplt; in nios2_elf32_finish_dynamic_symbol()
4161 srela = htab->root.srelplt; in nios2_elf32_finish_dynamic_symbol()
4241 sgot = htab->root.sgot; in nios2_elf32_finish_dynamic_symbol()
4242 srela = htab->root.srelgot; in nios2_elf32_finish_dynamic_symbol()
4278 asection *sgot = htab->root.sgot; in nios2_elf32_finish_dynamic_symbol()
4279 asection *splt = htab->root.splt; in nios2_elf32_finish_dynamic_symbol()
4293 && (h->root.type == bfd_link_hash_defined in nios2_elf32_finish_dynamic_symbol()
4294 || h->root.type == bfd_link_hash_defweak)); in nios2_elf32_finish_dynamic_symbol()
4299 rela.r_offset = (h->root.u.def.value in nios2_elf32_finish_dynamic_symbol()
4300 + h->root.u.def.section->output_section->vma in nios2_elf32_finish_dynamic_symbol()
4301 + h->root.u.def.section->output_offset); in nios2_elf32_finish_dynamic_symbol()
4309 if (strcmp (h->root.root.string, "_DYNAMIC") == 0 in nios2_elf32_finish_dynamic_symbol()
4329 sgotplt = htab->root.sgotplt; in nios2_elf32_finish_dynamic_sections()
4338 splt = htab->root.splt; in nios2_elf32_finish_dynamic_sections()
4356 s = htab->root.sgot; in nios2_elf32_finish_dynamic_sections()
4363 s = htab->root.srelplt; in nios2_elf32_finish_dynamic_sections()
4370 s = htab->root.srelplt; in nios2_elf32_finish_dynamic_sections()
4384 s = htab->root.srelplt; in nios2_elf32_finish_dynamic_sections()
4391 s = htab->root.sgot; in nios2_elf32_finish_dynamic_sections()
4492 && h->root.type == bfd_link_hash_undefweak)) in nios2_elf32_adjust_dynamic_symbol()
4515 BFD_ASSERT (h->u.weakdef->root.type == bfd_link_hash_defined in nios2_elf32_adjust_dynamic_symbol()
4516 || h->u.weakdef->root.type == bfd_link_hash_defweak); in nios2_elf32_adjust_dynamic_symbol()
4517 h->root.u.def.section = h->u.weakdef->root.u.def.section; in nios2_elf32_adjust_dynamic_symbol()
4518 h->root.u.def.value = h->u.weakdef->root.u.def.value; in nios2_elf32_adjust_dynamic_symbol()
4539 h->root.root.string); in nios2_elf32_adjust_dynamic_symbol()
4559 if ((h->root.u.def.section->flags & SEC_ALLOC) != 0) in nios2_elf32_adjust_dynamic_symbol()
4570 if (align2 > h->root.u.def.section->alignment_power) in nios2_elf32_adjust_dynamic_symbol()
4571 align2 = h->root.u.def.section->alignment_power; in nios2_elf32_adjust_dynamic_symbol()
4580 h->root.u.def.section = s; in nios2_elf32_adjust_dynamic_symbol()
4581 h->root.u.def.value = s->size; in nios2_elf32_adjust_dynamic_symbol()
4596 if (h->root.type == bfd_link_hash_indirect) in adjust_dynrelocs()
4599 if (h->root.type == bfd_link_hash_warning) in adjust_dynrelocs()
4603 h = (struct elf_link_hash_entry *) h->root.u.i.link; in adjust_dynrelocs()
4610 if (htab->root.splt == h->root.u.def.section) in adjust_dynrelocs()
4611 h->root.u.def.value += htab->res_n_size; in adjust_dynrelocs()
4628 if (h->root.type == bfd_link_hash_indirect) in allocate_dynrelocs()
4631 if (h->root.type == bfd_link_hash_warning) in allocate_dynrelocs()
4635 h = (struct elf_link_hash_entry *) h->root.u.i.link; in allocate_dynrelocs()
4640 if (htab->root.dynamic_sections_created in allocate_dynrelocs()
4652 asection *s = htab->root.splt; in allocate_dynrelocs()
4673 h->root.u.def.section = s; in allocate_dynrelocs()
4674 h->root.u.def.value = h->plt.offset; in allocate_dynrelocs()
4681 htab->root.srelplt->size += sizeof (Elf32_External_Rela); in allocate_dynrelocs()
4684 htab->root.sgotplt->size += 4; in allocate_dynrelocs()
4716 s = htab->root.sgot; in allocate_dynrelocs()
4735 dyn = htab->root.dynamic_sections_created; in allocate_dynrelocs()
4746 || h->root.type != bfd_link_hash_undefweak)) in allocate_dynrelocs()
4749 htab->root.srelgot->size += sizeof (Elf32_External_Rela); in allocate_dynrelocs()
4752 htab->root.srelgot->size += sizeof (Elf32_External_Rela); in allocate_dynrelocs()
4755 htab->root.srelgot->size += sizeof (Elf32_External_Rela); in allocate_dynrelocs()
4758 || h->root.type != bfd_link_hash_undefweak) in allocate_dynrelocs()
4762 htab->root.srelgot->size += sizeof (Elf32_External_Rela); in allocate_dynrelocs()
4797 && h->root.type == bfd_link_hash_undefweak) in allocate_dynrelocs()
4818 || (htab->root.dynamic_sections_created in allocate_dynrelocs()
4819 && (h->root.type == bfd_link_hash_undefweak in allocate_dynrelocs()
4820 || h->root.type == bfd_link_hash_undefined)))) in allocate_dynrelocs()
4887 s = htab->root.srelgot; in nios2_elf32_size_dynamic_sections()
4938 s = htab->root.sgot; in nios2_elf32_size_dynamic_sections()
4939 srel = htab->root.srelgot; in nios2_elf32_size_dynamic_sections()
4965 htab->tls_ldm_got.offset = htab->root.sgot->size; in nios2_elf32_size_dynamic_sections()
4966 htab->root.sgot->size += 8; in nios2_elf32_size_dynamic_sections()
4968 htab->root.srelgot->size += sizeof (Elf32_External_Rela); in nios2_elf32_size_dynamic_sections()
4975 elf_link_hash_traverse (& htab->root, allocate_dynrelocs, info); in nios2_elf32_size_dynamic_sections()
4982 if (htab->root.sgot->size >= 0x8000 in nios2_elf32_size_dynamic_sections()
4983 && elf32_nios2_hash_table (info)->h_gp_got->root.u.def.value == 0) in nios2_elf32_size_dynamic_sections()
4984 elf32_nios2_hash_table (info)->h_gp_got->root.u.def.value = 0x8000; in nios2_elf32_size_dynamic_sections()
5065 elf_link_hash_traverse (& htab->root, adjust_dynrelocs, info); in nios2_elf32_size_dynamic_sections()
5129 if (!_bfd_elf_link_hash_table_init (&ret->root, abfd, in nios2_elf32_link_hash_table_create()
5146 ret->root.root.hash_table_free = nios2_elf32_link_hash_table_free; in nios2_elf32_link_hash_table_create()
5148 return &ret->root.root; in nios2_elf32_link_hash_table_create()