Lines Matching refs:relocation

398   bfd_vma relocation = 0;  in rl78_compute_complex_reloc()  local
410 relocation = rl78_stack_pop (&status); in rl78_compute_complex_reloc()
411 relocation -= input_section->output_section->vma + input_section->output_offset; in rl78_compute_complex_reloc()
423 relocation = rl78_stack_pop (&status); in rl78_compute_complex_reloc()
428 relocation = rl78_stack_pop (&status) >> 2; in rl78_compute_complex_reloc()
433 relocation = rl78_stack_pop (&status) >> 1; in rl78_compute_complex_reloc()
559 return relocation; in rl78_compute_complex_reloc()
566 check_overflow (reloc_howto_type *howto, bfd_vma relocation) in check_overflow() argument
574 if ((bfd_signed_vma) relocation < -(1LL << (howto->bitsize - 1)) in check_overflow()
575 || (bfd_signed_vma) relocation >= 1LL << howto->bitsize) in check_overflow()
580 if ((bfd_signed_vma) relocation < -(1LL << (howto->bitsize - 1)) in check_overflow()
581 || (bfd_signed_vma) relocation >= 1LL << (howto->bitsize - 1)) in check_overflow()
586 if (relocation >= 1ULL << howto->bitsize) in check_overflow()
603 bfd_vma relocation = 0; in rl78_special_reloc() local
611 relocation = (symbol->value in rl78_special_reloc()
618 relocation = get_romstart (NULL, input_bfd, input_section, in rl78_special_reloc()
623 relocation = get_ramstart (NULL, input_bfd, input_section, in rl78_special_reloc()
629 relocation = rl78_compute_complex_reloc (r_type, relocation, input_section, in rl78_special_reloc()
638 r = check_overflow (reloc->howto, relocation); in rl78_special_reloc()
641 relocation = ((relocation & 0xff) << 8) | ((relocation >> 8) & 0xff); in rl78_special_reloc()
643 relocation = (((relocation & 0xff) << 24) in rl78_special_reloc()
644 | ((relocation & 0xff00) << 8) in rl78_special_reloc()
645 | ((relocation >> 8) & 0xff00) in rl78_special_reloc()
646 | ((relocation >> 24) & 0xff)); in rl78_special_reloc()
657 contents[reloc->address + i] = relocation; in rl78_special_reloc()
658 relocation >>= 8; in rl78_special_reloc()
734 bfd_vma relocation; in rl78_elf_relocate_section() local
748 relocation = 0; in rl78_elf_relocate_section()
754 relocation = _bfd_elf_rela_local_sym (output_bfd, sym, & sec, rel); in rl78_elf_relocate_section()
767 sec, relocation, unresolved_reloc, in rl78_elf_relocate_section()
799 if (! valid_16bit_address (relocation)) in rl78_elf_relocate_section()
808 x |= (relocation << 8) & 0xffffff00; in rl78_elf_relocate_section()
813 relocation = (splt->output_section->vma in rl78_elf_relocate_section()
840 relocation = 0; in rl78_elf_relocate_section()
845 relocation -= (input_section->output_section->vma in rl78_elf_relocate_section()
848 relocation -= bfd_get_reloc_size (howto); in rl78_elf_relocate_section()
851 relocation += rel->r_addend; in rl78_elf_relocate_section()
870 OP (0) = relocation; in rl78_elf_relocate_section()
874 OP (0) = relocation; in rl78_elf_relocate_section()
878 OP (0) = relocation; in rl78_elf_relocate_section()
882 OP (0) = relocation; in rl78_elf_relocate_section()
883 OP (1) = relocation >> 8; in rl78_elf_relocate_section()
887 if ((relocation & 0xf0000) == 0xf0000) in rl78_elf_relocate_section()
888 relocation &= 0xffff; in rl78_elf_relocate_section()
889 OP (0) = relocation; in rl78_elf_relocate_section()
890 OP (1) = relocation >> 8; in rl78_elf_relocate_section()
894 OP (0) = relocation; in rl78_elf_relocate_section()
895 OP (1) = relocation >> 8; in rl78_elf_relocate_section()
899 OP (0) = relocation; in rl78_elf_relocate_section()
900 OP (1) = relocation >> 8; in rl78_elf_relocate_section()
904 OP (1) = relocation; in rl78_elf_relocate_section()
905 OP (0) = relocation >> 8; in rl78_elf_relocate_section()
910 OP (0) |= relocation & 0x07; in rl78_elf_relocate_section()
913 relocation -= 3; in rl78_elf_relocate_section()
917 OP (0) = relocation; in rl78_elf_relocate_section()
918 OP (1) = relocation >> 8; in rl78_elf_relocate_section()
919 OP (2) = relocation >> 16; in rl78_elf_relocate_section()
923 OP (0) = relocation; in rl78_elf_relocate_section()
924 OP (1) = relocation >> 8; in rl78_elf_relocate_section()
925 OP (2) = relocation >> 16; in rl78_elf_relocate_section()
929 OP (0) = relocation; in rl78_elf_relocate_section()
930 OP (1) = relocation >> 8; in rl78_elf_relocate_section()
931 OP (2) = relocation >> 16; in rl78_elf_relocate_section()
932 OP (3) = relocation >> 24; in rl78_elf_relocate_section()
936 OP (3) = relocation; in rl78_elf_relocate_section()
937 OP (2) = relocation >> 8; in rl78_elf_relocate_section()
938 OP (1) = relocation >> 16; in rl78_elf_relocate_section()
939 OP (0) = relocation >> 24; in rl78_elf_relocate_section()
943 relocation -= 0xfff00; in rl78_elf_relocate_section()
944 OP (0) = relocation; in rl78_elf_relocate_section()
948 relocation -= 0xffe20; in rl78_elf_relocate_section()
949 OP (0) = relocation; in rl78_elf_relocate_section()
984 relocation = rl78_compute_complex_reloc (r_type, 0, input_section, in rl78_elf_relocate_section()
990 OP (0) = relocation; in rl78_elf_relocate_section()
991 OP (1) = relocation >> 8; in rl78_elf_relocate_section()
992 OP (2) = relocation >> 16; in rl78_elf_relocate_section()
993 OP (3) = relocation >> 24; in rl78_elf_relocate_section()
997 OP (3) = relocation; in rl78_elf_relocate_section()
998 OP (2) = relocation >> 8; in rl78_elf_relocate_section()
999 OP (1) = relocation >> 16; in rl78_elf_relocate_section()
1000 OP (0) = relocation >> 24; in rl78_elf_relocate_section()
1005 OP (0) = relocation; in rl78_elf_relocate_section()
1006 OP (1) = relocation >> 8; in rl78_elf_relocate_section()
1007 OP (2) = relocation >> 16; in rl78_elf_relocate_section()
1011 OP (0) = relocation; in rl78_elf_relocate_section()
1012 OP (1) = relocation >> 8; in rl78_elf_relocate_section()
1016 OP (1) = relocation; in rl78_elf_relocate_section()
1017 OP (0) = relocation >> 8; in rl78_elf_relocate_section()
1022 OP (0) = relocation; in rl78_elf_relocate_section()
1023 OP (1) = relocation >> 8; in rl78_elf_relocate_section()
1029 OP (0) = relocation; in rl78_elf_relocate_section()
1030 OP (1) = relocation >> 8; in rl78_elf_relocate_section()
1034 OP (0) = relocation; in rl78_elf_relocate_section()
1040 OP (0) = relocation; in rl78_elf_relocate_section()
1045 OP (0) = relocation; in rl78_elf_relocate_section()
1055 relocation = sec->output_section->vma + sec->output_offset in rl78_elf_relocate_section()
1060 relocation = h->root.u.def.value in rl78_elf_relocate_section()
1066 relocation = 0; in rl78_elf_relocate_section()
1071 (void) rl78_compute_complex_reloc (r_type, relocation, input_section, in rl78_elf_relocate_section()
1076 relocation = get_romstart (info, input_bfd, input_section, in rl78_elf_relocate_section()
1078 (void) rl78_compute_complex_reloc (r_type, relocation, input_section, in rl78_elf_relocate_section()
1083 relocation = get_ramstart (info, input_bfd, input_section, in rl78_elf_relocate_section()
1085 (void) rl78_compute_complex_reloc (r_type, relocation, input_section, in rl78_elf_relocate_section()
1095 r = check_overflow (howto, relocation); in rl78_elf_relocate_section()