/netbsd-src/libexec/ld.elf_so/arch/hppa/ |
H A D | hppa_reloc.c | 235 relocbase + rela->r_addend); in _rtld_relocate_nonplt_self() 239 relocbase + rela->r_addend + sym->st_value); in _rtld_relocate_nonplt_self() 257 relocbase + rela->r_addend; in _rtld_relocate_nonplt_self() 276 (relocbase + sym->st_value + rela->r_addend); in _rtld_relocate_nonplt_self() 292 (void *)rela->r_addend, in _rtld_relocate_nonplt_self() 302 (void *)rela->r_addend, in _rtld_relocate_nonplt_self() 312 (void *)rela->r_addend, 462 rela->r_addend); in _rtld_relocate_nonplt_objects() 488 (obj->relocbase + rela->r_addend); in _rtld_relocate_nonplt_objects() 533 def->st_value + rela->r_addend); in _rtld_relocate_nonplt_objects() [all...] |
/netbsd-src/libexec/ld.elf_so/arch/x86_64/ |
H A D | mdreloc.c | 128 *where = (Elf_Addr)(relocbase + rela->r_addend); in _rtld_relocate_nonplt_self() 181 def->st_value + rela->r_addend); in _rtld_relocate_nonplt_objects() 192 rela->r_addend); in _rtld_relocate_nonplt_objects() 202 def->st_value + rela->r_addend - in _rtld_relocate_nonplt_objects() 221 tmp64 = (Elf64_Addr)(obj->relocbase + rela->r_addend); in _rtld_relocate_nonplt_objects() 234 defobj->tlsoffset + rela->r_addend); in _rtld_relocate_nonplt_objects() 252 *where64 = (Elf64_Addr)(def->st_value + rela->r_addend); in _rtld_relocate_nonplt_objects() 277 (void *)rela->r_offset, (void *)rela->r_addend, in _rtld_relocate_nonplt_objects() 336 rela->r_addend); in _rtld_relocate_plt_object() 345 *tp = new_value - rela->r_addend; in _rtld_relocate_plt_object() [all...] |
/netbsd-src/libexec/ld.elf_so/arch/sh3/ |
H A D | mdreloc.c | 56 *where = (Elf_Addr)(relocbase + rela->r_addend); in _rtld_relocate_nonplt_objects() 103 rela->r_addend); in _rtld_relocate_nonplt_objects() 113 rela->r_addend) - (Elf_Addr)where; in _rtld_relocate_nonplt_objects() 124 rela->r_addend); in _rtld_relocate_nonplt_objects() 134 rela->r_addend; in _rtld_relocate_nonplt_objects() 143 if (rela->r_addend) in _rtld_relocate_nonplt_objects() 144 *where = (Elf_Addr)obj->relocbase + rela->r_addend; in _rtld_relocate_nonplt_objects() 190 rela->r_addend + defobj->tlsoffset + in _rtld_relocate_nonplt_objects() 203 (void *)rela->r_offset, (void *)rela->r_addend, in _rtld_relocate_nonplt_objects()
|
/netbsd-src/libexec/ld.elf_so/arch/m68k/ |
H A D | mdreloc.c | 96 rela->r_addend) - (Elf_Addr)where; in _rtld_relocate_nonplt_objects() 109 rela->r_addend); in _rtld_relocate_nonplt_objects() 147 *where = (Elf_Addr)(def->st_value + rela->r_addend in _rtld_relocate_nonplt_objects() 159 *where = (Elf_Addr)(def->st_value + rela->r_addend in _rtld_relocate_nonplt_objects() 171 (void *)rela->r_offset, (void *)rela->r_addend, in _rtld_relocate_nonplt_objects() 222 assert(rela->r_addend == 0); in _rtld_relocate_plt_object() 229 rela->r_addend); in _rtld_relocate_plt_object() 237 *tp = new_value - rela->r_addend; in _rtld_relocate_plt_object()
|
/netbsd-src/external/gpl3/binutils.old/dist/bfd/ |
H A D | aout-cris.c | 149 bfd_vma r_addend; in MY() local 157 r_addend = g->addend; in MY() 159 r_addend += (*(g->sym_ptr_ptr))->section->output_section->vma; in MY() 210 PUT_WORD (abfd, r_addend, natptr->r_addend); in MY() 265 MOVE_ADDRESS (GET_SWORD (abfd, bytes->r_addend)); in MY()
|
H A D | elf32-msp430.c | 828 BFD_ASSERT (! is_rel_reloc || rel->r_addend == 0); in msp430_final_link_relocate() 843 relocation += (!is_rel_reloc ? rel->r_addend : 0); in msp430_final_link_relocate() 871 relocation += (!is_rel_reloc ? rel->r_addend : 0); in msp430_final_link_relocate() 943 ? rel->r_addend : 0); in msp430_final_link_relocate() 952 srel += rel->r_addend; in msp430_final_link_relocate() 962 srel += rel->r_addend; in msp430_final_link_relocate() 1009 srel += rel->r_addend; in msp430_final_link_relocate() 1031 srel += rel->r_addend; in msp430_final_link_relocate() 1045 srel += rel->r_addend; in msp430_final_link_relocate() 1067 srel += rel->r_addend; in msp430_final_link_relocate() [all …]
|
H A D | elf32-nds32.c | 5071 bfd_vma addend = rel->r_addend; in nds32_elf_relocate_section() 5098 && (rel->r_addend & R_NDS32_RELAX_REGION_OMIT_FP_FLAG)) in nds32_elf_relocate_section() 5103 dist = rel->r_addend >> 16; in nds32_elf_relocate_section() 5108 && (rel->r_addend & R_NDS32_RELAX_REGION_OMIT_FP_FLAG)) in nds32_elf_relocate_section() 5137 addend = rel->r_addend; in nds32_elf_relocate_section() 5148 rel->r_addend += sec->output_offset + sym->st_value; in nds32_elf_relocate_section() 5412 outrel.r_addend = relocation; in nds32_elf_relocate_section() 5508 outrel.r_addend = rel->r_addend; in nds32_elf_relocate_section() 5521 outrel.r_addend = relocation + rel->r_addend; in nds32_elf_relocate_section() 5533 bfd_put_32 (output_bfd, outrel.r_addend, in nds32_elf_relocate_section() [all …]
|
H A D | elf32-vax.c | 641 eh->got_addend = rel->r_addend; in elf_vax_check_relocs() 646 if (eh->got_addend != (bfd_vma) rel->r_addend) in elf_vax_check_relocs() 651 abfd, (int64_t) rel->r_addend, h->root.root.string, in elf_vax_check_relocs() 814 if (!bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_addend)) in elf_vax_check_relocs() 1361 bfd_put_32 (output_bfd, rel->r_addend, sgot->contents + off); in elf_vax_relocate_section() 1365 rel->r_addend = 0; in elf_vax_relocate_section() 1410 if (rel->r_addend == 2) in elf_vax_relocate_section() 1414 else if (rel->r_addend != 0) in elf_vax_relocate_section() 1419 input_bfd, (int64_t) rel->r_addend, h->root.root.string, in elf_vax_relocate_section() 1421 rel->r_addend = 0; in elf_vax_relocate_section() [all …]
|
H A D | elf32-avr.c | 1044 srel += rel->r_addend; in avr_final_link_relocate() 1062 srel += rel->r_addend; in avr_final_link_relocate() 1101 srel = (bfd_signed_vma) relocation + rel->r_addend; in avr_final_link_relocate() 1109 srel = (bfd_signed_vma) relocation + rel->r_addend; in avr_final_link_relocate() 1122 srel = (bfd_signed_vma) relocation + rel->r_addend; in avr_final_link_relocate() 1134 srel = (bfd_signed_vma) relocation + rel->r_addend; in avr_final_link_relocate() 1145 srel = (bfd_signed_vma) relocation + rel->r_addend; in avr_final_link_relocate() 1154 srel = (bfd_signed_vma) relocation + rel->r_addend; in avr_final_link_relocate() 1163 srel = (bfd_signed_vma) relocation + rel->r_addend; in avr_final_link_relocate() 1172 srel = (bfd_signed_vma) relocation + rel->r_addend; in avr_final_link_relocate() [all …]
|
H A D | elf32-ft32.c | 423 offset += (int)(rel->r_addend - rel->r_offset); in ft32_elf_relocate_section() 448 offset += (int)(rel->r_addend - rel->r_offset); in ft32_elf_relocate_section() 470 relocation, rel->r_addend); in ft32_elf_relocate_section() 590 insn |= ((symval + irel->r_addend) << howto->bitpos) & howto->dst_mask; in ft32_reloc_shortable() 598 value = symval + irel->r_addend; in ft32_reloc_shortable() 689 sym2_address = symval + irel->r_addend; in elf32_ft32_adjust_diff_reloc_value() 706 irel->r_addend -= count; in elf32_ft32_adjust_diff_reloc_value() 741 bfd_vma reloc_value = symval + irel->r_addend; in elf32_ft32_adjust_reloc_if_spans_insn() 752 irel->r_addend -= count; in elf32_ft32_adjust_reloc_if_spans_insn() 867 (unsigned int) (symval + irel->r_addend), in elf32_ft32_relax_delete_bytes() [all …]
|
H A D | elf32-rl78.c | 784 rel->r_addend += sec->output_offset; in rl78_elf_relocate_section() 851 relocation += rel->r_addend; in rl78_elf_relocate_section() 1056 + sym->st_value + rel->r_addend; in rl78_elf_relocate_section() 1063 + rel->r_addend; in rl78_elf_relocate_section() 1718 && irel->r_addend & RL78_RELAXA_ALIGN) in elf32_rl78_relax_delete_bytes() 1803 && (r[i + 1].r_addend & RL78_RELAXA_ALIGN)) in reloc_bubblesort() 1806 && (r[i + 1].r_addend & RL78_RELAXA_ELIGN) in reloc_bubblesort() 1808 && (r[i].r_addend & RL78_RELAXA_ALIGN))) in reloc_bubblesort() 1885 symval += rel->r_addend; in rl78_offset_for_reloc() 1901 symval += rel->r_addend; in rl78_offset_for_reloc() [all …]
|
/netbsd-src/external/gpl3/binutils/dist/bfd/ |
H A D | aout-cris.c | 149 bfd_vma r_addend; in MY() local 157 r_addend = g->addend; in MY() 159 r_addend += (*(g->sym_ptr_ptr))->section->output_section->vma; in MY() 210 PUT_WORD (abfd, r_addend, natptr->r_addend); in MY() 265 MOVE_ADDRESS (GET_SWORD (abfd, bytes->r_addend)); in MY()
|
H A D | elf32-msp430.c | 828 BFD_ASSERT (! is_rel_reloc || rel->r_addend == 0); in msp430_final_link_relocate() 843 relocation += (!is_rel_reloc ? rel->r_addend : 0); in msp430_final_link_relocate() 871 relocation += (!is_rel_reloc ? rel->r_addend : 0); in msp430_final_link_relocate() 943 ? rel->r_addend : 0); in msp430_final_link_relocate() 952 srel += rel->r_addend; in msp430_final_link_relocate() 962 srel += rel->r_addend; in msp430_final_link_relocate() 1009 srel += rel->r_addend; in msp430_final_link_relocate() 1031 srel += rel->r_addend; in msp430_final_link_relocate() 1045 srel += rel->r_addend; in msp430_final_link_relocate() 1067 srel += rel->r_addend; in msp430_final_link_relocate() [all …]
|
H A D | elf32-nds32.c | 5071 bfd_vma addend = rel->r_addend; in nds32_elf_relocate_section() 5098 && (rel->r_addend & R_NDS32_RELAX_REGION_OMIT_FP_FLAG)) in nds32_elf_relocate_section() 5103 dist = rel->r_addend >> 16; in nds32_elf_relocate_section() 5108 && (rel->r_addend & R_NDS32_RELAX_REGION_OMIT_FP_FLAG)) in nds32_elf_relocate_section() 5137 addend = rel->r_addend; in nds32_elf_relocate_section() 5148 rel->r_addend += sec->output_offset + sym->st_value; in nds32_elf_relocate_section() 5412 outrel.r_addend = relocation; in nds32_elf_relocate_section() 5508 outrel.r_addend = rel->r_addend; in nds32_elf_relocate_section() 5521 outrel.r_addend = relocation + rel->r_addend; in nds32_elf_relocate_section() 5533 bfd_put_32 (output_bfd, outrel.r_addend, in nds32_elf_relocate_section() [all …]
|
H A D | elfnn-loongarch.c | 1016 if (!bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_addend)) in loongarch_elf_check_relocs() 2245 value += rel->r_addend; in perform_relocation() 2850 outrel.r_addend = (h->root.u.def.value in loongarch_elf_relocate_section() 2857 outrel.r_addend = 0; in loongarch_elf_relocate_section() 2893 outrel.r_addend = rel->r_addend; in loongarch_elf_relocate_section() 2898 outrel.r_addend = relocation + rel->r_addend; in loongarch_elf_relocate_section() 2907 relocation += rel->r_addend; in loongarch_elf_relocate_section() 2919 relocation = old_value + relocation + rel->r_addend; in loongarch_elf_relocate_section() 2932 relocation = old_value - relocation - rel->r_addend; in loongarch_elf_relocate_section() 2945 relocation = old_value + relocation + rel->r_addend; in loongarch_elf_relocate_section() [all …]
|
H A D | elf32-vax.c | 641 eh->got_addend = rel->r_addend; in elf_vax_check_relocs() 646 if (eh->got_addend != (bfd_vma) rel->r_addend) in elf_vax_check_relocs() 651 abfd, (int64_t) rel->r_addend, h->root.root.string, in elf_vax_check_relocs() 814 if (!bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_addend)) in elf_vax_check_relocs() 1361 bfd_put_32 (output_bfd, rel->r_addend, sgot->contents + off); in elf_vax_relocate_section() 1365 rel->r_addend = 0; in elf_vax_relocate_section() 1410 if (rel->r_addend == 2) in elf_vax_relocate_section() 1414 else if (rel->r_addend != 0) in elf_vax_relocate_section() 1419 input_bfd, (int64_t) rel->r_addend, h->root.root.string, in elf_vax_relocate_section() 1421 rel->r_addend = 0; in elf_vax_relocate_section() [all …]
|
H A D | elf32-avr.c | 1044 srel += rel->r_addend; in avr_final_link_relocate() 1062 srel += rel->r_addend; in avr_final_link_relocate() 1101 srel = (bfd_signed_vma) relocation + rel->r_addend; in avr_final_link_relocate() 1109 srel = (bfd_signed_vma) relocation + rel->r_addend; in avr_final_link_relocate() 1122 srel = (bfd_signed_vma) relocation + rel->r_addend; in avr_final_link_relocate() 1134 srel = (bfd_signed_vma) relocation + rel->r_addend; in avr_final_link_relocate() 1145 srel = (bfd_signed_vma) relocation + rel->r_addend; in avr_final_link_relocate() 1154 srel = (bfd_signed_vma) relocation + rel->r_addend; in avr_final_link_relocate() 1163 srel = (bfd_signed_vma) relocation + rel->r_addend; in avr_final_link_relocate() 1172 srel = (bfd_signed_vma) relocation + rel->r_addend; in avr_final_link_relocate() [all …]
|
H A D | elf32-ft32.c | 423 offset += (int)(rel->r_addend - rel->r_offset); in ft32_elf_relocate_section() 448 offset += (int)(rel->r_addend - rel->r_offset); in ft32_elf_relocate_section() 470 relocation, rel->r_addend); in ft32_elf_relocate_section() 590 insn |= ((symval + irel->r_addend) << howto->bitpos) & howto->dst_mask; in ft32_reloc_shortable() 598 value = symval + irel->r_addend; in ft32_reloc_shortable() 689 sym2_address = symval + irel->r_addend; in elf32_ft32_adjust_diff_reloc_value() 706 irel->r_addend -= count; in elf32_ft32_adjust_diff_reloc_value() 741 bfd_vma reloc_value = symval + irel->r_addend; in elf32_ft32_adjust_reloc_if_spans_insn() 752 irel->r_addend -= count; in elf32_ft32_adjust_reloc_if_spans_insn() 867 (unsigned int) (symval + irel->r_addend), in elf32_ft32_relax_delete_bytes() [all …]
|
H A D | elf32-rl78.c | 784 rel->r_addend += sec->output_offset; in rl78_elf_relocate_section() 851 relocation += rel->r_addend; in rl78_elf_relocate_section() 1056 + sym->st_value + rel->r_addend; in rl78_elf_relocate_section() 1063 + rel->r_addend; in rl78_elf_relocate_section() 1718 && irel->r_addend & RL78_RELAXA_ALIGN) in elf32_rl78_relax_delete_bytes() 1803 && (r[i + 1].r_addend & RL78_RELAXA_ALIGN)) in reloc_bubblesort() 1806 && (r[i + 1].r_addend & RL78_RELAXA_ELIGN) in reloc_bubblesort() 1808 && (r[i].r_addend & RL78_RELAXA_ALIGN))) in reloc_bubblesort() 1885 symval += rel->r_addend; in rl78_offset_for_reloc() 1901 symval += rel->r_addend; in rl78_offset_for_reloc() [all …]
|
/netbsd-src/libexec/ld.elf_so/arch/vax/ |
H A D | mdreloc.c | 46 *where = (Elf_Addr)(relocbase + rela->r_addend); in _rtld_relocate_nonplt_self() 89 rela->r_addend); in _rtld_relocate_nonplt_objects() 99 tmp = (Elf_Addr)(obj->relocbase + rela->r_addend); in _rtld_relocate_nonplt_objects() 127 (void *)rela->r_offset, (void *)rela->r_addend, in _rtld_relocate_nonplt_objects() 183 rela->r_addend); in _rtld_relocate_plt_object() 191 *tp = new_value - rela->r_addend; in _rtld_relocate_plt_object()
|
/netbsd-src/libexec/ld.elf_so/arch/aarch64/ |
H A D | mdreloc.c | 161 where[1] = rela->r_addend; in _rtld_tlsdesc_fill() 173 offs += rela->r_addend; in _rtld_tlsdesc_fill() 258 rela->r_addend; in _rtld_relocate_nonplt_objects() 275 *where = (Elf_Addr)(obj->relocbase + rela->r_addend); in _rtld_relocate_nonplt_objects() 301 *where = (Elf_Addr)(def->st_value + rela->r_addend); in _rtld_relocate_nonplt_objects() 322 rela->r_addend + sizeof(struct tls_tcb)); in _rtld_relocate_nonplt_objects() 334 (void *)rela->r_offset, (void *)rela->r_addend, in _rtld_relocate_plt_lazy() 388 target = (Elf_Addr)(obj->relocbase + rela->r_addend); in _rtld_relocate_plt_object()
|
/netbsd-src/libexec/ld.elf_so/arch/riscv/ |
H A D | mdreloc.c | 93 Elf_Addr val = relocbase + rela->r_addend; in _rtld_relocate_nonplt_self() 147 rela->r_addend; in _rtld_relocate_nonplt_objects() 161 def->st_value + rela->r_addend; in _rtld_relocate_nonplt_objects() 204 rela->r_addend - TLS_DTV_OFFSET); in _rtld_relocate_nonplt_objects() 222 rela->r_addend); in _rtld_relocate_nonplt_objects() 235 (void *)rela->r_offset, (void *)rela->r_addend,
|
/netbsd-src/libexec/ld.elf_so/arch/or1k/ |
H A D | mdreloc.c | 90 *where = (Elf_Addr)(relocbase + rela->r_addend); in _rtld_relocate_nonplt_self() 138 rela->r_addend); in _rtld_relocate_nonplt_objects() 147 *where = (Elf_Addr)(obj->relocbase + rela->r_addend); in _rtld_relocate_nonplt_objects() 176 *where = (Elf_Addr)(def->st_value + rela->r_addend in _rtld_relocate_nonplt_objects() 188 *where = (Elf_Addr)(def->st_value + rela->r_addend in _rtld_relocate_nonplt_objects() 200 (void *)rela->r_offset, (void *)rela->r_addend, in _rtld_relocate_nonplt_objects()
|
/netbsd-src/sys/arch/m68k/m68k/ |
H A D | kobj_machdep.c | 74 tmp = (Elf_Addr)(addr + rela->r_addend) - (Elf_Addr)where; in kobj_reloc() 84 tmp = (Elf_Addr)(addr + *where + rela->r_addend); in kobj_reloc() 89 *where += (Elf_Addr)(relocbase + rela->r_addend); in kobj_reloc()
|
/netbsd-src/libexec/ld.elf_so/arch/powerpc/ |
H A D | ppc_reloc.c | 188 *where = (Elf_Addr)(relocbase + rela->r_addend); in _rtld_relocate_nonplt_objects() 249 rela->r_addend); in _rtld_relocate_nonplt_objects() 264 rela->r_addend); in _rtld_relocate_nonplt_objects() 280 rela->r_addend); in _rtld_relocate_nonplt_objects() 302 *where = (Elf_Addr)(obj->relocbase + rela->r_addend); in _rtld_relocate_nonplt_objects() 331 *where = (Elf_Addr)(def->st_value + rela->r_addend in _rtld_relocate_nonplt_objects() 343 *where = (Elf_Addr)(def->st_value + rela->r_addend in _rtld_relocate_nonplt_objects() 363 (void *)rela->r_offset, (void *)rela->r_addend, in _rtld_relocate_plt_lazy()
|