Home | History | Annotate | Download | only in bfd

Lines Matching refs:rel

748 sparc_elf_append_rela (bfd *abfd, asection *s, Elf_Internal_Rela *rel)
755 bed->s->swap_reloca_out (abfd, rel, loc);
1064 bfd *abfd, const Elf_Internal_Rela *rel,
1073 r_symndx = SPARC_ELF_R_SYMNDX (htab, rel->r_info);
1376 const Elf_Internal_Rela *rel;
1405 for (rel = relocs; rel < rel_end; rel++)
1412 r_symndx = SPARC_ELF_R_SYMNDX (htab, rel->r_info);
1413 r_type = SPARC_ELF_R_TYPE (rel->r_info);
1434 h = elf_sparc_get_local_sym_hash (htab, abfd, rel,
1479 for (relt = rel + 1; relt < rel_end; relt++)
1661 if (ELF32_R_TYPE (rel->r_info) == R_SPARC_PLT32)
1680 this_r_type = SPARC_ELF_R_TYPE (rel->r_info);
1844 if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset))
1851 && !bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_addend))
1871 Elf_Internal_Rela *rel,
1876 switch (SPARC_ELF_R_TYPE (rel->r_info))
1887 switch (SPARC_ELF_R_TYPE (rel->r_info))
1906 return _bfd_elf_gc_mark_hook (sec, info, rel, h, sym);
1910 sparc_elf_find_reloc_at_ofs (Elf_Internal_Rela *rel,
1914 while (rel < relend)
1916 if (rel->r_offset == offset)
1917 return rel;
1918 rel++;
1932 const Elf_Internal_Rela *rel, *relend;
1948 for (rel = relocs; rel < relend; rel++)
1954 r_symndx = SPARC_ELF_R_SYMNDX (htab, rel->r_info);
1975 r_type = SPARC_ELF_R_TYPE (rel->r_info);
2208 .rel.bss section we are going to use. */
2946 Elf_Internal_Rela *rel;
2969 rel = relocs;
2975 for (; rel < relend; rel++)
2988 r_type = SPARC_ELF_R_TYPE (rel->r_info);
3000 r_symndx = SPARC_ELF_R_SYMNDX (htab, rel->r_info);
3009 relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel);
3016 rel, FALSE);
3029 RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel,
3047 rel, 1, relend, howto, 0, contents);
3106 rel->r_offset);
3121 outrel.r_addend = relocation + rel->r_addend;
3127 outrel.r_info = SPARC_ELF_R_INFO (htab, rel, h->dynindx, r_type);
3128 outrel.r_addend = rel->r_addend;
3182 bfd_vma insn = bfd_get_32 (input_bfd, contents + rel->r_offset);
3186 bfd_put_32 (output_bfd, relocation, contents + rel->r_offset);
3418 rel->r_offset);
3480 outrel.r_info = SPARC_ELF_R_INFO (htab, rel, h->dynindx, r_type);
3481 outrel.r_addend = rel->r_addend;
3489 outrel.r_addend = relocation + rel->r_addend;
3495 outrel.r_addend = relocation + rel->r_addend;
3538 outrel.r_info = SPARC_ELF_R_INFO (htab, rel, indx,
3574 switch (SPARC_ELF_R_TYPE (rel->r_info))
3606 contents + rel->r_offset)
3607 | 0x80182000), contents + rel->r_offset);
3697 bfd_put_32 (output_bfd, SPARC_NOP, contents + rel->r_offset);
3727 rel->r_offset);
3740 + rel->r_addend;
3753 bfd_put_32 (output_bfd, 0x90100000, contents + rel->r_offset);
3773 bfd_put_32 (output_bfd, SPARC_NOP, contents + rel->r_offset);
3778 if (rel + 1 < relend
3779 && SPARC_ELF_R_TYPE (rel[1].r_info) == R_SPARC_TLS_GD_ADD
3780 && rel[1].r_offset == rel->r_offset + 4
3781 && SPARC_ELF_R_SYMNDX (htab, rel[1].r_info) == r_symndx
3783 contents + rel[1].r_offset))
3796 contents + rel->r_offset);
3798 contents + rel->r_offset + 4);
3799 rel++;
3807 insn = bfd_get_32 (input_bfd, contents + rel->r_offset + 4);
3809 contents + rel->r_offset);
3811 contents + rel->r_offset + 4);
3813 rel2 = rel;
3815 rel->r_offset + 4))
3847 bfd_vma insn = bfd_get_32 (input_bfd, contents + rel->r_offset);
3852 bfd_put_32 (output_bfd, relocation, contents + rel->r_offset);
3858 bfd_put_32 (output_bfd, SPARC_NOP, contents + rel->r_offset);
3865 bfd_vma insn = bfd_get_32 (input_bfd, contents + rel->r_offset);
3867 bfd_put_32 (output_bfd, insn, contents + rel->r_offset);
3875 bfd_vma insn = bfd_get_32 (input_bfd, contents + rel->r_offset);
3883 bfd_put_32 (output_bfd, relocation, contents + rel->r_offset);
3907 rel->r_offset) != (bfd_vma) -1)
3912 (long) rel->r_offset,
3924 relocation += rel->r_addend;
3925 relocation = (relocation & 0x3ff) + ELF64_R_TYPE_DATA (rel->r_info);
3927 x = bfd_get_32 (input_bfd, contents + rel->r_offset);
3929 bfd_put_32 (input_bfd, x, contents + rel->r_offset);
3940 relocation += rel->r_addend;
3943 relocation -= rel->r_offset;
3945 x = bfd_get_32 (input_bfd, contents + rel->r_offset);
3948 bfd_put_32 (input_bfd, x, contents + rel->r_offset);
3959 relocation += rel->r_addend;
3962 relocation -= rel->r_offset;
3964 x = bfd_get_32 (input_bfd, contents + rel->r_offset);
3967 bfd_put_32 (input_bfd, x, contents + rel->r_offset);
3978 relocation = relocation + rel->r_addend;
3980 x = bfd_get_32 (input_bfd, contents + rel->r_offset);
3982 bfd_putl32 (/*input_bfd,*/ x, contents + rel->r_offset);
3990 relocation += rel->r_addend;
3994 x = bfd_get_32 (input_bfd, contents + rel->r_offset);
3996 bfd_put_32 (input_bfd, x, contents + rel->r_offset);
4004 relocation += rel->r_addend;
4009 x = bfd_get_32 (input_bfd, contents + rel->r_offset);
4011 bfd_put_32 (input_bfd, x, contents + rel->r_offset);
4020 relocation += rel->r_addend;
4025 x = bfd_get_32 (input_bfd, contents + rel->r_offset);
4027 bfd_put_32 (input_bfd, x, contents + rel->r_offset);
4039 relocation += rel->r_addend;
4046 x = bfd_get_32 (input_bfd, contents + rel->r_offset);
4048 bfd_put_32 (input_bfd, x, contents + rel->r_offset);
4054 && rel->r_offset + 4 < input_section->size)
4074 x = bfd_get_32 (input_bfd, contents + rel->r_offset);
4075 y = bfd_get_32 (input_bfd, contents + rel->r_offset + 4);
4087 reloc = relocation + rel->r_addend - rel->r_offset;
4106 bfd_put_32 (input_bfd, x, contents + rel->r_offset);
4108 if (rel->r_offset >= 4
4116 contents + rel->r_offset - 4);
4135 contents + rel->r_offset + 4);
4147 contents, rel->r_offset,
4148 relocation, rel->r_addend);
4174 rel->r_offset)
4204 rel->r_offset)))
4706 Elf_Internal_Rela rel;
4709 bfd_elf32_swap_reloc_in (output_bfd, loc, &rel);
4710 rel.r_info = ELF32_R_INFO (htab->elf.hgot->indx, R_SPARC_HI22);
4711 bfd_elf32_swap_reloc_out (output_bfd, &rel, loc);
4715 bfd_elf32_swap_reloc_in (output_bfd, loc, &rel);
4716 rel.r_info = ELF32_R_INFO (htab->elf.hgot->indx, R_SPARC_LO10);
4717 bfd_elf32_swap_reloc_out (output_bfd, &rel, loc);
4721 bfd_elf32_swap_reloc_in (output_bfd, loc, &rel);
4722 rel.r_info = ELF32_R_INFO (htab->elf.hplt->indx, R_SPARC_32);
4723 bfd_elf32_swap_reloc_out (output_bfd, &rel, loc);
4869 /* Return address for Ith PLT stub in section PLT, for relocation REL
4873 _bfd_sparc_elf_plt_sym_val (bfd_vma i, const asection *plt, const arelent *rel)
4888 return rel->address;