Home
last modified time | relevance | path

Searched refs:srel (Results 1 – 25 of 43) sorted by relevance

12

/toolchain/binutils/binutils-2.25/bfd/
Delf32-msp430.c691 bfd_signed_vma srel; in msp430_final_link_relocate() local
766 srel = (bfd_signed_vma) relocation; in msp430_final_link_relocate()
768 srel += bfd_get_16 (input_bfd, contents); in msp430_final_link_relocate()
770 srel += rel->r_addend; in msp430_final_link_relocate()
771 bfd_put_16 (input_bfd, srel & 0xffff, contents); in msp430_final_link_relocate()
776 srel = (bfd_signed_vma) relocation; in msp430_final_link_relocate()
778 srel += bfd_get_16 (input_bfd, contents) & 0x3ff; in msp430_final_link_relocate()
780 srel += rel->r_addend; in msp430_final_link_relocate()
781 srel -= rel->r_offset; in msp430_final_link_relocate()
782 srel -= 2; /* Branch instructions add 2 to the PC... */ in msp430_final_link_relocate()
[all …]
Delf32-avr.c878 avr_get_stub_addr (bfd_vma srel, in avr_get_stub_addr() argument
887 if (htab->amt_destination_addr[sindex] == srel) in avr_get_stub_addr()
924 bfd_signed_vma srel; in avr_final_link_relocate() local
938 srel = (bfd_signed_vma) relocation; in avr_final_link_relocate()
939 srel += rel->r_addend; in avr_final_link_relocate()
940 srel -= rel->r_offset; in avr_final_link_relocate()
941 srel -= 2; /* Branch instructions add 2 to the PC... */ in avr_final_link_relocate()
942 srel -= (input_section->output_section->vma + in avr_final_link_relocate()
945 if (srel & 1) in avr_final_link_relocate()
947 if (srel > ((1 << 7) - 1) || (srel < - (1 << 7))) in avr_final_link_relocate()
[all …]
Delf32-fr30.c395 bfd_signed_vma srel; in fr30_final_link_relocate() local
419 srel = (bfd_signed_vma) relocation; in fr30_final_link_relocate()
420 srel += rel->r_addend; in fr30_final_link_relocate()
421 srel -= rel->r_offset; in fr30_final_link_relocate()
422 srel -= 2; /* Branch instructions add 2 to the PC... */ in fr30_final_link_relocate()
423 srel -= (input_section->output_section->vma + in fr30_final_link_relocate()
426 if (srel & 1) in fr30_final_link_relocate()
428 if (srel > ((1 << 8) - 1) || (srel < - (1 << 8))) in fr30_final_link_relocate()
431 bfd_put_8 (input_bfd, srel >> 1, contents); in fr30_final_link_relocate()
436 srel = (bfd_signed_vma) relocation; in fr30_final_link_relocate()
[all …]
Dsunos.c1250 asection *srel = NULL; in sunos_scan_std_relocs() local
1322 srel = bfd_get_linker_section (dynobj, ".dynrel"); in sunos_scan_std_relocs()
1323 BFD_ASSERT (splt != NULL && srel != NULL); in sunos_scan_std_relocs()
1345 srel->size += RELOC_STD_SIZE; in sunos_scan_std_relocs()
1353 srel->size += RELOC_STD_SIZE; in sunos_scan_std_relocs()
1381 srel->size += RELOC_STD_SIZE; in sunos_scan_std_relocs()
1407 asection *srel = NULL; in sunos_scan_ext_relocs() local
1473 srel = bfd_get_linker_section (dynobj, ".dynrel"); in sunos_scan_ext_relocs()
1474 BFD_ASSERT (splt != NULL && sgot != NULL && srel != NULL); in sunos_scan_ext_relocs()
1520 srel->size += RELOC_EXT_SIZE; in sunos_scan_ext_relocs()
[all …]
Delf32-rx.c1939 move_reloc (Elf_Internal_Rela * irel, Elf_Internal_Rela * srel, int delta) in move_reloc() argument
1941 bfd_vma old_offset = srel->r_offset; in move_reloc()
1944 while (irel <= srel) in move_reloc()
1966 Elf_Internal_Rela * srel; in elf32_rx_relax_section() local
2162 srel = irel; in elf32_rx_relax_section()
2165 + srel->r_offset; in elf32_rx_relax_section()
2168 symval = OFFSET_FOR_RELOC (srel, &srel, &scale); \ in elf32_rx_relax_section()
2169 pcrel = symval - pc + srel->r_addend; \ in elf32_rx_relax_section()
2176 srel->r_info = ELF32_R_INFO (ELF32_R_SYM (srel->r_info), newtype) in elf32_rx_relax_section()
2198 unsigned int newrel = ELF32_R_TYPE (srel->r_info); in elf32_rx_relax_section()
[all …]
Delf32-m32c.c1378 Elf_Internal_Rela *irel, *irelend, *srel; in m32c_elf_relax_section() local
1478 srel = irel; in m32c_elf_relax_section()
1527 srel = irel + (relax_relocs ? 1 : 0); in m32c_elf_relax_section()
1528 symval = OFFSET_FOR_RELOC (srel); in m32c_elf_relax_section()
1534 new_type = ELF32_R_TYPE(srel->r_info); in m32c_elf_relax_section()
1537 + srel->r_offset; in m32c_elf_relax_section()
1538 pcrel = symval - pc + srel->r_addend; in m32c_elf_relax_section()
1614 if (srel->r_offset == irel->r_offset + posn in m32c_elf_relax_section()
1626 srel ++; in m32c_elf_relax_section()
1653 symval = OFFSET_FOR_RELOC (srel); in m32c_elf_relax_section()
[all …]
Delfnn-ia64.c72 asection *srel; member
2073 asection *srel; in get_reloc_section() local
2086 srel = bfd_get_linker_section (dynobj, srel_name); in get_reloc_section()
2087 if (srel == NULL && create) in get_reloc_section()
2089 srel = bfd_make_section_anyway_with_flags (dynobj, srel_name, in get_reloc_section()
2095 if (srel == NULL in get_reloc_section()
2096 || !bfd_set_section_alignment (dynobj, srel, in get_reloc_section()
2101 return srel; in get_reloc_section()
2106 asection *srel, int type, bfd_boolean reltext) in count_dyn_reloc() argument
2111 if (rent->srel == srel && rent->type == type) in count_dyn_reloc()
[all …]
Delf32-metag.c1240 bfd_signed_vma srel, addend = rel->r_addend; in metag_final_link_relocate() local
1270 srel = (bfd_signed_vma) relocation; in metag_final_link_relocate()
1271 srel += addend; in metag_final_link_relocate()
1275 if (srel > ((1 << (BRANCH_BITS + 1)) - 1) || in metag_final_link_relocate()
1276 (srel < - (1 << (BRANCH_BITS + 1)))) in metag_final_link_relocate()
1288 srel = (hsh->stub_offset in metag_final_link_relocate()
1291 srel -= location; in metag_final_link_relocate()
1294 srel = srel >> 2; in metag_final_link_relocate()
1296 if (!within_signed_range (srel, BRANCH_BITS)) in metag_final_link_relocate()
1299 srel = 0; in metag_final_link_relocate()
[all …]
Delf64-mmix.c1579 bfd_signed_vma srel in mmix_final_link_relocate() local
1594 srel -= (input_section->output_section->vma in mmix_final_link_relocate()
1599 addr, srel, error_message); in mmix_final_link_relocate()
1643 if ((srel & 7) != 0 || srel < 32*8 || srel > 255*8) in mmix_final_link_relocate()
1649 srel /= 8; in mmix_final_link_relocate()
1654 if (srel < 0 || srel > 255) in mmix_final_link_relocate()
1681 addr, srel, error_message); in mmix_final_link_relocate()
1725 if ((srel & 7) != 0 || srel < 32*8 || srel > 255*8) in mmix_final_link_relocate()
1729 srel /= 8; in mmix_final_link_relocate()
1733 if ((bfd_vma) srel >= first_global) in mmix_final_link_relocate()
[all …]
Delf64-alpha.c144 asection *srel; member
1963 if (rent->rtype == r_type && rent->srel == sreloc) in elf64_alpha_check_relocs()
1973 rent->srel = sreloc; in elf64_alpha_check_relocs()
2225 if (ri->rtype == rs->rtype && ri->srel == rs->srel) in elf64_alpha_copy_indirect_symbol()
2741 relent->srel->size += in elf64_alpha_calc_dynrel_sizes()
2787 asection *srel = bfd_get_linker_section (dynobj, ".rela.got"); in elf64_alpha_size_rela_got_1() local
2788 BFD_ASSERT (srel != NULL); in elf64_alpha_size_rela_got_1()
2789 srel->size += sizeof (Elf64_External_Rela) * entries; in elf64_alpha_size_rela_got_1()
2802 asection *srel; in elf64_alpha_size_rela_got_section() local
2837 srel = bfd_get_linker_section (dynobj, ".rela.got"); in elf64_alpha_size_rela_got_section()
[all …]
Delf64-sh64.c3376 asection *srel; in sh64_elf64_adjust_dynamic_symbol() local
3378 srel = bfd_get_linker_section (dynobj, ".rela.bss"); in sh64_elf64_adjust_dynamic_symbol()
3379 BFD_ASSERT (srel != NULL); in sh64_elf64_adjust_dynamic_symbol()
3380 srel->size += sizeof (Elf64_External_Rela); in sh64_elf64_adjust_dynamic_symbol()
3600 asection *srel; in sh64_elf64_finish_dynamic_symbol() local
3614 srel = bfd_get_linker_section (dynobj, ".rela.plt"); in sh64_elf64_finish_dynamic_symbol()
3615 BFD_ASSERT (splt != NULL && sgot != NULL && srel != NULL); in sh64_elf64_finish_dynamic_symbol()
3694 loc = srel->contents + plt_index * sizeof (Elf64_External_Rela); in sh64_elf64_finish_dynamic_symbol()
3708 asection *srel; in sh64_elf64_finish_dynamic_symbol() local
3716 srel = bfd_get_linker_section (dynobj, ".rela.got"); in sh64_elf64_finish_dynamic_symbol()
[all …]
Delf64-hppa.c401 asection *srel; in get_reloc_section() local
414 srel = bfd_get_linker_section (dynobj, srel_name); in get_reloc_section()
415 if (srel == NULL) in get_reloc_section()
417 srel = bfd_make_section_anyway_with_flags (dynobj, srel_name, in get_reloc_section()
424 if (srel == NULL in get_reloc_section()
425 || !bfd_set_section_alignment (dynobj, srel, 3)) in get_reloc_section()
429 hppa_info->other_rel_sec = srel; in get_reloc_section()
1593 asection *srel; in elf64_hppa_size_dynamic_sections() local
1617 srel = elf_section_data (hdh_p->sec)->sreloc; in elf64_hppa_size_dynamic_sections()
1618 srel->size += hdh_p->count * sizeof (Elf64_External_Rela); in elf64_hppa_size_dynamic_sections()
[all …]
Delf32-i370.c526 asection *srel; in i370_elf_adjust_dynamic_symbol() local
529 srel = bfd_get_linker_section (dynobj, ".rela.sbss"); in i370_elf_adjust_dynamic_symbol()
531 srel = bfd_get_linker_section (dynobj, ".rela.bss"); in i370_elf_adjust_dynamic_symbol()
532 BFD_ASSERT (srel != NULL); in i370_elf_adjust_dynamic_symbol()
533 srel->size += sizeof (Elf32_External_Rela); in i370_elf_adjust_dynamic_symbol()
Delf32-or1k.c2182 asection *srel; in or1k_elf_adjust_dynamic_symbol() local
2184 srel = htab->srelbss; in or1k_elf_adjust_dynamic_symbol()
2185 BFD_ASSERT (srel != NULL); in or1k_elf_adjust_dynamic_symbol()
2186 srel->size += sizeof (Elf32_External_Rela); in or1k_elf_adjust_dynamic_symbol()
2462 asection *srel; in or1k_elf_size_dynamic_sections() local
2486 srel = elf_section_data (p->sec)->sreloc; in or1k_elf_size_dynamic_sections()
2487 srel->size += p->count * sizeof (Elf32_External_Rela); in or1k_elf_size_dynamic_sections()
2502 srel = htab->srelgot; in or1k_elf_size_dynamic_sections()
2518 srel->size += 2 * sizeof (Elf32_External_Rela); in or1k_elf_size_dynamic_sections()
2520 srel->size += sizeof (Elf32_External_Rela); in or1k_elf_size_dynamic_sections()
Delf32-cr16.c2432 asection * srel; in _bfd_cr16_elf_adjust_dynamic_symbol() local
2434 srel = bfd_get_linker_section (dynobj, ".rela.bss"); in _bfd_cr16_elf_adjust_dynamic_symbol()
2435 BFD_ASSERT (srel != NULL); in _bfd_cr16_elf_adjust_dynamic_symbol()
2436 srel->size += sizeof (Elf32_External_Rela); in _bfd_cr16_elf_adjust_dynamic_symbol()
2628 asection * srel; in _bfd_cr16_elf_finish_dynamic_symbol() local
2634 srel = bfd_get_linker_section (dynobj, ".rela.got"); in _bfd_cr16_elf_finish_dynamic_symbol()
2635 BFD_ASSERT (sgot != NULL && srel != NULL); in _bfd_cr16_elf_finish_dynamic_symbol()
2663 (bfd_byte *) ((Elf32_External_Rela *) srel->contents in _bfd_cr16_elf_finish_dynamic_symbol()
2664 + srel->reloc_count)); in _bfd_cr16_elf_finish_dynamic_symbol()
2665 ++ srel->reloc_count; in _bfd_cr16_elf_finish_dynamic_symbol()
Delf64-ia64-vms.c84 asection *srel; member
1835 asection *srel; in get_reloc_section() local
1855 srel = bfd_get_linker_section (dynobj, srel_name); in get_reloc_section()
1856 if (srel == NULL && create) in get_reloc_section()
1858 srel = bfd_make_section_anyway_with_flags (dynobj, srel_name, in get_reloc_section()
1864 if (srel == NULL in get_reloc_section()
1865 || !bfd_set_section_alignment (dynobj, srel, 3)) in get_reloc_section()
1869 return srel; in get_reloc_section()
1874 asection *srel, int type) in count_dyn_reloc() argument
1879 if (rent->srel == srel && rent->type == type) in count_dyn_reloc()
[all …]
Delf32-rl78.c1965 Elf_Internal_Rela * srel; in rl78_elf_relax_section() local
2157 srel = irel; in rl78_elf_relax_section()
2160 + srel->r_offset; in rl78_elf_relax_section()
2164 symval = OFFSET_FOR_RELOC (srel, &srel, &scale); \ in rl78_elf_relax_section()
2165 pcrel = symval - pc + srel->r_addend; \ in rl78_elf_relax_section()
2172 srel->r_info = ELF32_R_INFO (ELF32_R_SYM (srel->r_info), newtype) in rl78_elf_relax_section()
Delf32-lm32.c1887 asection *srel; in lm32_elf_adjust_dynamic_symbol() local
1889 srel = htab->srelbss; in lm32_elf_adjust_dynamic_symbol()
1890 BFD_ASSERT (srel != NULL); in lm32_elf_adjust_dynamic_symbol()
1891 srel->size += sizeof (Elf32_External_Rela); in lm32_elf_adjust_dynamic_symbol()
2155 asection *srel; in lm32_elf_size_dynamic_sections() local
2179 srel = elf_section_data (p->sec)->sreloc; in lm32_elf_size_dynamic_sections()
2180 srel->size += p->count * sizeof (Elf32_External_Rela); in lm32_elf_size_dynamic_sections()
2195 srel = htab->srelgot; in lm32_elf_size_dynamic_sections()
2203 srel->size += sizeof (Elf32_External_Rela); in lm32_elf_size_dynamic_sections()
Delf-m10300.c5019 asection * srel; in _bfd_mn10300_elf_adjust_dynamic_symbol() local
5021 srel = bfd_get_linker_section (dynobj, ".rela.bss"); in _bfd_mn10300_elf_adjust_dynamic_symbol()
5022 BFD_ASSERT (srel != NULL); in _bfd_mn10300_elf_adjust_dynamic_symbol()
5023 srel->size += sizeof (Elf32_External_Rela); in _bfd_mn10300_elf_adjust_dynamic_symbol()
5223 asection * srel; in _bfd_mn10300_elf_finish_dynamic_symbol() local
5235 srel = bfd_get_linker_section (dynobj, ".rela.plt"); in _bfd_mn10300_elf_finish_dynamic_symbol()
5236 BFD_ASSERT (splt != NULL && sgot != NULL && srel != NULL); in _bfd_mn10300_elf_finish_dynamic_symbol()
5296 (bfd_byte *) ((Elf32_External_Rela *) srel->contents in _bfd_mn10300_elf_finish_dynamic_symbol()
5308 asection * srel; in _bfd_mn10300_elf_finish_dynamic_symbol() local
5313 srel = bfd_get_linker_section (dynobj, ".rela.got"); in _bfd_mn10300_elf_finish_dynamic_symbol()
[all …]
Delf32-m32r.c1914 asection *srel; in m32r_elf_adjust_dynamic_symbol() local
1916 srel = htab->srelbss; in m32r_elf_adjust_dynamic_symbol()
1917 BFD_ASSERT (srel != NULL); in m32r_elf_adjust_dynamic_symbol()
1918 srel->size += sizeof (Elf32_External_Rela); in m32r_elf_adjust_dynamic_symbol()
2186 asection *srel; in m32r_elf_size_dynamic_sections() local
2210 srel = elf_section_data (p->sec)->sreloc; in m32r_elf_size_dynamic_sections()
2211 srel->size += p->count * sizeof (Elf32_External_Rela); in m32r_elf_size_dynamic_sections()
2226 srel = htab->srelgot; in m32r_elf_size_dynamic_sections()
2234 srel->size += sizeof (Elf32_External_Rela); in m32r_elf_size_dynamic_sections()
Dpdp11.c3027 struct reloc_std_external srel; in aout_link_reloc_link_order() local
3093 &srel); in aout_link_reloc_link_order()
3110 PUT_WORD (flaginfo->output_bfd, p->offset, srel.r_address); in aout_link_reloc_link_order()
3113 srel.r_index[0] = r_index >> 16; in aout_link_reloc_link_order()
3114 srel.r_index[1] = r_index >> 8; in aout_link_reloc_link_order()
3115 srel.r_index[2] = r_index; in aout_link_reloc_link_order()
3116 srel.r_type[0] = in aout_link_reloc_link_order()
3126 srel.r_index[2] = r_index >> 16; in aout_link_reloc_link_order()
3127 srel.r_index[1] = r_index >> 8; in aout_link_reloc_link_order()
3128 srel.r_index[0] = r_index; in aout_link_reloc_link_order()
[all …]
Daoutx.h3690 struct reloc_std_external srel; in aout_link_reloc_link_order() local
3759 &srel); in aout_link_reloc_link_order()
3774 PUT_WORD (flaginfo->output_bfd, p->offset, srel.r_address); in aout_link_reloc_link_order()
3777 srel.r_index[0] = r_index >> 16; in aout_link_reloc_link_order()
3778 srel.r_index[1] = r_index >> 8; in aout_link_reloc_link_order()
3779 srel.r_index[2] = r_index; in aout_link_reloc_link_order()
3780 srel.r_type[0] = in aout_link_reloc_link_order()
3790 srel.r_index[2] = r_index >> 16; in aout_link_reloc_link_order()
3791 srel.r_index[1] = r_index >> 8; in aout_link_reloc_link_order()
3792 srel.r_index[0] = r_index; in aout_link_reloc_link_order()
[all …]
Delf32-xtensa.c2825 asection *srel; in elf_xtensa_relocate_section() local
2828 srel = htab->srelplt; in elf_xtensa_relocate_section()
2830 srel = htab->srelgot; in elf_xtensa_relocate_section()
2832 BFD_ASSERT (srel != NULL); in elf_xtensa_relocate_section()
2880 srel->reloc_count); in elf_xtensa_relocate_section()
2892 loc = (srel->contents in elf_xtensa_relocate_section()
2893 + srel->reloc_count++ * sizeof (Elf32_External_Rela)); in elf_xtensa_relocate_section()
2895 BFD_ASSERT (sizeof (Elf32_External_Rela) * srel->reloc_count in elf_xtensa_relocate_section()
2896 <= srel->size); in elf_xtensa_relocate_section()
2959 asection *srel = htab->srelgot; in elf_xtensa_relocate_section() local
[all …]
Delf32-vax.c1038 asection *srel; in elf_vax_adjust_dynamic_symbol() local
1040 srel = bfd_get_linker_section (dynobj, ".rela.bss"); in elf_vax_adjust_dynamic_symbol()
1041 BFD_ASSERT (srel != NULL); in elf_vax_adjust_dynamic_symbol()
1042 srel->size += sizeof (Elf32_External_Rela); in elf_vax_adjust_dynamic_symbol()
Delf32-nios2.c4561 asection *srel; in nios2_elf32_adjust_dynamic_symbol() local
4563 srel = htab->srelbss; in nios2_elf32_adjust_dynamic_symbol()
4564 BFD_ASSERT (srel != NULL); in nios2_elf32_adjust_dynamic_symbol()
4565 srel->size += sizeof (Elf32_External_Rela); in nios2_elf32_adjust_dynamic_symbol()
4901 asection *srel; in nios2_elf32_size_dynamic_sections() local
4922 srel = elf_section_data (p->sec)->sreloc; in nios2_elf32_size_dynamic_sections()
4923 srel->size += p->count * sizeof (Elf32_External_Rela); in nios2_elf32_size_dynamic_sections()
4939 srel = htab->root.srelgot; in nios2_elf32_size_dynamic_sections()
4954 srel->size += sizeof (Elf32_External_Rela); in nios2_elf32_size_dynamic_sections()

12