Lines Matching refs:rel
432 valid as a REL, dynamic relocation. */
707 /* The following 3 relocations are REL. The only difference to the
811 /* A pointer to the .rel.got section. */
817 /* A pointer to the .rel.plt section. */
2566 /* Set the howto pointer for an FRV ELF REL reloc. */
2611 Elf_Internal_Rela *rel,
2615 contents, rel->r_offset, relocation,
2616 rel->r_addend);
2627 actually uses Rel structures, the r_addend field will always be
2663 Elf_Internal_Rela *rel;
2700 for (rel = relocs; rel < relend; rel ++)
2713 bfd_vma orig_addend = rel->r_addend;
2715 r_type = ELF32_R_TYPE (rel->r_info);
2721 r_symndx = ELF32_R_SYM (rel->r_info);
2722 howto = elf32_frv_howto_table + ELF32_R_TYPE (rel->r_info);
2731 relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel);
2743 RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel,
2753 rel, 1, relend, howto, 0, contents);
2821 rel->r_addend))
2826 input_bfd, input_section, rel->r_offset, name, rel->r_addend);
2838 rel->r_offset) != (bfd_vma) -1)
2843 input_bfd, input_section, rel->r_offset);
2911 insn = bfd_get_32 (input_bfd, contents + rel->r_offset);
2918 input_bfd, input_section, rel->r_offset);
2923 relocation + rel->r_addend))
2929 bfd_put_32 (input_bfd, insn, contents + rel->r_offset);
2933 rel->r_info = ELF32_R_INFO (r_symndx, r_type);
2942 bfd_put_32 (input_bfd, insn, contents + rel->r_offset);
2946 rel->r_info = ELF32_R_INFO (r_symndx, r_type);
2952 insn = bfd_get_32 (input_bfd, contents + rel->r_offset);
2960 input_bfd, input_section, rel->r_offset);
2965 relocation + rel->r_addend)
2966 && TLSMOFF_IN_RANGE_FOR_SETLOS_P (relocation + rel->r_addend,
2976 bfd_put_32 (input_bfd, insn, contents + rel->r_offset);
2980 rel->r_info = ELF32_R_INFO (r_symndx, r_type);
2984 relocation + rel->r_addend))
2993 bfd_put_32 (input_bfd, insn, contents + rel->r_offset);
2997 rel->r_info = ELF32_R_INFO (r_symndx, r_type);
3013 bfd_put_32 (input_bfd, insn, contents + rel->r_offset);
3017 rel->r_info = ELF32_R_INFO (r_symndx, r_type);
3023 insn = bfd_get_32 (input_bfd, contents + rel->r_offset);
3031 input_bfd, input_section, rel->r_offset);
3036 relocation + rel->r_addend)
3043 bfd_put_32 (input_bfd, insn, contents + rel->r_offset);
3054 rel->r_info = ELF32_R_INFO (r_symndx, r_type);
3060 insn = bfd_get_32 (input_bfd, contents + rel->r_offset);
3068 input_bfd, input_section, rel->r_offset);
3073 relocation + rel->r_addend)
3081 bfd_put_32 (input_bfd, insn, contents + rel->r_offset);
3095 bfd_put_32 (input_bfd, insn, contents + rel->r_offset);
3101 rel->r_info = ELF32_R_INFO (r_symndx, r_type);
3107 insn = bfd_get_32 (input_bfd, contents + rel->r_offset);
3115 input_bfd, input_section, rel->r_offset);
3120 relocation + rel->r_addend)
3121 && TLSMOFF_IN_RANGE_FOR_SETLOS_P (relocation + rel
3131 bfd_put_32 (input_bfd, insn, contents + rel->r_offset);
3135 rel->r_info = ELF32_R_INFO (r_symndx, r_type);
3139 relocation + rel->r_addend))
3148 bfd_put_32 (input_bfd, insn, contents + rel->r_offset);
3152 rel->r_info = ELF32_R_INFO (r_symndx, r_type);
3165 bfd_put_32 (input_bfd, insn, contents + rel->r_offset);
3169 rel->r_info = ELF32_R_INFO (r_symndx, r_type);
3180 bfd_put_32 (input_bfd, insn, contents + rel->r_offset);
3191 insn = bfd_get_32 (input_bfd, contents + rel->r_offset);
3199 input_bfd, input_section, rel->r_offset);
3204 relocation + rel->r_addend)
3205 && TLSMOFF_IN_RANGE_FOR_SETLOS_P (relocation + rel->r_addend,
3211 bfd_put_32 (input_bfd, insn, contents + rel->r_offset);
3218 relocation + rel->r_addend))
3224 bfd_put_32 (input_bfd, insn, contents + rel->r_offset);
3228 rel->r_info = ELF32_R_INFO (r_symndx, r_type);
3236 bfd_put_32 (input_bfd, insn, contents + rel->r_offset);
3245 insn = bfd_get_32 (input_bfd, contents + rel->r_offset);
3253 input_bfd, input_section, rel->r_offset);
3258 relocation + rel->r_addend))
3265 bfd_put_32 (input_bfd, insn, contents + rel->r_offset);
3269 rel->r_info = ELF32_R_INFO (r_symndx, r_type);
3275 insn = bfd_get_32 (input_bfd, contents + rel->r_offset);
3283 input_bfd, input_section, rel->r_offset);
3288 relocation + rel->r_addend)
3295 bfd_put_32 (input_bfd, insn, contents + rel->r_offset);
3304 insn = bfd_get_32 (input_bfd, contents + rel->r_offset);
3312 input_bfd, input_section, rel->r_offset);
3317 relocation + rel->r_addend)
3325 bfd_put_32 (input_bfd, insn, contents + rel->r_offset);
3334 insn = bfd_get_32 (input_bfd, contents + rel->r_offset);
3342 input_bfd, input_section, rel->r_offset);
3347 relocation + rel->r_addend))
3354 bfd_put_32 (input_bfd, insn, contents + rel->r_offset);
3358 rel->r_info = ELF32_R_INFO (r_symndx, r_type);
3369 bfd_put_32 (input_bfd, insn, contents + rel->r_offset);
3373 rel->r_info = ELF32_R_INFO (r_symndx, r_type);
3379 insn = bfd_get_32 (input_bfd, contents + rel->r_offset);
3387 input_bfd, input_section, rel->r_offset);
3391 if (TLSMOFF_IN_RANGE_FOR_SETLOS_P (relocation + rel->r_addend,
3397 bfd_put_32 (input_bfd, insn, contents + rel->r_offset);
3406 insn = bfd_get_32 (input_bfd, contents + rel->r_offset);
3414 input_bfd, input_section, rel->r_offset);
3418 if (TLSMOFF_IN_RANGE_FOR_SETLOS_P (relocation + rel->r_addend,
3425 bfd_put_32 (input_bfd, insn, contents + rel->r_offset);
3506 bfd_vma addend = rel->r_addend;
3535 input_bfd, input_section, rel->r_offset);
3576 input_bfd, input_section, rel->r_offset);
3582 input_section, rel->r_offset);
3607 input_bfd, input_section, rel->r_offset);
3613 input_section, rel->r_offset);
3628 relocations are REL. Setting relocation to it should
3630 relocation = addend - rel->r_addend;
3645 bfd_vma addend = rel->r_addend;
3656 input_bfd, input_section, rel->r_offset);
3697 input_bfd, input_section, rel->r_offset);
3704 input_section, rel->r_offset);
3741 input_bfd, input_section, rel->r_offset);
3747 input_section, rel->r_offset);
3760 relocations are REL. Setting relocation to it
3762 relocation = addend - rel->r_addend;
3776 contents + rel->r_offset + 4);
3790 contents + rel->r_offset + 4);
3911 input_bfd, input_section, rel->r_offset, name);
3924 relocation += rel->r_addend;
3982 relocation -= rel->r_addend;
3990 r = elf32_frv_relocate_hi16 (input_bfd, rel, contents, relocation);
3993 r = elf32_frv_relocate_lo16 (input_bfd, rel, contents, relocation);
3996 r = elf32_frv_relocate_label24 (input_bfd, input_section, rel,
4000 r = elf32_frv_relocate_gprel12 (info, input_bfd, input_section, rel,
4004 r = elf32_frv_relocate_gprelu12 (info, input_bfd, input_section, rel,
4008 r = elf32_frv_relocate_gprello (info, input_bfd, input_section, rel,
4012 r = elf32_frv_relocate_gprelhi (info, input_bfd, input_section, rel,
4021 rel, relocation);
4032 (bfd_vma) 0, input_bfd, input_section, rel->r_offset);
4037 (info, name, input_bfd, input_section, rel->r_offset, TRUE);
4061 input_bfd, input_section, rel->r_offset, name, msg);
4080 Elf_Internal_Rela *rel,
4085 switch (ELF32_R_TYPE (rel->r_info))
4092 return _bfd_elf_gc_mark_hook (sec, info, rel, h, sym);
4233 s = bfd_make_section_anyway_with_flags (abfd, ".rel.got",
4309 /* FRV-specific: we want rel relocations for the plt. */
4310 s = bfd_make_section_anyway_with_flags (abfd, ".rel.plt",
4336 /* We need to create .plt, .rel[a].plt, .got, .got.plt, .dynbss, and
4337 .rel[a].bss sections. */
4363 /* The .rel[a].bss section holds copy relocs. This section is not
4378 ? ".rela.bss" : ".rel.bss"),
5519 Elf_Internal_Rela *rel, *erel;
5528 rel = elf_section_data (sec)->relocs;
5531 for (erel = rel + sec->reloc_count; rel < erel; rel++)
5538 if (ELF32_R_TYPE (rel->r_info) != R_FRV_32
5539 && ELF32_R_TYPE (rel->r_info) != R_FRV_FUNCDESC)
5543 info, sec, rel->r_offset)
5547 r_symndx = ELF32_R_SYM (rel->r_info);
5561 rel->r_addend, NO_INSERT);
5565 rel->r_addend, NO_INSERT);
5574 if (ELF32_R_TYPE (rel->r_info) == R_FRV_32)
5576 else /* we know (ELF32_R_TYPE (rel->r_info) == R_FRV_FUNCDESC) */
5980 Whether it's in .plt.rel or not depends on whether lazy binding is
6026 const Elf_Internal_Rela *rel;
6039 for (rel = relocs; rel < rel_end; rel++)
6044 r_symndx = ELF32_R_SYM (rel->r_info);
6059 switch (ELF32_R_TYPE (rel->r_info))
6123 rel->r_addend, INSERT);
6128 rel->r_addend, INSERT);
6138 switch (ELF32_R_TYPE (rel->r_info))
6240 if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset))
6249 && !bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_addend))
6270 abfd, ELF32_R_TYPE (rel->r_info));
6880 /* We use REL for dynamic relocations only. */