Lines Matching refs:irel
3041 Elf_Internal_Rela *irel, unsigned long r_type) in elf64_alpha_relax_got_load() argument
3047 insn = bfd_get_32 (info->abfd, info->contents + irel->r_offset); in elf64_alpha_relax_got_load()
3055 (unsigned long) irel->r_offset, howto->name)); in elf64_alpha_relax_got_load()
3120 bfd_put_32 (info->abfd, (bfd_vma) insn, info->contents + irel->r_offset); in elf64_alpha_relax_got_load()
3134 irel->r_info = ELF64_R_INFO (ELF64_R_SYM (irel->r_info), r_type); in elf64_alpha_relax_got_load()
3225 bfd_vma symval, Elf_Internal_Rela *irel) in elf64_alpha_relax_with_lituse() argument
3242 lit_insn = bfd_get_32 (abfd, contents + irel->r_offset); in elf64_alpha_relax_with_lituse()
3248 (unsigned long) irel->r_offset)); in elf64_alpha_relax_with_lituse()
3262 for (erel = irel+1, flags = 0; erel < irelend; ++erel) in elf64_alpha_relax_with_lituse()
3273 for (urel = irel+1; urel < erel; ++urel) in elf64_alpha_relax_with_lituse()
3321 nrel.r_info = ELF64_R_INFO (ELF64_R_SYM (irel->r_info), in elf64_alpha_relax_with_lituse()
3323 nrel.r_addend = irel->r_addend; in elf64_alpha_relax_with_lituse()
3338 irel->r_info = ELF64_R_INFO (ELF64_R_SYM (irel->r_info), in elf64_alpha_relax_with_lituse()
3341 bfd_put_32 (abfd, (bfd_vma) lit_insn, contents + irel->r_offset); in elf64_alpha_relax_with_lituse()
3347 urel->r_info = ELF64_R_INFO (ELF64_R_SYM (irel->r_info), in elf64_alpha_relax_with_lituse()
3349 urel->r_addend = irel->r_addend; in elf64_alpha_relax_with_lituse()
3417 nrel.r_info = ELF64_R_INFO (ELF64_R_SYM (irel->r_info), in elf64_alpha_relax_with_lituse()
3419 nrel.r_addend = irel->r_addend; in elf64_alpha_relax_with_lituse()
3501 irel->r_info = ELF64_R_INFO (0, R_ALPHA_NONE); in elf64_alpha_relax_with_lituse()
3504 bfd_put_32 (abfd, (bfd_vma) INSN_UNOP, contents + irel->r_offset); in elf64_alpha_relax_with_lituse()
3514 return elf64_alpha_relax_got_load (info, symval, irel, R_ALPHA_LITERAL); in elf64_alpha_relax_with_lituse()
3519 Elf_Internal_Rela *irel, bfd_boolean is_gd) in elf64_alpha_relax_tls_get_addr() argument
3546 if (irel + 2 >= info->relend) in elf64_alpha_relax_tls_get_addr()
3548 if (ELF64_R_TYPE (irel[1].r_info) != R_ALPHA_LITERAL in elf64_alpha_relax_tls_get_addr()
3549 || ELF64_R_TYPE (irel[2].r_info) != R_ALPHA_LITUSE in elf64_alpha_relax_tls_get_addr()
3550 || irel[2].r_addend != (is_gd ? LITUSE_ALPHA_TLSGD : LITUSE_ALPHA_TLSLDM)) in elf64_alpha_relax_tls_get_addr()
3556 irel[2].r_offset + 4, R_ALPHA_GPDISP); in elf64_alpha_relax_tls_get_addr()
3560 pos[0] = info->contents + irel[0].r_offset; in elf64_alpha_relax_tls_get_addr()
3561 pos[1] = info->contents + irel[1].r_offset; in elf64_alpha_relax_tls_get_addr()
3562 pos[2] = info->contents + irel[2].r_offset; in elf64_alpha_relax_tls_get_addr()
3592 BFD_ASSERT (ELF64_R_SYM (irel[1].r_info) >= info->symtab_hdr->sh_info); in elf64_alpha_relax_tls_get_addr()
3593 indx = ELF64_R_SYM (irel[1].r_info) - info->symtab_hdr->sh_info; in elf64_alpha_relax_tls_get_addr()
3604 && lit_gotent->addend == irel[1].r_addend) in elf64_alpha_relax_tls_get_addr()
3638 new_symndx = is_gd ? ELF64_R_SYM (irel->r_info) : STN_UNDEF; in elf64_alpha_relax_tls_get_addr()
3659 irel[0].r_offset = pos[0] - info->contents; in elf64_alpha_relax_tls_get_addr()
3660 irel[0].r_info = ELF64_R_INFO (new_symndx, R_ALPHA_TPREL16); in elf64_alpha_relax_tls_get_addr()
3661 irel[1].r_info = ELF64_R_INFO (0, R_ALPHA_NONE); in elf64_alpha_relax_tls_get_addr()
3673 irel[0].r_offset = pos[0] - info->contents; in elf64_alpha_relax_tls_get_addr()
3674 irel[0].r_info = ELF64_R_INFO (new_symndx, R_ALPHA_TPRELHI); in elf64_alpha_relax_tls_get_addr()
3675 irel[1].r_offset = pos[1] - info->contents; in elf64_alpha_relax_tls_get_addr()
3676 irel[1].r_info = ELF64_R_INFO (new_symndx, R_ALPHA_TPRELLO); in elf64_alpha_relax_tls_get_addr()
3689 irel[0].r_offset = pos[0] - info->contents; in elf64_alpha_relax_tls_get_addr()
3690 irel[0].r_info = ELF64_R_INFO (new_symndx, R_ALPHA_GOTTPREL); in elf64_alpha_relax_tls_get_addr()
3691 irel[1].r_info = ELF64_R_INFO (0, R_ALPHA_NONE); in elf64_alpha_relax_tls_get_addr()
3702 irel[2].r_info = ELF64_R_INFO (0, R_ALPHA_NONE); in elf64_alpha_relax_tls_get_addr()
3706 irel[2].r_offset, R_ALPHA_HINT); in elf64_alpha_relax_tls_get_addr()
3732 && tprel_gotent->addend == irel->r_addend) in elf64_alpha_relax_tls_get_addr()
3751 tprel_gotent->addend = irel->r_addend; in elf64_alpha_relax_tls_get_addr()
3771 Elf_Internal_Rela *irel, *irelend; in elf64_alpha_relax_section() local
3851 for (irel = internal_relocs; irel < irelend; irel++) in elf64_alpha_relax_section()
3855 unsigned long r_type = ELF64_R_TYPE (irel->r_info); in elf64_alpha_relax_section()
3856 unsigned long r_symndx = ELF64_R_SYM (irel->r_info); in elf64_alpha_relax_section()
3974 && gotent->addend == irel->r_addend) in elf64_alpha_relax_section()
3979 symval += irel->r_addend; in elf64_alpha_relax_section()
3989 if (irel+1 < irelend in elf64_alpha_relax_section()
3990 && ELF64_R_TYPE (irel[1].r_info) == R_ALPHA_LITUSE) in elf64_alpha_relax_section()
3992 if (!elf64_alpha_relax_with_lituse (&info, symval, irel)) in elf64_alpha_relax_section()
3997 if (!elf64_alpha_relax_got_load (&info, symval, irel, r_type)) in elf64_alpha_relax_section()
4005 if (!elf64_alpha_relax_got_load (&info, symval, irel, r_type)) in elf64_alpha_relax_section()
4012 if (!elf64_alpha_relax_tls_get_addr (&info, symval, irel, in elf64_alpha_relax_section()