/toolchain/binutils/binutils-2.25/bfd/ |
D | cpu-ns32k.c | 157 reloc_howto_type *howto = reloc_entry->howto; in do_ns32k_reloc() local 192 if (output_bfd != NULL && ! howto->partial_inplace) in do_ns32k_reloc() 205 if (howto->pc_relative) in do_ns32k_reloc() 237 if (howto->pcrel_offset) in do_ns32k_reloc() 243 if (! howto->partial_inplace) in do_ns32k_reloc() 360 if (howto->complain_on_overflow != complain_overflow_dont) in do_ns32k_reloc() 366 if (howto->rightshift > howto->bitpos) in do_ns32k_reloc() 367 check = relocation >> (howto->rightshift - howto->bitpos); in do_ns32k_reloc() 369 check = relocation << (howto->bitpos - howto->rightshift); in do_ns32k_reloc() 370 switch (howto->complain_on_overflow) in do_ns32k_reloc() [all …]
|
D | reloc.c | 430 bfd_get_reloc_size (reloc_howto_type *howto) in bfd_get_reloc_size() argument 432 switch (howto->size) in bfd_get_reloc_size() 583 reloc_howto_type *howto = reloc_entry->howto; in bfd_perform_relocation() local 606 if (howto->special_function) in bfd_perform_relocation() 609 cont = howto->special_function (abfd, reloc_entry, symbol, data, in bfd_perform_relocation() 632 if ((output_bfd && ! howto->partial_inplace) in bfd_perform_relocation() 646 if (howto->pc_relative) in bfd_perform_relocation() 679 if (howto->pcrel_offset) in bfd_perform_relocation() 685 if (! howto->partial_inplace) in bfd_perform_relocation() 795 if (howto->complain_on_overflow != complain_overflow_dont in bfd_perform_relocation() [all …]
|
D | nlm32-i386.c | 111 rel->howto = &nlm_i386_abs_howto; in nlm_i386_read_reloc() 118 rel->howto = &nlm_i386_pcrel_howto; in nlm_i386_read_reloc() 121 rel->howto = &nlm_i386_abs_howto; in nlm_i386_read_reloc() 154 || rel->howto == NULL in nlm_i386_write_import() 155 || rel->howto->rightshift != 0 in nlm_i386_write_import() 156 || rel->howto->size != 2 in nlm_i386_write_import() 157 || rel->howto->bitsize != 32 in nlm_i386_write_import() 158 || rel->howto->bitpos != 0 in nlm_i386_write_import() 159 || rel->howto->src_mask != 0xffffffff in nlm_i386_write_import() 160 || rel->howto->dst_mask != 0xffffffff) in nlm_i386_write_import() [all …]
|
D | nlm32-ppc.c | 488 rel->howto = nlm_powerpc_howto_table + (l_rtype & 0xff); in nlm_powerpc_read_reloc() 490 BFD_ASSERT (rel->howto->name != NULL in nlm_powerpc_read_reloc() 492 ? (rel->howto->complain_on_overflow in nlm_powerpc_read_reloc() 494 : (rel->howto->complain_on_overflow in nlm_powerpc_read_reloc() 496 && ((l_rtype >> 8) & 0x1f) == rel->howto->bitsize - 1); in nlm_powerpc_read_reloc() 588 rel->howto = & nlm_powerpc_howto; in nlm_powerpc_read_reloc() 669 || rel->howto == NULL in nlm_powerpc_write_import() 670 || rel->howto->rightshift != 0 in nlm_powerpc_write_import() 671 || rel->howto->size != 2 in nlm_powerpc_write_import() 672 || rel->howto->bitsize != 32 in nlm_powerpc_write_import() [all …]
|
D | coff-m68k.c | 139 case R_RELBYTE: internal->howto = m68kcoff_howto_table + 0; break; in m68k_rtype2howto() 140 case R_RELWORD: internal->howto = m68kcoff_howto_table + 1; break; in m68k_rtype2howto() 141 case R_RELLONG: internal->howto = m68kcoff_howto_table + 2; break; in m68k_rtype2howto() 142 case R_PCRBYTE: internal->howto = m68kcoff_howto_table + 3; break; in m68k_rtype2howto() 143 case R_PCRWORD: internal->howto = m68kcoff_howto_table + 4; break; in m68k_rtype2howto() 144 case R_PCRLONG: internal->howto = m68kcoff_howto_table + 5; break; in m68k_rtype2howto() 145 case R_RELLONG_NEG: internal->howto = m68kcoff_howto_table + 6; break; in m68k_rtype2howto() 233 reloc_howto_type *howto; in m68kcoff_rtype_to_howto() local 235 relent.howto = NULL; in m68kcoff_rtype_to_howto() 238 howto = relent.howto; in m68kcoff_rtype_to_howto() [all …]
|
D | coff-h8300.c | 251 #define SELECT_RELOC(x,howto) \ argument 252 { x.r_type = select_reloc (howto); } 267 select_reloc (reloc_howto_type *howto) in select_reloc() argument 269 return howto->type; in select_reloc() 280 internal->howto = howto_table + 0; in rtype2howto() 283 internal->howto = howto_table + 1; in rtype2howto() 286 internal->howto = howto_table + 2; in rtype2howto() 289 internal->howto = howto_table + 3; in rtype2howto() 292 internal->howto = howto_table + 4; in rtype2howto() 295 internal->howto = howto_table + 5; in rtype2howto() [all …]
|
D | coff-i386.c | 110 reloc_howto_type *howto = reloc_entry->howto; in coff_i386_reloc() local 119 if (howto->pc_relative && howto->pcrel_offset) in coff_i386_reloc() 120 diff = -(1 << howto->size); in coff_i386_reloc() 133 if (reloc_entry->howto->type == R_IMAGEBASE in coff_i386_reloc() 140 x = ((x & ~howto->dst_mask) | (((x & howto->src_mask) + diff) & howto->dst_mask)) in coff_i386_reloc() 144 reloc_howto_type *howto = reloc_entry->howto; in coff_i386_reloc() local 147 switch (howto->size) in coff_i386_reloc() 187 reloc_howto_type *howto) in in_reloc_p() argument 189 return ! howto->pc_relative && howto->type != R_IMAGEBASE in in_reloc_p() 190 && howto->type != R_SECREL32; in in_reloc_p() [all …]
|
D | elf32-d10v.c | 232 cache_ptr->howto = &elf_d10v_howto_table[r_type]; in d10v_info_to_howto_rel() 321 reloc_howto_type *howto) in extract_rel_addend() argument 325 switch (howto->size) in extract_rel_addend() 340 val = (insn & howto->dst_mask) >> howto->bitpos << howto->rightshift; in extract_rel_addend() 343 if (howto->pc_relative) in extract_rel_addend() 346 sign = howto->dst_mask & (~howto->dst_mask >> 1 | ~(-(bfd_vma) 1 >> 1)); in extract_rel_addend() 347 sign = sign >> howto->bitpos << howto->rightshift; in extract_rel_addend() 356 reloc_howto_type *howto, in insert_rel_addend() argument 361 addend = (addend >> howto->rightshift << howto->bitpos) & howto->dst_mask; in insert_rel_addend() 362 insn = ~howto->dst_mask; in insert_rel_addend() [all …]
|
D | coff-x86_64.c | 109 reloc_howto_type *howto = reloc_entry->howto; in coff_amd64_reloc() local 118 if(howto->pc_relative && howto->pcrel_offset) in coff_amd64_reloc() 119 diff = -(1 << howto->size); in coff_amd64_reloc() 132 if (reloc_entry->howto->type == R_AMD64_IMAGEBASE in coff_amd64_reloc() 139 x = ((x & ~howto->dst_mask) | (((x & howto->src_mask) + diff) & howto->dst_mask)) in coff_amd64_reloc() 143 reloc_howto_type *howto = reloc_entry->howto; in coff_amd64_reloc() local 146 switch (howto->size) in coff_amd64_reloc() 193 in_reloc_p (bfd *abfd ATTRIBUTE_UNUSED, reloc_howto_type *howto) in in_reloc_p() argument 195 return ! howto->pc_relative && howto->type != R_AMD64_IMAGEBASE in in_reloc_p() 196 && howto->type != R_AMD64_SECREL; in in_reloc_p() [all …]
|
D | coff-mcore.c | 242 BFD_ASSERT (reloc_entry->howto != (reloc_howto_type *)0); in mcore_coff_unsupported_reloc() 246 reloc_entry->howto->name, in mcore_coff_unsupported_reloc() 247 reloc_entry->howto->type); in mcore_coff_unsupported_reloc() 294 (cache_ptr)->howto = mcore_coff_howto_table + (dst)->r_type; 304 reloc_howto_type * howto; in coff_mcore_rtype_to_howto() local 309 howto = mcore_coff_howto_table + rel->r_type; in coff_mcore_rtype_to_howto() 314 else if (howto->pc_relative) in coff_mcore_rtype_to_howto() 330 return howto; in coff_mcore_rtype_to_howto() 337 in_reloc_p (bfd * abfd ATTRIBUTE_UNUSED, reloc_howto_type * howto) in in_reloc_p() argument 339 return ! howto->pc_relative && howto->type != IMAGE_REL_MCORE_RVA; in in_reloc_p() [all …]
|
D | elf32-d30v.c | 48 reloc_howto_type *howto = reloc_entry->howto; in bfd_elf_d30v_reloc() local 93 if (howto->pc_relative) in bfd_elf_d30v_reloc() 113 if (howto->pc_relative && howto->bitsize == 32) in bfd_elf_d30v_reloc() 156 reloc_howto_type *howto = reloc_entry->howto; in bfd_elf_d30v_reloc_21() local 202 if (howto->pc_relative) in bfd_elf_d30v_reloc_21() 206 if (howto->pcrel_offset) in bfd_elf_d30v_reloc_21() 212 mask = (1 << howto->bitsize) - 1; in bfd_elf_d30v_reloc_21() 213 if (howto->bitsize == 6) in bfd_elf_d30v_reloc_21() 215 max = (1 << (howto->bitsize + 2)) - 1; in bfd_elf_d30v_reloc_21() 219 if (howto->bitsize == 6) in bfd_elf_d30v_reloc_21() [all …]
|
D | coff-h8500.c | 71 coff_h8500_select_reloc (reloc_howto_type *howto) in coff_h8500_select_reloc() argument 73 return howto->type; in coff_h8500_select_reloc() 76 #define SELECT_RELOC(x,howto) x.r_type = coff_h8500_select_reloc(howto) argument 101 internal->howto = &r_imm8; in rtype2howto() 104 internal->howto = &r_imm16; in rtype2howto() 107 internal->howto = &r_imm24; in rtype2howto() 110 internal->howto = &r_imm32; in rtype2howto() 113 internal->howto = &r_pcrel8; in rtype2howto() 116 internal->howto = &r_pcrel16; in rtype2howto() 119 internal->howto = &r_high8; in rtype2howto() [all …]
|
D | elf32-i860.c | 45 && (! reloc_entry->howto->partial_inplace in i860_howto_pc26_reloc() 83 relocation >>= reloc_entry->howto->rightshift; in i860_howto_pc26_reloc() 84 insn = (insn & ~reloc_entry->howto->dst_mask) in i860_howto_pc26_reloc() 85 | (relocation & reloc_entry->howto->dst_mask); in i860_howto_pc26_reloc() 108 && (! reloc_entry->howto->partial_inplace in i860_howto_pc16_reloc() 146 relocation >>= reloc_entry->howto->rightshift; in i860_howto_pc16_reloc() 148 & reloc_entry->howto->dst_mask; in i860_howto_pc16_reloc() 149 insn = (insn & ~reloc_entry->howto->dst_mask) | relocation; in i860_howto_pc16_reloc() 172 && (! reloc_entry->howto->partial_inplace in i860_howto_highadj_reloc() 225 && (! reloc_entry->howto->partial_inplace in i860_howto_splitn_reloc() [all …]
|
D | mach-o-i386.c | 124 res->howto = &i386_howto_table[7]; in bfd_mach_o_i386_swap_reloc_in() 130 res->howto = &i386_howto_table[10]; in bfd_mach_o_i386_swap_reloc_in() 138 res->howto = &i386_howto_table[5]; in bfd_mach_o_i386_swap_reloc_in() 143 res->howto = &i386_howto_table[8]; in bfd_mach_o_i386_swap_reloc_in() 150 res->howto = &i386_howto_table[6]; in bfd_mach_o_i386_swap_reloc_in() 155 res->howto = &i386_howto_table[9]; in bfd_mach_o_i386_swap_reloc_in() 171 res->howto = &i386_howto_table[2]; in bfd_mach_o_i386_swap_reloc_in() 174 res->howto = &i386_howto_table[1]; in bfd_mach_o_i386_swap_reloc_in() 177 res->howto = &i386_howto_table[4]; in bfd_mach_o_i386_swap_reloc_in() 180 res->howto = &i386_howto_table[0]; in bfd_mach_o_i386_swap_reloc_in() [all …]
|
D | coff-w65.c | 47 #define SELECT_RELOC(x,howto) \ argument 48 { x.r_type = select_reloc(howto); } 62 select_reloc (reloc_howto_type *howto) in select_reloc() argument 64 return howto->type ; in select_reloc() 73 internal->howto = howto_table + dst->r_type - 1; in rtype2howto() 127 switch (reloc->howto->type) in w65_reloc16_estimate() 142 reloc->howto = reloc->howto + 1; in w65_reloc16_estimate() 169 reloc->howto = reloc->howto + 1; in w65_reloc16_estimate() 191 reloc->howto = reloc->howto + 1; in w65_reloc16_estimate() 226 switch (reloc->howto->type) in w65_reloc16_extra_cases() [all …]
|
D | coff-i860.c | 91 x = ((x & ~howto->dst_mask) | (((x & howto->src_mask) + diff) & howto->dst_mask)) in coff_i860_reloc() 95 reloc_howto_type *howto = reloc_entry->howto; in coff_i860_reloc() local 98 switch (howto->size) in coff_i860_reloc() 145 reloc_howto_type *howto = reloc_entry->howto; in coff_i860_reloc_nyi() local 146 (*_bfd_error_handler) (_("relocation `%s' not yet implemented"), howto->name); in coff_i860_reloc_nyi() 442 #define SELECT_RELOC(x,howto) { x.r_type = howto->type; } argument 447 ((cache_ptr)->howto = \ 484 reloc_howto_type *howto; in coff_i860_rtype_to_howto() local 492 howto = howto_table + rel->r_type; in coff_i860_rtype_to_howto() 494 if (howto->pc_relative) in coff_i860_rtype_to_howto() [all …]
|
D | pe-mips.c | 96 …x = ((x & ~howto->dst_mask) | (((x & howto->src_mask) + (diff >> howto->rightshift)) & howto->dst_… in coff_mips_reloc() 100 reloc_howto_type *howto = reloc_entry->howto; in coff_mips_reloc() local 103 switch (howto->size) in coff_mips_reloc() 146 in_reloc_p (bfd * abfd ATTRIBUTE_UNUSED, reloc_howto_type *howto) in in_reloc_p() argument 148 return ! howto->pc_relative && howto->type != MIPS_R_RVA; in in_reloc_p() 346 #define SELECT_RELOC(x, howto) { x.r_type = howto->type; } argument 353 (cache_ptr)->howto = howto_table + (dst)->r_type; 400 reloc_howto_type *howto; in coff_mips_rtype_to_howto() local 402 howto = howto_table + rel->r_type; in coff_mips_rtype_to_howto() 408 if (howto->pc_relative) in coff_mips_rtype_to_howto() [all …]
|
D | aout-tic30.c | 395 tic30_aout_relocate_contents (reloc_howto_type *howto, in tic30_aout_relocate_contents() argument 403 if (howto->size < 0) in tic30_aout_relocate_contents() 406 switch (howto->size) in tic30_aout_relocate_contents() 428 if (howto->complain_on_overflow != complain_overflow_dont) in tic30_aout_relocate_contents() 435 if (howto->rightshift == 0) in tic30_aout_relocate_contents() 442 check = relocation >> howto->rightshift; in tic30_aout_relocate_contents() 446 signed_check = (check | ((bfd_vma) - 1 & ~((bfd_vma) - 1 >> howto->rightshift))); in tic30_aout_relocate_contents() 448 add = x & howto->src_mask; in tic30_aout_relocate_contents() 450 if ((add & (((~howto->src_mask) >> 1) & howto->src_mask)) != 0) in tic30_aout_relocate_contents() 451 signed_add -= (((~howto->src_mask) >> 1) & howto->src_mask) << 1; in tic30_aout_relocate_contents() [all …]
|
D | elfxx-aarch64.c | 159 reloc_howto_type *howto, bfd_signed_vma addend) in _bfd_aarch64_elf_put_addend() argument 166 size = bfd_get_reloc_size (howto); in _bfd_aarch64_elf_put_addend() 173 if (howto->src_mask != 0xffffffff) in _bfd_aarch64_elf_put_addend() 187 switch (howto->complain_on_overflow) in _bfd_aarch64_elf_put_addend() 193 howto->bitsize + howto->rightshift); in _bfd_aarch64_elf_put_addend() 197 howto->bitsize + howto->rightshift); in _bfd_aarch64_elf_put_addend() 204 addend >>= howto->rightshift; in _bfd_aarch64_elf_put_addend() 223 if (old_addend & ((1 << howto->rightshift) - 1)) in _bfd_aarch64_elf_put_addend() 265 if (old_addend & ((1 << howto->rightshift) - 1)) in _bfd_aarch64_elf_put_addend() 315 if (howto->dst_mask & (howto->dst_mask + 1)) in _bfd_aarch64_elf_put_addend() [all …]
|
D | mach-o-x86-64.c | 137 res->howto = &x86_64_howto_table[1]; in bfd_mach_o_x86_64_swap_reloc_in() 140 res->howto = &x86_64_howto_table[0]; in bfd_mach_o_x86_64_swap_reloc_in() 148 res->howto = &x86_64_howto_table[2]; in bfd_mach_o_x86_64_swap_reloc_in() 158 res->howto = &x86_64_howto_table[6]; in bfd_mach_o_x86_64_swap_reloc_in() 167 res->howto = &x86_64_howto_table[7]; in bfd_mach_o_x86_64_swap_reloc_in() 174 res->howto = &x86_64_howto_table[10]; in bfd_mach_o_x86_64_swap_reloc_in() 184 res->howto = &x86_64_howto_table[8]; in bfd_mach_o_x86_64_swap_reloc_in() 187 res->howto = &x86_64_howto_table[9]; in bfd_mach_o_x86_64_swap_reloc_in() 196 res->howto = &x86_64_howto_table[3]; in bfd_mach_o_x86_64_swap_reloc_in() 203 res->howto = &x86_64_howto_table[4]; in bfd_mach_o_x86_64_swap_reloc_in() [all …]
|
D | coff-z8k.c | 91 internal->howto = &r_imm8; in rtype2howto() 94 internal->howto = &r_da; in rtype2howto() 97 internal->howto = &r_jr; in rtype2howto() 100 internal->howto = &r_disp7; in rtype2howto() 103 internal->howto = &r_callr; in rtype2howto() 106 internal->howto = &r_rel16; in rtype2howto() 109 internal->howto = &r_imm32; in rtype2howto() 112 internal->howto = &r_imm4l; in rtype2howto() 200 switch (reloc->howto->type) in extra_case() 271 reloc->howto->name, reloc->addend, input_section->owner, in extra_case() [all …]
|
D | coff-apollo.c | 63 case R_RELBYTE: internal->howto = apollocoff_howto_table + 0; break; in apollo_rtype2howto() 64 case R_RELWORD: internal->howto = apollocoff_howto_table + 1; break; in apollo_rtype2howto() 65 case R_RELLONG: internal->howto = apollocoff_howto_table + 2; break; in apollo_rtype2howto() 66 case R_PCRBYTE: internal->howto = apollocoff_howto_table + 3; break; in apollo_rtype2howto() 67 case R_PCRWORD: internal->howto = apollocoff_howto_table + 4; break; in apollo_rtype2howto() 68 case R_PCRLONG: internal->howto = apollocoff_howto_table + 5; break; in apollo_rtype2howto() 69 case R_RELLONG_NEG: internal->howto = apollocoff_howto_table + 6; break; in apollo_rtype2howto()
|
D | coff-tic30.c | 99 coff_tic30_select_reloc (reloc_howto_type *howto) in coff_tic30_select_reloc() argument 101 return howto->type; in coff_tic30_select_reloc() 104 #define SELECT_RELOC(x,howto) x.r_type = coff_tic30_select_reloc(howto) argument 124 internal->howto = &tic30_coff_howto_table[0]; in rtype2howto() 127 internal->howto = &tic30_coff_howto_table[1]; in rtype2howto() 130 internal->howto = &tic30_coff_howto_table[3]; in rtype2howto() 133 internal->howto = &tic30_coff_howto_table[2]; in rtype2howto() 136 internal->howto = &tic30_coff_howto_table[4]; in rtype2howto()
|
D | elf32-score.c | 495 if (reloc_entry->howto->partial_inplace) in gprel32_with_gp() 505 if (reloc_entry->howto->partial_inplace) in gprel32_with_gp() 1848 reloc_howto_type *howto, in score_elf_add_to_rel() argument 1854 unsigned long r_type = howto->type; in score_elf_add_to_rel() 1859 addend = contents & howto->src_mask; in score_elf_add_to_rel() 1860 if (addend & ((howto->src_mask + 1) >> 1)) in score_elf_add_to_rel() 1865 mask &= ~howto->src_mask; in score_elf_add_to_rel() 1873 (((contents & howto->src_mask) & 0x3ff0000) >> 6) | ((contents & howto->src_mask) & 0x3ff); in score_elf_add_to_rel() 1876 (contents & ~howto-> in score_elf_add_to_rel() 1877 src_mask) | (((offset << 6) & howto->src_mask) & 0x3ff0000) | (offset & 0x3ff); in score_elf_add_to_rel() [all …]
|
D | coff-ppc.c | 900 reloc_howto_type *howto) in in_reloc_p() argument 903 (! howto->pc_relative) in in_reloc_p() 904 && (howto->type != IMAGE_REL_PPC_ADDR32NB) in in_reloc_p() 905 && (howto->type != IMAGE_REL_PPC_TOCREL16) in in_reloc_p() 906 && (howto->type != IMAGE_REL_PPC_IMGLUE) in in_reloc_p() 907 && (howto->type != IMAGE_REL_PPC_IFGLUE) in in_reloc_p() 908 && (howto->type != IMAGE_REL_PPC_SECREL) in in_reloc_p() 909 && (howto->type != IMAGE_REL_PPC_SECTION) in in_reloc_p() 910 && (howto->type != IMAGE_REL_PPC_SECREL16) in in_reloc_p() 911 && (howto->type != IMAGE_REL_PPC_REFHI) in in_reloc_p() [all …]
|