Lines Matching defs:rel

747 sparc_elf_append_rela (bfd *abfd, asection *s, Elf_Internal_Rela *rel)
754 bed->s->swap_reloca_out (abfd, rel, loc);
1063 bfd *abfd, const Elf_Internal_Rela *rel,
1072 r_symndx = SPARC_ELF_R_SYMNDX (htab, rel->r_info);
1371 const Elf_Internal_Rela *rel;
1400 for (rel = relocs; rel < rel_end; rel++)
1407 r_symndx = SPARC_ELF_R_SYMNDX (htab, rel->r_info);
1408 r_type = SPARC_ELF_R_TYPE (rel->r_info);
1429 h = elf_sparc_get_local_sym_hash (htab, abfd, rel,
1474 for (relt = rel + 1; relt < rel_end; relt++)
1657 if (ELF32_R_TYPE (rel->r_info) == R_SPARC_PLT32)
1676 this_r_type = SPARC_ELF_R_TYPE (rel->r_info);
1840 if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset))
1847 && !bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_addend))
1867 Elf_Internal_Rela *rel,
1872 switch (SPARC_ELF_R_TYPE (rel->r_info))
1883 switch (SPARC_ELF_R_TYPE (rel->r_info))
1902 return _bfd_elf_gc_mark_hook (sec, info, rel, h, sym);
1906 sparc_elf_find_reloc_at_ofs (Elf_Internal_Rela *rel,
1910 while (rel < relend)
1912 if (rel->r_offset == offset)
1913 return rel;
1914 rel++;
1928 const Elf_Internal_Rela *rel, *relend;
1944 for (rel = relocs; rel < relend; rel++)
1950 r_symndx = SPARC_ELF_R_SYMNDX (htab, rel->r_info);
1971 r_type = SPARC_ELF_R_TYPE (rel->r_info);
2204 .rel.bss section we are going to use. */
2980 Elf_Internal_Rela *rel;
3003 rel = relocs;
3009 for (; rel < relend; rel++)
3022 r_type = SPARC_ELF_R_TYPE (rel->r_info);
3034 r_symndx = SPARC_ELF_R_SYMNDX (htab, rel->r_info);
3043 relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel);
3050 rel, FALSE);
3063 RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel,
3081 rel, 1, relend, howto, 0, contents);
3140 rel->r_offset);
3155 outrel.r_addend = relocation + rel->r_addend;
3161 outrel.r_info = SPARC_ELF_R_INFO (htab, rel, h->dynindx, r_type);
3162 outrel.r_addend = rel->r_addend;
3215 bfd_vma insn = bfd_get_32 (input_bfd, contents + rel->r_offset);
3219 bfd_put_32 (output_bfd, relocation, contents + rel->r_offset);
3455 rel->r_offset);
3517 outrel.r_info = SPARC_ELF_R_INFO (htab, rel, h->dynindx, r_type);
3518 outrel.r_addend = rel->r_addend;
3527 outrel.r_addend = relocation + rel->r_addend;
3533 outrel.r_addend = relocation + rel->r_addend;
3576 outrel.r_info = SPARC_ELF_R_INFO (htab, rel, indx,
3614 switch (SPARC_ELF_R_TYPE (rel->r_info))
3646 contents + rel->r_offset)
3647 | 0x80182000), contents + rel->r_offset);
3737 bfd_put_32 (output_bfd, SPARC_NOP, contents + rel->r_offset);
3767 rel->r_offset);
3780 + rel->r_addend;
3793 bfd_put_32 (output_bfd, 0x90100000, contents + rel->r_offset);
3813 bfd_put_32 (output_bfd, SPARC_NOP, contents + rel->r_offset);
3818 if (rel + 1 < relend
3819 && SPARC_ELF_R_TYPE (rel[1].r_info) == R_SPARC_TLS_GD_ADD
3820 && rel[1].r_offset == rel->r_offset + 4
3821 && SPARC_ELF_R_SYMNDX (htab, rel[1].r_info) == r_symndx
3823 contents + rel[1].r_offset))
3836 contents + rel->r_offset);
3838 contents + rel->r_offset + 4);
3839 rel++;
3847 insn = bfd_get_32 (input_bfd, contents + rel->r_offset + 4);
3849 contents + rel->r_offset);
3851 contents + rel->r_offset + 4);
3853 rel2 = rel;
3855 rel->r_offset + 4))
3887 bfd_vma insn = bfd_get_32 (input_bfd, contents + rel->r_offset);
3892 bfd_put_32 (output_bfd, relocation, contents + rel->r_offset);
3898 bfd_put_32 (output_bfd, SPARC_NOP, contents + rel->r_offset);
3905 bfd_vma insn = bfd_get_32 (input_bfd, contents + rel->r_offset);
3907 bfd_put_32 (output_bfd, insn, contents + rel->r_offset);
3915 bfd_vma insn = bfd_get_32 (input_bfd, contents + rel->r_offset);
3923 bfd_put_32 (output_bfd, relocation, contents + rel->r_offset);
3947 rel->r_offset) != (bfd_vma) -1)
3953 (long) rel->r_offset,
3965 relocation += rel->r_addend;
3966 relocation = (relocation & 0x3ff) + ELF64_R_TYPE_DATA (rel->r_info);
3968 x = bfd_get_32 (input_bfd, contents + rel->r_offset);
3970 bfd_put_32 (input_bfd, x, contents + rel->r_offset);
3981 relocation += rel->r_addend;
3984 relocation -= rel->r_offset;
3986 x = bfd_get_32 (input_bfd, contents + rel->r_offset);
3989 bfd_put_32 (input_bfd, x, contents + rel->r_offset);
4000 relocation += rel->r_addend;
4003 relocation -= rel->r_offset;
4005 x = bfd_get_32 (input_bfd, contents + rel->r_offset);
4008 bfd_put_32 (input_bfd, x, contents + rel->r_offset);
4019 relocation = relocation + rel->r_addend;
4021 x = bfd_get_32 (input_bfd, contents + rel->r_offset);
4023 bfd_putl32 (/*input_bfd,*/ x, contents + rel->r_offset);
4031 relocation += rel->r_addend;
4035 x = bfd_get_32 (input_bfd, contents + rel->r_offset);
4037 bfd_put_32 (input_bfd, x, contents + rel->r_offset);
4045 relocation += rel->r_addend;
4050 x = bfd_get_32 (input_bfd, contents + rel->r_offset);
4052 bfd_put_32 (input_bfd, x, contents + rel->r_offset);
4062 relocation += rel->r_addend;
4067 x = bfd_get_32 (input_bfd, contents + rel->r_offset);
4069 bfd_put_32 (input_bfd, x, contents + rel->r_offset);
4082 relocation += rel->r_addend;
4089 x = bfd_get_32 (input_bfd, contents + rel->r_offset);
4091 bfd_put_32 (input_bfd, x, contents + rel->r_offset);
4097 && rel->r_offset + 4 < input_section->size)
4117 x = bfd_get_32 (input_bfd, contents + rel->r_offset);
4118 y = bfd_get_32 (input_bfd, contents + rel->r_offset + 4);
4130 reloc = relocation + rel->r_addend - rel->r_offset;
4149 bfd_put_32 (input_bfd, x, contents + rel->r_offset);
4151 if (rel->r_offset >= 4
4159 contents + rel->r_offset - 4);
4178 contents + rel->r_offset + 4);
4190 contents, rel->r_offset,
4191 relocation, rel->r_addend);
4217 rel->r_offset)
4246 (bfd_vma) 0, input_bfd, input_section, rel->r_offset);
4742 Elf_Internal_Rela rel;
4745 bfd_elf32_swap_reloc_in (output_bfd, loc, &rel);
4746 rel.r_info = ELF32_R_INFO (htab->elf.hgot->indx, R_SPARC_HI22);
4747 bfd_elf32_swap_reloc_out (output_bfd, &rel, loc);
4751 bfd_elf32_swap_reloc_in (output_bfd, loc, &rel);
4752 rel.r_info = ELF32_R_INFO (htab->elf.hgot->indx, R_SPARC_LO10);
4753 bfd_elf32_swap_reloc_out (output_bfd, &rel, loc);
4757 bfd_elf32_swap_reloc_in (output_bfd, loc, &rel);
4758 rel.r_info = ELF32_R_INFO (htab->elf.hplt->indx, R_SPARC_32);
4759 bfd_elf32_swap_reloc_out (output_bfd, &rel, loc);
4962 _bfd_sparc_elf_plt_sym_val (bfd_vma i, const asection *plt, const arelent *rel)
4977 return rel->address;