Home
last modified time | relevance | path

Searched refs:r_offset (Results 1 – 25 of 90) sorted by relevance

1234

/NextBSD/sys/boot/common/
HDreloc_elf.c63 if (relbase + a->r_offset >= dataaddr && in __elfN()
64 relbase + a->r_offset < dataaddr + len) { in __elfN()
69 a->r_offset - dataaddr), sizeof(w)); in __elfN()
91 where = (Elf_Addr *)((char *)data + relbase + rel->r_offset - in __elfN()
100 where = (Elf_Addr *)((char *)data + relbase + rela->r_offset - in __elfN()
148 where = (Elf_Addr *)((char *)data + relbase + rel->r_offset - in __elfN()
157 where = (Elf_Addr *)((char *)data + relbase + rela->r_offset - in __elfN()
203 if (relbase + rela->r_offset >= dataaddr && in __elfN()
204 relbase + rela->r_offset < dataaddr + len) { in __elfN()
209 rela->r_offset - dataaddr), sizeof(w)); in __elfN()
/NextBSD/contrib/binutils/bfd/
HDelf32-i386.c1272 if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset)) in elf_i386_check_relocs()
1279 if (!bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_offset)) in elf_i386_check_relocs()
2278 bfd_byte *where = contents + rel->r_offset; in elf_i386_relocate_section()
2357 _bfd_clear_contents (howto, input_bfd, contents + rel->r_offset); in elf_i386_relocate_section()
2437 outrel.r_offset = (htab->sgot->output_section->vma in elf_i386_relocate_section()
2553 outrel.r_offset = in elf_i386_relocate_section()
2555 rel->r_offset); in elf_i386_relocate_section()
2556 if (outrel.r_offset == (bfd_vma) -1) in elf_i386_relocate_section()
2558 else if (outrel.r_offset == (bfd_vma) -2) in elf_i386_relocate_section()
2560 outrel.r_offset += (input_section->output_section->vma in elf_i386_relocate_section()
[all …]
HDelfxx-sparc.c598 bfd_vma *r_offset) in sparc32_plt_entry_build() argument
610 *r_offset = offset; in sparc32_plt_entry_build()
622 bfd_vma max, bfd_vma *r_offset) in sparc64_plt_entry_build() argument
632 *r_offset = offset; in sparc64_plt_entry_build()
693 *r_offset = (bfd_vma) (ptr - splt->contents); in sparc64_plt_entry_build()
1512 if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset)) in _bfd_sparc_elf_check_relocs()
2560 _bfd_clear_contents (howto, input_bfd, contents + rel->r_offset); in _bfd_sparc_elf_relocate_section()
2643 outrel.r_offset = (htab->sgot->output_section->vma in _bfd_sparc_elf_relocate_section()
2789 outrel.r_offset = in _bfd_sparc_elf_relocate_section()
2791 rel->r_offset); in _bfd_sparc_elf_relocate_section()
[all …]
HDelf32-cr16.c707 if ((irel->r_offset > addr && irel->r_offset < toaddr)) in elf32_cr16_relax_delete_bytes()
708 irel->r_offset -= count; in elf32_cr16_relax_delete_bytes()
850 contents, rel->r_offset, in elf32_cr16_relocate_section()
875 rel->r_offset))) in elf32_cr16_relocate_section()
882 rel->r_offset, TRUE))) in elf32_cr16_relocate_section()
905 rel->r_offset))) in elf32_cr16_relocate_section()
1155 value -= irel->r_offset; in elf32_cr16_relax_section()
1166 code = (unsigned int) bfd_get_32 (abfd, contents + irel->r_offset); in elf32_cr16_relax_section()
1171 bfd_put_16 (abfd, 0x1800 | ((0xf & (code >>20))<<4), contents + irel->r_offset); in elf32_cr16_relax_section()
1172 bfd_put_16 (abfd, value, contents + irel->r_offset+2); in elf32_cr16_relax_section()
[all …]
HDelf64-x86-64.c1130 if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset)) in elf64_x86_64_check_relocs()
2119 _bfd_clear_contents (howto, input_bfd, contents + rel->r_offset); in elf64_x86_64_relocate_section()
2232 outrel.r_offset = (base_got->output_section->vma in elf64_x86_64_relocate_section()
2348 rel->r_offset))) in elf64_x86_64_relocate_section()
2408 outrel.r_offset = in elf64_x86_64_relocate_section()
2410 rel->r_offset); in elf64_x86_64_relocate_section()
2411 if (outrel.r_offset == (bfd_vma) -1) in elf64_x86_64_relocate_section()
2413 else if (outrel.r_offset == (bfd_vma) -2) in elf64_x86_64_relocate_section()
2416 outrel.r_offset += (input_section->output_section->vma in elf64_x86_64_relocate_section()
2536 BFD_ASSERT (rel->r_offset >= 4); in elf64_x86_64_relocate_section()
[all …]
HDelf64-mips.c1683 dst->r_offset = H_GET_64 (abfd, src->r_offset); in mips_elf64_swap_reloc_in()
1698 dst->r_offset = H_GET_64 (abfd, src->r_offset); in mips_elf64_swap_reloca_in()
1713 H_PUT_64 (abfd, src->r_offset, dst->r_offset); in mips_elf64_swap_reloc_out()
1727 H_PUT_64 (abfd, src->r_offset, dst->r_offset); in mips_elf64_swap_reloca_out()
1748 dst[0].r_offset = mirel.r_offset; in mips_elf64_be_swap_reloc_in()
1751 dst[1].r_offset = mirel.r_offset; in mips_elf64_be_swap_reloc_in()
1754 dst[2].r_offset = mirel.r_offset; in mips_elf64_be_swap_reloc_in()
1771 dst[0].r_offset = mirela.r_offset; in mips_elf64_be_swap_reloca_in()
1774 dst[1].r_offset = mirela.r_offset; in mips_elf64_be_swap_reloca_in()
1777 dst[2].r_offset = mirela.r_offset; in mips_elf64_be_swap_reloca_in()
[all …]
HDelf32-mep.c258 + rel->r_offset); in mep_final_link_relocate()
262 byte = (unsigned char *)contents + rel->r_offset; in mep_final_link_relocate()
339 s -= mep_sdaoff_base(rel->r_offset); in mep_final_link_relocate()
345 s -= mep_tpoff_base(rel->r_offset); in mep_final_link_relocate()
351 u -= mep_tpoff_base(rel->r_offset); in mep_final_link_relocate()
356 u -= mep_tpoff_base(rel->r_offset); in mep_final_link_relocate()
361 u -= mep_tpoff_base(rel->r_offset); in mep_final_link_relocate()
582 input_section, rel->r_offset, in mep_elf_relocate_section()
596 _bfd_clear_contents (howto, input_bfd, contents + rel->r_offset); in mep_elf_relocate_section()
630 input_bfd, input_section, rel->r_offset); in mep_elf_relocate_section()
[all …]
HDelf64-s390.c1340 if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset))
2215 (long) rel->r_offset,
2300 _bfd_clear_contents (howto, input_bfd, contents + rel->r_offset);
2423 outrel.r_offset = (htab->sgot->output_section->vma
2567 outrel.r_offset =
2569 rel->r_offset);
2570 if (outrel.r_offset == (bfd_vma) -1)
2572 else if (outrel.r_offset == (bfd_vma) -2)
2575 outrel.r_offset += (input_section->output_section->vma
2665 outrel.r_offset = rel->r_offset
[all …]
HDelf32-s390.c1372 if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset))
2241 (long) rel->r_offset,
2326 _bfd_clear_contents (howto, input_bfd, contents + rel->r_offset);
2447 outrel.r_offset = (htab->sgot->output_section->vma
2586 outrel.r_offset =
2588 rel->r_offset);
2589 if (outrel.r_offset == (bfd_vma) -1)
2591 else if (outrel.r_offset == (bfd_vma) -2)
2593 outrel.r_offset += (input_section->output_section->vma
2680 outrel.r_offset = rel->r_offset
[all …]
HDelf32-ppc.c3380 (long) rel->r_offset, in ppc_elf_check_relocs()
3456 if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset)) in ppc_elf_check_relocs()
5464 roff = irel->r_offset; in ppc_elf_relax_section()
5511 irel->r_offset = trampoff + insn_offset; in ppc_elf_relax_section()
5868 _bfd_clear_contents (howto, input_bfd, contents + rel->r_offset); in ppc_elf_relocate_section()
5923 insn = bfd_get_32 (output_bfd, contents + rel->r_offset - d_offset); in ppc_elf_relocate_section()
5926 bfd_put_32 (output_bfd, insn, contents + rel->r_offset - d_offset); in ppc_elf_relocate_section()
5937 insn = bfd_get_32 (output_bfd, contents + rel->r_offset); in ppc_elf_relocate_section()
5967 bfd_put_32 (output_bfd, insn, contents + rel->r_offset); in ppc_elf_relocate_section()
5973 rel->r_offset += d_offset; in ppc_elf_relocate_section()
[all …]
HDelf32-score.c1206 outrel[0].r_offset = in score_elf_create_dynamic_relocation()
1207 _bfd_elf_section_offset (output_bfd, info, input_section, rel[0].r_offset); in score_elf_create_dynamic_relocation()
1208 outrel[1].r_offset = in score_elf_create_dynamic_relocation()
1209 _bfd_elf_section_offset (output_bfd, info, input_section, rel[1].r_offset); in score_elf_create_dynamic_relocation()
1210 outrel[2].r_offset = in score_elf_create_dynamic_relocation()
1211 _bfd_elf_section_offset (output_bfd, info, input_section, rel[2].r_offset); in score_elf_create_dynamic_relocation()
1213 if (outrel[0].r_offset == MINUS_ONE) in score_elf_create_dynamic_relocation()
1217 if (outrel[0].r_offset == MINUS_TWO) in score_elf_create_dynamic_relocation()
1275 outrel[0].r_offset += (input_section->output_section->vma in score_elf_create_dynamic_relocation()
1277 outrel[1].r_offset += (input_section->output_section->vma in score_elf_create_dynamic_relocation()
[all …]
HDelf32-arm.c4518 bfd_byte * hit_data = contents + rel->r_offset; in elf32_arm_final_link_relocate()
4619 contents, rel->r_offset, value, in elf32_arm_final_link_relocate()
4666 outrel.r_offset = in elf32_arm_final_link_relocate()
4668 rel->r_offset); in elf32_arm_final_link_relocate()
4669 if (outrel.r_offset == (bfd_vma) -1) in elf32_arm_final_link_relocate()
4671 else if (outrel.r_offset == (bfd_vma) -2) in elf32_arm_final_link_relocate()
4673 outrel.r_offset += (input_section->output_section->vma in elf32_arm_final_link_relocate()
4748 contents, rel->r_offset, value, in elf32_arm_final_link_relocate()
4779 hit_data, sym_sec, rel->r_offset, in elf32_arm_final_link_relocate()
4809 value -= rel->r_offset; in elf32_arm_final_link_relocate()
[all …]
/NextBSD/contrib/binutils/include/elf/
HDexternal.h161 unsigned char r_offset[4]; /* Location at which to apply the action */ member
166 unsigned char r_offset[4]; /* Location at which to apply the action */ member
172 unsigned char r_offset[8]; /* Location at which to apply the action */ member
177 unsigned char r_offset[8]; /* Location at which to apply the action */ member
HDmips.h747 unsigned char r_offset[8]; member
763 bfd_vma r_offset; member
781 unsigned char r_offset[8]; member
799 bfd_vma r_offset; member
/NextBSD/usr.sbin/kldxref/
HDef_sparc64.c52 if (relbase + a->r_offset >= dataoff && relbase + a->r_offset < in ef_reloc()
57 memcpy((u_char *)dest + (relbase + a->r_offset - in ef_reloc()
/NextBSD/libexec/rtld-elf/
HDdebug.c112 dstaddr = (Elf_Addr *)(obj->relocbase + rel->r_offset); in dump_Elf_Rel()
116 (u_long)rel->r_info, (u_long)rel->r_offset, in dump_Elf_Rel()
134 dstaddr = (Elf_Addr *)(obj->relocbase + rela->r_offset); in dump_Elf_Rela()
138 (u_long)rela->r_info, (u_long)rela->r_offset, in dump_Elf_Rela()
/NextBSD/libexec/rtld-elf/arm/
HDreloc.c85 dstaddr = (void *) (dstobj->relocbase + rel->r_offset); in do_copy_relocations()
143 size = (rellim - 1)->r_offset - rel->r_offset; in _rtld_relocate_nonplt_self()
145 where = (Elf_Addr *)(relocbase + rel->r_offset); in _rtld_relocate_nonplt_self()
184 where = (Elf_Addr *)(obj->relocbase + rel->r_offset); in reloc_nonplt_object()
338 (void *)rel->r_offset, (void *)load_ptr(where), in reloc_nonplt_object()
402 where = (Elf_Addr *)(obj->relocbase + rel->r_offset); in reloc_plt()
425 where = (Elf_Addr *)(obj->relocbase + rel->r_offset); in reloc_jmpslots()
/NextBSD/cddl/contrib/opensolaris/lib/libdtrace/common/
HDdt_link.c237 rel->r_offset = s->dofs_offset + in prepare_elf32()
249 rel->r_offset = s->dofs_offset + in prepare_elf32()
258 rel->r_offset = s->dofs_offset + in prepare_elf32()
439 rel->r_offset = s->dofs_offset + in prepare_elf64()
444 rel->r_offset = s->dofs_offset + in prepare_elf64()
454 rel->r_offset = s->dofs_offset + in prepare_elf64()
875 if ((rela->r_offset & (sizeof (uint32_t) - 1)) != 0) in dt_modtext()
879 ip = (uint32_t *)(p + rela->r_offset); in dt_modtext()
910 ip[0], (u_longlong_t)rela->r_offset); in dt_modtext()
923 (u_longlong_t)rela->r_offset); in dt_modtext()
[all …]
/NextBSD/libexec/rtld-elf/amd64/
HDreloc.c80 dstaddr = (void *) (dstobj->relocbase + rela->r_offset); in do_copy_relocations()
208 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_non_plt()
328 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_plt()
362 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_jmpslots()
406 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_iresolve()
434 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_gnu_ifunc()
/NextBSD/libexec/rtld-elf/i386/
HDreloc.c81 dstaddr = (void *) (dstobj->relocbase + rel->r_offset); in do_copy_relocations()
192 where = (Elf_Addr *)(obj->relocbase + rel->r_offset); in reloc_non_plt()
285 where = (Elf_Addr *)(obj->relocbase + rel->r_offset); in reloc_plt()
319 where = (Elf_Addr *)(obj->relocbase + rel->r_offset); in reloc_jmpslots()
359 where = (Elf_Addr *)(obj->relocbase + rel->r_offset); in reloc_iresolve()
387 where = (Elf_Addr *)(obj->relocbase + rel->r_offset); in reloc_gnu_ifunc()
/NextBSD/contrib/elftoolchain/libelf/
HDgelf_rel.c83 dst->r_offset = (Elf64_Addr) rel32->r_offset; in gelf_getrel()
145 LIBELF_COPY_U32(rel32, dr, r_offset); in gelf_update_rel()
HDgelf_rela.c83 dst->r_offset = (Elf64_Addr) rela32->r_offset; in gelf_getrela()
146 LIBELF_COPY_U32(rela32, dr, r_offset); in gelf_update_rela()
/NextBSD/libexec/rtld-elf/riscv/
HDreloc.c114 dstaddr = (void *)(dstobj->relocbase + rela->r_offset); in do_copy_relocations()
161 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_plt()
183 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_jmpslots()
266 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_non_plt()
/NextBSD/libexec/rtld-elf/powerpc64/
HDreloc.c85 dstaddr = (void *) (dstobj->relocbase + rela->r_offset); in do_copy_relocations()
148 where = (Elf_Addr *)(relocbase + rela->r_offset); in reloc_non_plt_self()
161 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_nonplt_object()
340 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_plt_object()
402 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_jmpslots()
/NextBSD/sbin/ggate/ggated/
HDggated.c81 #define r_offset r_hdr.gh_offset macro
649 (intmax_t)req->r_offset, (unsigned)req->r_length); in recv_thread()
712 assert(req->r_offset + req->r_length <= (uintmax_t)conn->c_mediasize); in disk_thread()
713 assert((req->r_offset % conn->c_sectorsize) == 0); in disk_thread()
717 (intmax_t)req->r_offset, (unsigned)req->r_length); in disk_thread()
726 req->r_offset); in disk_thread()
730 req->r_offset); in disk_thread()
791 (intmax_t)req->r_offset, (unsigned)req->r_length); in send_thread()
811 (uintmax_t)req->r_offset, (size_t)req->r_length); in send_thread()

1234