Home
last modified time | relevance | path

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

1234567891011

/openbsd-src/gnu/usr.bin/binutils/bfd/
H A Delf32-m68hc11.c533 if (i1->r_offset == i2->r_offset) in compare_reloc()
536 return i1->r_offset < i2->r_offset ? -1 : 1; in compare_reloc()
766 if (irel->r_offset + 2 >= sec->_cooked_size) in m68hc11_elf_relax_section()
772 code = bfd_get_8 (abfd, contents + irel->r_offset + 2); in m68hc11_elf_relax_section()
780 || irel->r_offset + 3 != nrel->r_offset in m68hc11_elf_relax_section()
786 roffset = bfd_get_8 (abfd, contents + irel->r_offset + 1); in m68hc11_elf_relax_section()
852 if (irel->r_offset == sec->_cooked_size) in m68hc11_elf_relax_section()
894 offset = value - (prev_insn_branch->r_offset in m68hc11_elf_relax_section()
907 code = bfd_get_8 (abfd, contents + prev_insn_branch->r_offset); in m68hc11_elf_relax_section()
911 bfd_put_8 (abfd, code, contents + prev_insn_branch->r_offset); in m68hc11_elf_relax_section()
[all …]
H A Delf-m10200.c390 contents, rel->r_offset,
414 input_bfd, input_section, rel->r_offset)))
421 rel->r_offset, TRUE)))
444 rel->r_offset)))
625 value -= (irel->r_offset + 3);
636 code = bfd_get_8 (abfd, contents + irel->r_offset - 1);
648 bfd_put_8 (abfd, 0xfc, contents + irel->r_offset - 2);
650 bfd_put_8 (abfd, 0xfd, contents + irel->r_offset - 2);
657 irel->r_offset -= 1;
661 irel->r_offset + 1, 2))
[all …]
H A Delf32-h8300.c452 contents, rel->r_offset, in elf32_h8_relocate_section()
481 input_bfd, input_section, rel->r_offset))) in elf32_h8_relocate_section()
488 rel->r_offset, TRUE))) in elf32_h8_relocate_section()
511 rel->r_offset))) in elf32_h8_relocate_section()
807 + sec->output_offset + irel->r_offset - 1); in elf32_h8_relax_section()
826 code = bfd_get_8 (abfd, contents + irel->r_offset - 1); in elf32_h8_relax_section()
876 && last_reloc->r_offset + 2 == irel->r_offset in elf32_h8_relax_section()
891 contents + last_reloc->r_offset - 1); in elf32_h8_relax_section()
895 contents + last_reloc->r_offset - 1); in elf32_h8_relax_section()
899 irel->r_offset - 1, in elf32_h8_relax_section()
[all …]
H A Delf32-i386.c1160 if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset)) in elf_i386_check_relocs()
1167 if (!bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_offset)) in elf_i386_check_relocs()
2070 where = contents + rel->r_offset; in elf_i386_relocate_section()
2109 bfd_byte *where = contents + rel->r_offset; in elf_i386_relocate_section()
2248 outrel.r_offset = (htab->sgot->output_section->vma in elf_i386_relocate_section()
2348 outrel.r_offset = in elf_i386_relocate_section()
2350 rel->r_offset); in elf_i386_relocate_section()
2351 if (outrel.r_offset == (bfd_vma) -1) in elf_i386_relocate_section()
2353 else if (outrel.r_offset == (bfd_vma) -2) in elf_i386_relocate_section()
2355 outrel.r_offset += (input_section->output_section->vma in elf_i386_relocate_section()
[all …]
H A Delf32-avr.c504 contents += rel->r_offset;
507 srel -= rel->r_offset;
522 contents += rel->r_offset;
525 srel -= rel->r_offset;
557 contents += rel->r_offset;
565 contents += rel->r_offset;
574 contents += rel->r_offset;
583 contents += rel->r_offset;
592 contents += rel->r_offset;
602 contents += rel->r_offset;
[all …]
H A Delf-m10300.c773 if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset))
1117 outrel.r_offset = offset;
1129 outrel.r_offset = off;
1132 outrel.r_offset += (input_section->output_section->vma
1271 outrel.r_offset = offset;
1283 outrel.r_offset = off;
1286 outrel.r_offset += (input_section->output_section->vma
1478 outrel.r_offset = (sgot->output_section->vma
1638 contents, rel->r_offset,
1664 input_bfd, input_section, rel->r_offset)))
[all …]
H A Delf32-ip2k.c434 ip2k_nominal_page_bits (abfd, sec, irel->r_offset, misc->contents))
457 if (!ip2k_elf_relax_delete_bytes (abfd, sec, irel->r_offset, 2))
550 addr = irel->r_offset;
569 if (ireltest->r_offset != addr)
584 ip2k_get_mem (abfd, misc->contents + irel->r_offset - 4, 4, code);
592 if (!ip2k_elf_relax_delete_bytes (abfd, sec, irel->r_offset - 4, 2))
717 addr = irel->r_offset;
738 if (ireltest->r_offset != addr)
753 ip2k_get_mem (abfd, misc->contents + irel->r_offset - 4, 2, code);
755 addr = irel->r_offset - 16;
[all …]
H A Delf64-x86-64.c954 if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset)) in elf64_x86_64_check_relocs()
1894 outrel.r_offset = (htab->sgot->output_section->vma in elf64_x86_64_relocate_section()
1989 outrel.r_offset = in elf64_x86_64_relocate_section()
1991 rel->r_offset); in elf64_x86_64_relocate_section()
1992 if (outrel.r_offset == (bfd_vma) -1) in elf64_x86_64_relocate_section()
1994 else if (outrel.r_offset == (bfd_vma) -2) in elf64_x86_64_relocate_section()
1997 outrel.r_offset += (input_section->output_section->vma in elf64_x86_64_relocate_section()
2103 BFD_ASSERT (rel->r_offset >= 4); in elf64_x86_64_relocate_section()
2106 contents + rel->r_offset - 4 + i) in elf64_x86_64_relocate_section()
2108 BFD_ASSERT (rel->r_offset + 12 <= input_section->_raw_size); in elf64_x86_64_relocate_section()
[all …]
H A Delf64-mips.c1261 dst->r_offset = H_GET_64 (abfd, src->r_offset); in mips_elf64_swap_reloc_in()
1276 dst->r_offset = H_GET_64 (abfd, src->r_offset); in mips_elf64_swap_reloca_in()
1291 H_PUT_64 (abfd, src->r_offset, dst->r_offset); in mips_elf64_swap_reloc_out()
1305 H_PUT_64 (abfd, src->r_offset, dst->r_offset); in mips_elf64_swap_reloca_out()
1326 dst[0].r_offset = mirel.r_offset; in mips_elf64_be_swap_reloc_in()
1329 dst[1].r_offset = mirel.r_offset; in mips_elf64_be_swap_reloc_in()
1332 dst[2].r_offset = mirel.r_offset; in mips_elf64_be_swap_reloc_in()
1349 dst[0].r_offset = mirela.r_offset; in mips_elf64_be_swap_reloca_in()
1352 dst[1].r_offset = mirela.r_offset; in mips_elf64_be_swap_reloca_in()
1355 dst[2].r_offset = mirela.r_offset; in mips_elf64_be_swap_reloca_in()
[all …]
H A Delf32-msp430.c327 contents += rel->r_offset;
330 srel -= rel->r_offset;
351 contents += rel->r_offset;
354 srel -= rel->r_offset;
366 contents += rel->r_offset;
369 srel -= rel->r_offset;
378 contents += rel->r_offset;
385 contents += rel->r_offset;
397 contents, rel->r_offset,
480 input_bfd, input_section, rel->r_offset);
[all …]
H A Delf32-sparc.c1270 if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset))
2288 outrel.r_offset = (htab->sgot->output_section->vma
2406 outrel.r_offset =
2408 rel->r_offset);
2409 if (outrel.r_offset == (bfd_vma) -1)
2411 else if (outrel.r_offset == (bfd_vma) -2)
2413 outrel.r_offset += (input_section->output_section->vma
2421 if (outrel.r_offset & 1)
2425 if (!(outrel.r_offset & 1))
2429 if (outrel.r_offset & 3)
[all …]
/openbsd-src/gnu/usr.bin/binutils-2.17/bfd/
H A Delf32-m68hc11.c534 if (i1->r_offset == i2->r_offset) in compare_reloc()
537 return i1->r_offset < i2->r_offset ? -1 : 1; in compare_reloc()
756 if (irel->r_offset + 2 >= sec->size) in m68hc11_elf_relax_section()
762 code = bfd_get_8 (abfd, contents + irel->r_offset + 2); in m68hc11_elf_relax_section()
770 || irel->r_offset + 3 != nrel->r_offset in m68hc11_elf_relax_section()
776 roffset = bfd_get_8 (abfd, contents + irel->r_offset + 1); in m68hc11_elf_relax_section()
842 if (irel->r_offset == sec->size) in m68hc11_elf_relax_section()
884 offset = value - (prev_insn_branch->r_offset in m68hc11_elf_relax_section()
897 code = bfd_get_8 (abfd, contents + prev_insn_branch->r_offset); in m68hc11_elf_relax_section()
901 bfd_put_8 (abfd, code, contents + prev_insn_branch->r_offset); in m68hc11_elf_relax_section()
[all …]
H A Delf32-avr.c585 contents += rel->r_offset; in avr_final_link_relocate()
588 srel -= rel->r_offset; in avr_final_link_relocate()
603 contents += rel->r_offset; in avr_final_link_relocate()
606 srel -= rel->r_offset; in avr_final_link_relocate()
642 contents += rel->r_offset; in avr_final_link_relocate()
650 contents += rel->r_offset; in avr_final_link_relocate()
663 contents += rel->r_offset; in avr_final_link_relocate()
675 contents += rel->r_offset; in avr_final_link_relocate()
686 contents += rel->r_offset; in avr_final_link_relocate()
695 contents += rel->r_offset; in avr_final_link_relocate()
[all …]
H A Delf-m10200.c390 contents, rel->r_offset,
415 rel->r_offset)))
422 rel->r_offset, TRUE)))
445 rel->r_offset)))
616 value -= (irel->r_offset + 3);
627 code = bfd_get_8 (abfd, contents + irel->r_offset - 1);
639 bfd_put_8 (abfd, 0xfc, contents + irel->r_offset - 2);
641 bfd_put_8 (abfd, 0xfd, contents + irel->r_offset - 2);
648 irel->r_offset -= 1;
652 irel->r_offset + 1, 2))
[all …]
H A Delf32-h8300.c452 contents, rel->r_offset, in elf32_h8_relocate_section()
482 rel->r_offset))) in elf32_h8_relocate_section()
489 rel->r_offset, TRUE))) in elf32_h8_relocate_section()
512 rel->r_offset))) in elf32_h8_relocate_section()
798 + sec->output_offset + irel->r_offset - 1); in elf32_h8_relax_section()
817 code = bfd_get_8 (abfd, contents + irel->r_offset - 1); in elf32_h8_relax_section()
867 && last_reloc->r_offset + 2 == irel->r_offset in elf32_h8_relax_section()
882 contents + last_reloc->r_offset - 1); in elf32_h8_relax_section()
886 contents + last_reloc->r_offset - 1); in elf32_h8_relax_section()
890 irel->r_offset - 1, in elf32_h8_relax_section()
[all …]
H A Delf32-msp430.c317 contents += rel->r_offset; in msp430_final_link_relocate()
320 srel -= rel->r_offset; in msp430_final_link_relocate()
341 contents += rel->r_offset; in msp430_final_link_relocate()
344 srel -= rel->r_offset; in msp430_final_link_relocate()
371 contents += rel->r_offset; in msp430_final_link_relocate()
374 srel -= rel->r_offset; in msp430_final_link_relocate()
386 contents += rel->r_offset; in msp430_final_link_relocate()
389 srel -= rel->r_offset; in msp430_final_link_relocate()
398 contents += rel->r_offset; in msp430_final_link_relocate()
405 contents += rel->r_offset; in msp430_final_link_relocate()
[all …]
H A Delf32-i386.c1284 if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset)) in elf_i386_check_relocs()
1291 if (!bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_offset)) in elf_i386_check_relocs()
2342 where = contents + rel->r_offset; in elf_i386_relocate_section()
2381 bfd_byte *where = contents + rel->r_offset; in elf_i386_relocate_section()
2461 + rel->r_offset); in elf_i386_relocate_section()
2536 outrel.r_offset = (htab->sgot->output_section->vma in elf_i386_relocate_section()
2652 outrel.r_offset = in elf_i386_relocate_section()
2654 rel->r_offset); in elf_i386_relocate_section()
2655 if (outrel.r_offset == (bfd_vma) -1) in elf_i386_relocate_section()
2657 else if (outrel.r_offset == (bfd_vma) -2) in elf_i386_relocate_section()
[all …]
H A Delf-m10300.c736 if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset))
1047 outrel.r_offset = _bfd_elf_section_offset (input_bfd, info,
1049 if (outrel.r_offset == (bfd_vma) -1)
1052 outrel.r_offset += (input_section->output_section->vma
1319 outrel.r_offset = (sgot->output_section->vma
1467 (long) rel->r_offset,
1474 contents, rel->r_offset,
1501 input_section, rel->r_offset)))
1508 rel->r_offset, TRUE)))
1531 rel->r_offset)))
[all …]
H A Delf32-ip2k.c537 ip2k_nominal_page_bits (abfd, sec, irel->r_offset, misc->contents)) in ip2k_test_page_insn()
609 if (addr <= irel->r_offset && irel->r_offset < endaddr) in adjust_all_relocations()
610 irel->r_offset += count; in adjust_all_relocations()
670 stabp = stabcontents + irel->r_offset - 8; in adjust_all_relocations()
816 if (!ip2k_elf_relax_delete_bytes (abfd, sec, irel->r_offset, 2)) in ip2k_delete_page_insn()
838 addr = irel->r_offset; in ip2k_relax_switch_table_128()
857 if (ireltest->r_offset != addr) in ip2k_relax_switch_table_128()
872 ip2k_get_mem (abfd, misc->contents + irel->r_offset - 4, 4, code); in ip2k_relax_switch_table_128()
880 if (!ip2k_elf_relax_delete_bytes (abfd, sec, irel->r_offset - 4, 2)) in ip2k_relax_switch_table_128()
909 addr = irel->r_offset; in ip2k_relax_switch_table_256()
[all …]
H A Delfxx-sparc.c571 bfd_vma *r_offset) in sparc32_plt_entry_build() argument
583 *r_offset = offset; in sparc32_plt_entry_build()
595 bfd_vma max, bfd_vma *r_offset) in sparc64_plt_entry_build() argument
605 *r_offset = offset; in sparc64_plt_entry_build()
666 *r_offset = (bfd_vma) (ptr - splt->contents); in sparc64_plt_entry_build()
1487 if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset)) in _bfd_sparc_elf_check_relocs()
2638 outrel.r_offset = (htab->sgot->output_section->vma in _bfd_sparc_elf_relocate_section()
2793 outrel.r_offset = in _bfd_sparc_elf_relocate_section()
2795 rel->r_offset); in _bfd_sparc_elf_relocate_section()
2796 if (outrel.r_offset == (bfd_vma) -1) in _bfd_sparc_elf_relocate_section()
[all …]
H A Delf32-crx.c614 if ((irel->r_offset > addr in elf32_crx_relax_delete_bytes()
615 && irel->r_offset < toaddr)) in elf32_crx_relax_delete_bytes()
616 irel->r_offset -= count; in elf32_crx_relax_delete_bytes()
874 contents, rel->r_offset, in elf32_crx_relocate_section()
899 rel->r_offset))) in elf32_crx_relocate_section()
906 rel->r_offset, TRUE))) in elf32_crx_relocate_section()
929 rel->r_offset))) in elf32_crx_relocate_section()
1076 value -= irel->r_offset; in elf32_crx_relax_section()
1087 code = (unsigned short) bfd_get_16 (abfd, contents + irel->r_offset); in elf32_crx_relax_section()
1091 bfd_put_8 (abfd, 0x30, contents + irel->r_offset + 1); in elf32_crx_relax_section()
[all …]
H A Delf32-v850.c109 if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset)) in v850_elf_check_relocs()
1635 contents, rel->r_offset, in v850_elf_relocate_section()
1660 rel->r_offset))) in v850_elf_relocate_section()
1667 rel->r_offset, TRUE))) in v850_elf_relocate_section()
1702 rel->r_offset))) in v850_elf_relocate_section()
2224 raddr = irel->r_offset; in v850_elf_relax_delete_bytes()
2226 irel->r_offset -= count; in v850_elf_relax_delete_bytes()
2438 && irel->r_offset > addr in v850_elf_relax_section()
2439 && irel->r_offset < toaddr) in v850_elf_relax_section()
2440 toaddr = irel->r_offset; in v850_elf_relax_section()
[all …]
H A Delf64-x86-64.c1110 if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset)) in elf64_x86_64_check_relocs()
2242 outrel.r_offset = (base_got->output_section->vma in elf64_x86_64_relocate_section()
2358 rel->r_offset))) in elf64_x86_64_relocate_section()
2422 outrel.r_offset = in elf64_x86_64_relocate_section()
2424 rel->r_offset); in elf64_x86_64_relocate_section()
2425 if (outrel.r_offset == (bfd_vma) -1) in elf64_x86_64_relocate_section()
2427 else if (outrel.r_offset == (bfd_vma) -2) in elf64_x86_64_relocate_section()
2430 outrel.r_offset += (input_section->output_section->vma in elf64_x86_64_relocate_section()
2540 BFD_ASSERT (rel->r_offset >= 4); in elf64_x86_64_relocate_section()
2543 contents + rel->r_offset - 4 + i) in elf64_x86_64_relocate_section()
[all …]
H A Delf64-mips.c1658 dst->r_offset = H_GET_64 (abfd, src->r_offset); in mips_elf64_swap_reloc_in()
1673 dst->r_offset = H_GET_64 (abfd, src->r_offset); in mips_elf64_swap_reloca_in()
1688 H_PUT_64 (abfd, src->r_offset, dst->r_offset); in mips_elf64_swap_reloc_out()
1702 H_PUT_64 (abfd, src->r_offset, dst->r_offset); in mips_elf64_swap_reloca_out()
1723 dst[0].r_offset = mirel.r_offset; in mips_elf64_be_swap_reloc_in()
1726 dst[1].r_offset = mirel.r_offset; in mips_elf64_be_swap_reloc_in()
1729 dst[2].r_offset = mirel.r_offset; in mips_elf64_be_swap_reloc_in()
1746 dst[0].r_offset = mirela.r_offset; in mips_elf64_be_swap_reloca_in()
1749 dst[1].r_offset = mirela.r_offset; in mips_elf64_be_swap_reloca_in()
1752 dst[2].r_offset = mirela.r_offset; in mips_elf64_be_swap_reloca_in()
[all …]
/openbsd-src/usr.bin/mg/
H A Dregion.c55 curwp->w_doto = region.r_offset; in killregion()
88 loffs = region.r_offset; in copyregion()
131 undo_add_change(region.r_linep, region.r_offset, region.r_size); in lowerregion()
135 loffs = region.r_offset; in lowerregion()
173 undo_add_change(region.r_linep, region.r_offset, region.r_size); in upperregion()
177 loffs = region.r_offset; in upperregion()
220 rp->r_offset = curwp->w_doto; in getregion()
223 rp->r_offset = curwp->w_marko; in getregion()
237 rp->r_offset = curwp->w_doto; in getregion()
249 rp->r_offset = curwp->w_marko; in getregion()
[all …]

1234567891011