/toolchain/binutils/binutils-2.25/gold/ |
D | mips.cc | 141 unsigned int r_type, bool target_is_16_bit_code) in relocation_needs_la25_stub() argument 151 switch (r_type) in relocation_needs_la25_stub() 197 hi16_reloc(int r_type) in hi16_reloc() argument 199 return (r_type == elfcpp::R_MIPS_HI16 in hi16_reloc() 200 || r_type == elfcpp::R_MIPS16_HI16 in hi16_reloc() 201 || r_type == elfcpp::R_MICROMIPS_HI16); in hi16_reloc() 205 lo16_reloc(int r_type) in lo16_reloc() argument 207 return (r_type == elfcpp::R_MIPS_LO16 in lo16_reloc() 208 || r_type == elfcpp::R_MIPS16_LO16 in lo16_reloc() 209 || r_type == elfcpp::R_MICROMIPS_LO16); in lo16_reloc() [all …]
|
D | i386.cc | 555 get_reference_flags(unsigned int r_type); 562 const elfcpp::Rel<32, false>& reloc, unsigned int r_type, 571 const elfcpp::Rel<32, false>& reloc, unsigned int r_type, 581 unsigned int r_type, 591 unsigned int r_type, 595 possible_function_pointer_reloc(unsigned int r_type); 599 unsigned int r_type); 602 unsupported_reloc_local(Sized_relobj_file<32, false>*, unsigned int r_type); 605 unsupported_reloc_global(Sized_relobj_file<32, false>*, unsigned int r_type, 630 unsigned int r_type, [all …]
|
D | x86_64.cc | 534 do_reloc_symbol_index(void*, unsigned int r_type) const in do_reloc_symbol_index() 536 gold_assert(r_type == elfcpp::R_X86_64_TLSDESC); in do_reloc_symbol_index() 542 do_reloc_addend(void* arg, unsigned int r_type, uint64_t addend) const; 637 unsigned int r_type, 704 get_reference_flags(unsigned int r_type); 711 const elfcpp::Rela<size, false>& reloc, unsigned int r_type, 720 const elfcpp::Rela<size, false>& reloc, unsigned int r_type, 730 unsigned int r_type, 740 unsigned int r_type, 746 unsigned int r_type); [all …]
|
D | powerpc.cc | 75 is_branch_reloc(unsigned int r_type); 578 unsigned int r_type, unsigned int r_sym, Address addend) in push_branch() argument 580 Branch_info info(ppc_object, data_shndx, r_offset, r_type, r_sym, addend); in push_branch() 582 if (r_type == elfcpp::R_POWERPC_REL14 in push_branch() 583 || r_type == elfcpp::R_POWERPC_REL14_BRTAKEN in push_branch() 584 || r_type == elfcpp::R_POWERPC_REL14_BRNTAKEN) in push_branch() 900 maybe_skip_tls_get_addr_call(unsigned int r_type, const Symbol* gsym) in maybe_skip_tls_get_addr_call() argument 902 bool is_tls_call = ((r_type == elfcpp::R_POWERPC_REL24 in maybe_skip_tls_get_addr_call() 903 || r_type == elfcpp::R_PPC_PLTREL24) in maybe_skip_tls_get_addr_call() 948 get_reference_flags(unsigned int r_type, const Target_powerpc* target); [all …]
|
D | sparc.cc | 233 get_reference_flags(unsigned int r_type); 240 const elfcpp::Rela<size, big_endian>& reloc, unsigned int r_type, 249 const elfcpp::Rela<size, big_endian>& reloc, unsigned int r_type, 278 unsigned int r_type); 282 unsigned int r_type, Symbol*); 289 check_non_pic(Relobj*, unsigned int r_type); 293 unsigned int r_type); 322 unsigned int r_type, const Sized_symbol<size>*, 333 unsigned int r_type, const Sized_symbol<size>*, 1920 optimize_tls_reloc(bool is_final, int r_type) in optimize_tls_reloc() argument [all …]
|
D | tilegx.cc | 427 unsigned int r_type, 444 get_reference_flags(unsigned int r_type); 451 const elfcpp::Rela<size, big_endian>& reloc, unsigned int r_type, 460 const elfcpp::Rela<size, big_endian>& reloc, unsigned int r_type, 470 unsigned int r_type, 480 unsigned int r_type, 486 unsigned int r_type); 490 unsigned int r_type, Symbol*); 493 check_non_pic(Relobj*, unsigned int r_type); 496 possible_function_pointer_reloc(unsigned int r_type); [all …]
|
D | arm.cc | 187 data_word(unsigned data, unsigned int r_type, int reloc_addend) in data_word() argument 188 { return Insn_template(data, DATA_TYPE, r_type, reloc_addend); } in data_word() 204 r_type() const in r_type() function in __anon5653a9be0111::Insn_template 223 Insn_template(unsigned data, Type type, unsigned int r_type, int reloc_addend) in Insn_template() argument 224 : data_(data), type_(type), r_type_(r_type), reloc_addend_(reloc_addend) in Insn_template() 499 stub_type_for_reloc(unsigned int r_type, Arm_address branch_address, 1863 Cortex_a8_reloc(Reloc_stub* reloc_stub, unsigned r_type, in Cortex_a8_reloc() argument 1865 : reloc_stub_(reloc_stub), r_type_(r_type), destination_(destination) in Cortex_a8_reloc() 1881 r_type() const in r_type() function in __anon5653a9be0111::Cortex_a8_reloc 1915 add_static_reloc(unsigned int got_offset, unsigned int r_type, Symbol* gsym) in add_static_reloc() argument [all …]
|
D | target-reloc.h | 74 unsigned int r_type = elfcpp::elf_r_type<size>(r_info); in scan_relocs() local 102 output_section, reloc, r_type, lsym, is_discarded); in scan_relocs() 112 output_section, reloc, r_type, gsym); in scan_relocs() 300 unsigned int r_type = elfcpp::elf_r_type<size>(r_info); in relocate_section() local 404 r_type, sym, psymval, v, view_address + offset, in relocate_section() 436 unsigned int r_type, in apply_relocation() argument 449 orel.put_r_info(elfcpp::elf_r_info<size>(0, r_type)); in apply_relocation() 464 relocate.relocate(relinfo, target, NULL, -1U, rel, r_type, sym, &symval, in apply_relocation() 483 local_non_section_strategy(unsigned int r_type, Relobj*, unsigned int r_sym) in local_non_section_strategy() argument 487 if (r_type == 0 && r_sym == 0) in local_non_section_strategy() [all …]
|
/toolchain/binutils/binutils-2.25/bfd/ |
D | aout-cris.c | 152 unsigned int r_type; in MY() local 159 r_type = (unsigned int) g->howto->type; in MY() 197 if (r_type > 2) in MY() 200 bfd_get_filename (abfd), r_type); in MY() 209 natptr->r_type[0] = in MY() 211 | (r_type << RELOC_EXT_BITS_TYPE_SH_LITTLE); in MY() 227 unsigned int r_type; in MY() local 236 r_extern = (0 != (bytes->r_type[0] & RELOC_EXT_BITS_EXTERN_LITTLE)); in MY() 237 r_type = ((bytes->r_type[0]) >> RELOC_EXT_BITS_TYPE_SH_LITTLE) in MY() 240 if (r_type > 2) in MY() [all …]
|
D | nlm32-alpha.c | 402 int r_type, r_extern, r_offset, r_size; in nlm_alpha_read_reloc() local 415 r_type = ((ext.r_bits[0] & RELOC_BITS0_TYPE_LITTLE) in nlm_alpha_read_reloc() 441 BFD_ASSERT (r_type == ALPHA_R_NW_RELOC || sym == NULL); in nlm_alpha_read_reloc() 442 if (r_type == ALPHA_R_NW_RELOC in nlm_alpha_read_reloc() 443 || r_type == ALPHA_R_GPDISP in nlm_alpha_read_reloc() 444 || r_type == ALPHA_R_IGNORE) in nlm_alpha_read_reloc() 471 if (r_type == ALPHA_R_NW_RELOC in nlm_alpha_read_reloc() 484 BFD_ASSERT ((r_type >= 0 && r_type <= ALPHA_R_GPVALUE) in nlm_alpha_read_reloc() 485 || r_type == ALPHA_R_NW_RELOC); in nlm_alpha_read_reloc() 487 switch (r_type) in nlm_alpha_read_reloc() [all …]
|
D | mach-o-x86-64.c | 129 switch (reloc->r_type) in bfd_mach_o_x86_64_swap_reloc_in() 228 rinfo->r_type = BFD_MACH_O_X86_64_RELOC_UNSIGNED; in bfd_mach_o_x86_64_swap_reloc_out() 233 rinfo->r_type = BFD_MACH_O_X86_64_RELOC_UNSIGNED; in bfd_mach_o_x86_64_swap_reloc_out() 238 rinfo->r_type = BFD_MACH_O_X86_64_RELOC_SIGNED; in bfd_mach_o_x86_64_swap_reloc_out() 243 rinfo->r_type = BFD_MACH_O_X86_64_RELOC_SIGNED_1; in bfd_mach_o_x86_64_swap_reloc_out() 248 rinfo->r_type = BFD_MACH_O_X86_64_RELOC_SIGNED_2; in bfd_mach_o_x86_64_swap_reloc_out() 253 rinfo->r_type = BFD_MACH_O_X86_64_RELOC_SIGNED_4; in bfd_mach_o_x86_64_swap_reloc_out() 258 rinfo->r_type = BFD_MACH_O_X86_64_RELOC_BRANCH; in bfd_mach_o_x86_64_swap_reloc_out() 263 rinfo->r_type = BFD_MACH_O_X86_64_RELOC_SUBTRACTOR; in bfd_mach_o_x86_64_swap_reloc_out() 268 rinfo->r_type = BFD_MACH_O_X86_64_RELOC_SUBTRACTOR; in bfd_mach_o_x86_64_swap_reloc_out() [all …]
|
D | elfxx-sparc.c | 617 _bfd_sparc_elf_info_to_howto_ptr (unsigned int r_type) in _bfd_sparc_elf_info_to_howto_ptr() argument 619 switch (r_type) in _bfd_sparc_elf_info_to_howto_ptr() 637 if (r_type >= (unsigned int) R_SPARC_max_std) in _bfd_sparc_elf_info_to_howto_ptr() 640 (int) r_type); in _bfd_sparc_elf_info_to_howto_ptr() 641 r_type = R_SPARC_NONE; in _bfd_sparc_elf_info_to_howto_ptr() 643 return &_bfd_sparc_elf_howto_table[r_type]; in _bfd_sparc_elf_info_to_howto_ptr() 656 unsigned int r_type = SPARC_ELF_R_TYPE (dst->r_info); in _bfd_sparc_elf_info_to_howto() local 658 cache_ptr->howto = _bfd_sparc_elf_info_to_howto_ptr (r_type); in _bfd_sparc_elf_info_to_howto() 1326 int r_type, int is_local) in sparc_elf_tls_transition() argument 1329 && r_type == R_SPARC_TLS_GD_HI22 in sparc_elf_tls_transition() [all …]
|
D | elf64-s390.c | 356 unsigned int r_type = ELF64_R_TYPE(dst->r_info); in elf_s390_info_to_howto() local 357 switch (r_type) in elf_s390_info_to_howto() 368 if (r_type >= sizeof (elf_howto_table) / sizeof (elf_howto_table[0])) in elf_s390_info_to_howto() 371 abfd, (int) r_type); in elf_s390_info_to_howto() 372 r_type = R_390_NONE; in elf_s390_info_to_howto() 374 cache_ptr->howto = &elf_howto_table[r_type]; in elf_s390_info_to_howto() 856 int r_type, in elf_s390_tls_transition() argument 860 return r_type; in elf_s390_tls_transition() 862 switch (r_type) in elf_s390_tls_transition() 877 return r_type; in elf_s390_tls_transition() [all …]
|
D | aout-arm.c | 112 *r_extern = (0 != (rel->r_type[0] & RELOC_STD_BITS_EXTERN_BIG)); in MY() 113 r_pcrel_done = (0 != (rel->r_type[0] & RELOC_STD_BITS_PCREL_BIG)); in MY() 114 r_neg = (0 != (rel->r_type[0] & RELOC_ARM_BITS_NEG_BIG)); in MY() 115 r_length = ((rel->r_type[0] & RELOC_STD_BITS_LENGTH_BIG) in MY() 123 *r_extern = (0 != (rel->r_type[0] & RELOC_STD_BITS_EXTERN_LITTLE)); in MY() 124 r_pcrel_done = (0 != (rel->r_type[0] & RELOC_STD_BITS_PCREL_LITTLE)); in MY() 125 r_neg = (0 != (rel->r_type[0] & RELOC_ARM_BITS_NEG_LITTLE)); in MY() 126 r_length = ((rel->r_type[0] & RELOC_STD_BITS_LENGTH_LITTLE) in MY() 167 reloc->r_type[0] = in MY() 178 reloc->r_type[0] = in MY() [all …]
|
D | coff-ppc.c | 719 (((r->r_type) & IMAGE_REL_PPC_TOCDEFN) == 0) \ 966 unsigned short r_type = EXTRACT_TYPE (rel->r_type); in coff_ppc_relocate_section() local 967 unsigned short r_flags = EXTRACT_FLAGS(rel->r_type); in coff_ppc_relocate_section() 973 howto = ppc_coff_howto_table + r_type; in coff_ppc_relocate_section() 992 if (r_type == IMAGE_REL_PPC_IMGLUE && h == 0) in coff_ppc_relocate_section() 1040 switch (r_type) in coff_ppc_relocate_section() 1044 (_("%B: unsupported relocation type 0x%02x"), input_bfd, r_type); in coff_ppc_relocate_section() 1569 unsigned short r_type = EXTRACT_TYPE (rel->r_type); in ppc_process_before_allocation() local 1570 unsigned short r_flags = EXTRACT_FLAGS (rel->r_type); in ppc_process_before_allocation() 1573 DUMP_RELOC2 (ppc_coff_howto_table[r_type].name, rel); in ppc_process_before_allocation() [all …]
|
D | elf32-s390.c | 330 unsigned int r_type = ELF32_R_TYPE(dst->r_info); in elf_s390_info_to_howto() local 331 switch (r_type) in elf_s390_info_to_howto() 342 if (r_type >= sizeof (elf_howto_table) / sizeof (elf_howto_table[0])) in elf_s390_info_to_howto() 345 abfd, (int) r_type); in elf_s390_info_to_howto() 346 r_type = R_390_NONE; in elf_s390_info_to_howto() 348 cache_ptr->howto = &elf_howto_table[r_type]; in elf_s390_info_to_howto() 937 int r_type, in elf_s390_tls_transition() argument 941 return r_type; in elf_s390_tls_transition() 943 switch (r_type) in elf_s390_tls_transition() 958 return r_type; in elf_s390_tls_transition() [all …]
|
D | coff-x86_64.c | 455 #define SELECT_RELOC(x,howto) { x.r_type = howto->type; } 461 ((dst)->r_type < NUM_HOWTOS) \ 462 ? howto_table + (dst)->r_type \ 501 if (ptr && reloc.r_type < NUM_HOWTOS \ 502 && howto_table[reloc.r_type].pc_relative) \ 552 if (rel->r_type >= NUM_HOWTOS) in coff_amd64_rtype_to_howto() 557 howto = howto_table + rel->r_type; in coff_amd64_rtype_to_howto() 562 if (rel->r_type >= R_AMD64_PCRLONG_1 && rel->r_type <= R_AMD64_PCRLONG_5) in coff_amd64_rtype_to_howto() 564 *addendp -= (bfd_vma)(rel->r_type - R_AMD64_PCRLONG); in coff_amd64_rtype_to_howto() 565 rel->r_type = R_AMD64_PCRLONG; in coff_amd64_rtype_to_howto() [all …]
|
D | elf32-m32r.c | 1280 unsigned int r_type; in m32r_info_to_howto_rel() local 1282 r_type = ELF32_R_TYPE (dst->r_info); in m32r_info_to_howto_rel() 1284 cache_ptr->howto = &m32r_elf_howto_table[r_type]; in m32r_info_to_howto_rel() 2421 int r_type; in m32r_elf_relocate_section() local 2440 r_type = ELF32_R_TYPE (rel->r_info); in m32r_elf_relocate_section() 2441 if (r_type < 0 || r_type >= (int) R_M32R_max) in m32r_elf_relocate_section() 2445 (int) r_type); in m32r_elf_relocate_section() 2451 if ( r_type == R_M32R_GNU_VTENTRY in m32r_elf_relocate_section() 2452 || r_type == R_M32R_GNU_VTINHERIT in m32r_elf_relocate_section() 2453 || r_type == R_M32R_NONE in m32r_elf_relocate_section() [all …]
|
D | elfxx-mips.h | 172 gprel16_reloc_p (unsigned int r_type) in gprel16_reloc_p() argument 174 return (r_type == R_MIPS_GPREL16 in gprel16_reloc_p() 175 || r_type == R_MIPS16_GPREL in gprel16_reloc_p() 176 || r_type == R_MICROMIPS_GPREL16 in gprel16_reloc_p() 177 || r_type == R_MICROMIPS_GPREL7_S2); in gprel16_reloc_p() 181 literal_reloc_p (int r_type) in literal_reloc_p() argument 183 return r_type == R_MIPS_LITERAL || r_type == R_MICROMIPS_LITERAL; in literal_reloc_p()
|
D | coff-sh.c | 426 howto = sh_coff_howtos + rel->r_type; in coff_sh_rtype_to_howto() 457 if (rel->r_type == R_SH_IMAGEBASE) in coff_sh_rtype_to_howto() 527 ((internal)->r_type < SH_COFF_HOWTO_COUNT \ 528 ? &sh_coff_howtos[(internal)->r_type] \ 549 if ((reloc).r_type == R_SH_SWITCH8 \ 550 || (reloc).r_type == R_SH_SWITCH16 \ 551 || (reloc).r_type == R_SH_SWITCH32 \ 552 || (reloc).r_type == R_SH_USES \ 553 || (reloc).r_type == R_SH_COUNT \ 554 || (reloc).r_type == R_SH_ALIGN) \ [all …]
|
D | elfxx-tilegx.c | 960 unsigned int r_type = TILEGX_ELF_R_TYPE (dst->r_info); in tilegx_info_to_howto_rela() local 962 if (r_type <= (unsigned int) R_TILEGX_IMM8_Y1_TLS_ADD) in tilegx_info_to_howto_rela() 963 cache_ptr->howto = &tilegx_elf_howto_table [r_type]; in tilegx_info_to_howto_rela() 964 else if (r_type - R_TILEGX_GNU_VTINHERIT in tilegx_info_to_howto_rela() 967 = &tilegx_elf_howto_table2 [r_type - R_TILEGX_GNU_VTINHERIT]; in tilegx_info_to_howto_rela() 1579 tilegx_tls_translate_to_le (int r_type) in tilegx_tls_translate_to_le() argument 1581 switch (r_type) in tilegx_tls_translate_to_le() 1607 return r_type; in tilegx_tls_translate_to_le() 1611 tilegx_tls_translate_to_ie (int r_type) in tilegx_tls_translate_to_ie() argument 1613 switch (r_type) in tilegx_tls_translate_to_ie() [all …]
|
D | elf32-cris.c | 461 enum elf_cris_reloc_type r_type; in cris_info_to_howto_rela() local 463 r_type = ELF32_R_TYPE (dst->r_info); in cris_info_to_howto_rela() 464 BFD_ASSERT (r_type < (unsigned int) R_CRIS_max); in cris_info_to_howto_rela() 465 cache_ptr->howto = & cris_elf_howto_table [r_type]; in cris_info_to_howto_rela() 738 enum elf_cris_reloc_type r_type; member 918 enum elf_cris_reloc_type r_type = ELF32_R_TYPE (rel->r_info); in cris_final_link_relocate() local 923 switch (r_type) in cris_final_link_relocate() 1015 enum elf_cris_reloc_type r_type; in cris_elf_relocate_section() local 1017 r_type = ELF32_R_TYPE (rel->r_info); in cris_elf_relocate_section() 1019 if ( r_type == R_CRIS_GNU_VTINHERIT in cris_elf_relocate_section() [all …]
|
D | elf32-tilepro.c | 815 unsigned int r_type = ELF32_R_TYPE (dst->r_info); in tilepro_info_to_howto_rela() local 817 if (r_type <= (unsigned int) R_TILEPRO_IMM16_X1_TLS_LE_HA) in tilepro_info_to_howto_rela() 818 cache_ptr->howto = &tilepro_elf_howto_table [r_type]; in tilepro_info_to_howto_rela() 819 else if (r_type - R_TILEPRO_GNU_VTINHERIT in tilepro_info_to_howto_rela() 822 = &tilepro_elf_howto_table2 [r_type - R_TILEPRO_GNU_VTINHERIT]; in tilepro_info_to_howto_rela() 1374 tilepro_tls_translate_to_le (int r_type) in tilepro_tls_translate_to_le() argument 1376 switch (r_type) in tilepro_tls_translate_to_le() 1410 return r_type; in tilepro_tls_translate_to_le() 1414 tilepro_tls_translate_to_ie (int r_type) in tilepro_tls_translate_to_ie() argument 1416 switch (r_type) in tilepro_tls_translate_to_ie() [all …]
|
D | elf64-hppa.c | 3051 elf_hppa_relocate_insn (int insn, int sym_value, unsigned int r_type) in elf_hppa_relocate_insn() argument 3053 switch (r_type) in elf_hppa_relocate_insn() 3190 unsigned int r_type = howto->type; in elf_hppa_final_link_relocate() local 3200 switch (r_type) in elf_hppa_final_link_relocate() 3232 if (r_type == R_PARISC_PCREL21L) in elf_hppa_final_link_relocate() 3234 else if (r_type == R_PARISC_PCREL14F in elf_hppa_final_link_relocate() 3235 || r_type == R_PARISC_PCREL16F in elf_hppa_final_link_relocate() 3236 || r_type == R_PARISC_PCREL16WF in elf_hppa_final_link_relocate() 3237 || r_type == R_PARISC_PCREL16DF) in elf_hppa_final_link_relocate() 3243 insn = elf_hppa_relocate_insn (insn, (int) value, r_type); in elf_hppa_final_link_relocate() [all …]
|
D | pe-mips.c | 346 #define SELECT_RELOC(x, howto) { x.r_type = howto->type; } 353 (cache_ptr)->howto = howto_table + (dst)->r_type; 384 if (ptr && reloc.r_type < NUM_HOWTOS \ 385 && howto_table[reloc.r_type].pc_relative) \ 402 howto = howto_table + rel->r_type; in coff_mips_rtype_to_howto() 456 if (rel->r_type == MIPS_R_RVA) in coff_mips_rtype_to_howto() 532 reloc_dst->r_type = H_GET_16 (abfd, reloc_src->r_type); in mips_swap_reloc_in() 537 switch (reloc_dst->r_type) in mips_swap_reloc_in() 558 switch (reloc_src->r_type) in mips_swap_reloc_out() 572 H_PUT_16 (abfd, MIPS_R_PAIR, reloc_dst->r_type); in mips_swap_reloc_out() [all …]
|