Lines Matching refs:elf
806 struct elf_link_hash_entry elf; member
845 struct elf_link_hash_table elf; member
1419 if (!_bfd_elf_link_hash_table_init (&ret->elf, abfd, link_hash_newfunc, in tilegx_elf_link_hash_table_create()
1427 return &ret->elf.root; in tilegx_elf_link_hash_table_create()
1519 if (!htab->elf.splt || !htab->elf.srelplt || !htab->sdynbss in tilegx_elf_create_dynamic_sections()
1685 if (htab->elf.dynobj == NULL) in tilegx_elf_check_relocs()
1686 htab->elf.dynobj = abfd; in tilegx_elf_check_relocs()
1851 if (htab->elf.sgot == NULL) in tilegx_elf_check_relocs()
1853 if (!tilegx_elf_create_got_section (htab->elf.dynobj, info)) in tilegx_elf_check_relocs()
2028 (sec, htab->elf.dynobj, htab->word_align_power, abfd, in tilegx_elf_check_relocs()
2068 bfd_alloc (htab->elf.dynobj, amt)); in tilegx_elf_check_relocs()
2354 dynobj = htab->elf.dynobj; in tilegx_elf_adjust_dynamic_symbol()
2480 if (htab->elf.dynamic_sections_created in allocate_dynrelocs()
2494 asection *s = htab->elf.splt; in allocate_dynrelocs()
2520 htab->elf.sgotplt->size += GOT_ENTRY_SIZE (htab); in allocate_dynrelocs()
2523 htab->elf.srelplt->size += TILEGX_ELF_RELA_BYTES (htab); in allocate_dynrelocs()
2560 s = htab->elf.sgot; in allocate_dynrelocs()
2566 dyn = htab->elf.dynamic_sections_created; in allocate_dynrelocs()
2570 htab->elf.srelgot->size += 2 * TILEGX_ELF_RELA_BYTES (htab); in allocate_dynrelocs()
2572 htab->elf.srelgot->size += TILEGX_ELF_RELA_BYTES (htab); in allocate_dynrelocs()
2631 || (htab->elf.dynamic_sections_created in allocate_dynrelocs()
2719 dynobj = htab->elf.dynobj; in tilegx_elf_size_dynamic_sections()
2780 s = htab->elf.sgot; in tilegx_elf_size_dynamic_sections()
2781 srel = htab->elf.srelgot; in tilegx_elf_size_dynamic_sections()
2802 elf_link_hash_traverse (&htab->elf, allocate_dynrelocs, info); in tilegx_elf_size_dynamic_sections()
2809 if (htab->elf.sgot->size >= 0x8000 in tilegx_elf_size_dynamic_sections()
2814 if (htab->elf.sgotplt) in tilegx_elf_size_dynamic_sections()
2825 && (htab->elf.sgotplt->size in tilegx_elf_size_dynamic_sections()
2827 && (htab->elf.splt == NULL in tilegx_elf_size_dynamic_sections()
2828 || htab->elf.splt->size == 0) in tilegx_elf_size_dynamic_sections()
2829 && (htab->elf.sgot == NULL in tilegx_elf_size_dynamic_sections()
2830 || (htab->elf.sgot->size in tilegx_elf_size_dynamic_sections()
2832 htab->elf.sgotplt->size = 0; in tilegx_elf_size_dynamic_sections()
2843 if (s == htab->elf.splt in tilegx_elf_size_dynamic_sections()
2844 || s == htab->elf.sgot in tilegx_elf_size_dynamic_sections()
2845 || s == htab->elf.sgotplt in tilegx_elf_size_dynamic_sections()
2908 if (htab->elf.srelplt->size != 0) in tilegx_elf_size_dynamic_sections()
2925 elf_link_hash_traverse (&htab->elf, readonly_dynrelocs, info); in tilegx_elf_size_dynamic_sections()
3431 if (htab->elf.sgot == NULL) in tilegx_elf_relocate_section()
3463 htab->elf.sgot->contents + off); in tilegx_elf_relocate_section()
3491 s = htab->elf.srelgot; in tilegx_elf_relocate_section()
3494 outrel.r_offset = (htab->elf.sgot->output_section->vma in tilegx_elf_relocate_section()
3495 + htab->elf.sgot->output_offset in tilegx_elf_relocate_section()
3505 htab->elf.sgot->contents + off); in tilegx_elf_relocate_section()
3531 if (h->plt.offset == (bfd_vma) -1 || htab->elf.splt == NULL) in tilegx_elf_relocate_section()
3539 relocation = (htab->elf.splt->output_section->vma in tilegx_elf_relocate_section()
3540 + htab->elf.splt->output_offset in tilegx_elf_relocate_section()
3696 sec = htab->elf.splt; in tilegx_elf_relocate_section()
3719 osec = htab->elf.text_index_section; in tilegx_elf_relocate_section()
3840 if (htab->elf.sgot == NULL) in tilegx_elf_relocate_section()
3851 if (htab->elf.srelgot == NULL) in tilegx_elf_relocate_section()
3857 dyn = htab->elf.dynamic_sections_created; in tilegx_elf_relocate_section()
3885 htab->elf.sgot->contents + off); in tilegx_elf_relocate_section()
3886 outrel.r_offset = (htab->elf.sgot->output_section->vma in tilegx_elf_relocate_section()
3887 + htab->elf.sgot->output_offset + off); in tilegx_elf_relocate_section()
3893 tilegx_elf_append_rela (output_bfd, htab->elf.srelgot, &outrel); in tilegx_elf_relocate_section()
3897 htab->elf.sgot->contents + off); in tilegx_elf_relocate_section()
3908 outrel.r_offset = (htab->elf.sgot->output_section->vma in tilegx_elf_relocate_section()
3909 + htab->elf.sgot->output_offset + off); in tilegx_elf_relocate_section()
3914 htab->elf.sgot->contents + off); in tilegx_elf_relocate_section()
3915 tilegx_elf_append_rela (output_bfd, htab->elf.srelgot, &outrel); in tilegx_elf_relocate_section()
3921 (htab->elf.sgot->contents + off + in tilegx_elf_relocate_section()
3927 (htab->elf.sgot->contents + off + in tilegx_elf_relocate_section()
3932 tilegx_elf_append_rela (output_bfd, htab->elf.srelgot, &outrel); in tilegx_elf_relocate_section()
3943 htab->elf.sgot->contents + off ); in tilegx_elf_relocate_section()
3946 htab->elf.sgot->contents + off + in tilegx_elf_relocate_section()
4110 splt = htab->elf.splt; in tilegx_elf_finish_dynamic_symbol()
4111 srela = htab->elf.srelplt; in tilegx_elf_finish_dynamic_symbol()
4112 sgotplt = htab->elf.sgotplt; in tilegx_elf_finish_dynamic_symbol()
4161 sgot = htab->elf.sgot; in tilegx_elf_finish_dynamic_symbol()
4162 srela = htab->elf.srelgot; in tilegx_elf_finish_dynamic_symbol()
4215 if (h == htab->elf.hdynamic in tilegx_elf_finish_dynamic_symbol()
4216 || (h == htab->elf.hgot || h == htab->elf.hplt)) in tilegx_elf_finish_dynamic_symbol()
4250 s = htab->elf.sgotplt; in tilegx_finish_dyn()
4254 s = htab->elf.srelplt; in tilegx_finish_dyn()
4258 s = htab->elf.srelplt; in tilegx_finish_dyn()
4281 dynobj = htab->elf.dynobj; in tilegx_elf_finish_dynamic_sections()
4290 splt = htab->elf.splt; in tilegx_elf_finish_dynamic_sections()
4321 if (htab->elf.sgotplt) in tilegx_elf_finish_dynamic_sections()
4323 if (bfd_is_abs_section (htab->elf.sgotplt->output_section)) in tilegx_elf_finish_dynamic_sections()
4326 (_("discarded output section: `%A'"), htab->elf.sgotplt); in tilegx_elf_finish_dynamic_sections()
4330 if (htab->elf.sgotplt->size > 0) in tilegx_elf_finish_dynamic_sections()
4335 htab->elf.sgotplt->contents); in tilegx_elf_finish_dynamic_sections()
4337 htab->elf.sgotplt->contents in tilegx_elf_finish_dynamic_sections()
4341 elf_section_data (htab->elf.sgotplt->output_section)->this_hdr.sh_entsize = in tilegx_elf_finish_dynamic_sections()
4345 if (htab->elf.sgot) in tilegx_elf_finish_dynamic_sections()
4347 if (htab->elf.sgot->size > 0) in tilegx_elf_finish_dynamic_sections()
4355 htab->elf.sgot->contents); in tilegx_elf_finish_dynamic_sections()
4358 elf_section_data (htab->elf.sgot->output_section)->this_hdr.sh_entsize = in tilegx_elf_finish_dynamic_sections()