| /trueos/contrib/binutils/bfd/ |
| HD | elf64-x86-64.c | 211 elf64_x86_64_rtype_to_howto (bfd *abfd, unsigned r_type) in elf64_x86_64_rtype_to_howto() argument 215 if (r_type < (unsigned int) R_X86_64_GNU_VTINHERIT in elf64_x86_64_rtype_to_howto() 216 || r_type >= (unsigned int) R_X86_64_max) in elf64_x86_64_rtype_to_howto() 218 if (r_type >= (unsigned int) R_X86_64_standard) in elf64_x86_64_rtype_to_howto() 221 abfd, (int) r_type); in elf64_x86_64_rtype_to_howto() 222 r_type = R_X86_64_NONE; in elf64_x86_64_rtype_to_howto() 224 i = r_type; in elf64_x86_64_rtype_to_howto() 227 i = r_type - (unsigned int) R_X86_64_vt_offset; in elf64_x86_64_rtype_to_howto() 228 BFD_ASSERT (x86_64_elf_howto_table[i].type == r_type); in elf64_x86_64_rtype_to_howto() 272 unsigned r_type; in elf64_x86_64_info_to_howto() local [all …]
|
| HD | aout-arm.c | 113 *r_extern = (0 != (rel->r_type[0] & RELOC_STD_BITS_EXTERN_BIG)); in MY() 114 r_pcrel_done = (0 != (rel->r_type[0] & RELOC_STD_BITS_PCREL_BIG)); in MY() 115 r_neg = (0 != (rel->r_type[0] & RELOC_ARM_BITS_NEG_BIG)); in MY() 116 r_length = ((rel->r_type[0] & RELOC_STD_BITS_LENGTH_BIG) in MY() 124 *r_extern = (0 != (rel->r_type[0] & RELOC_STD_BITS_EXTERN_LITTLE)); in MY() 125 r_pcrel_done = (0 != (rel->r_type[0] & RELOC_STD_BITS_PCREL_LITTLE)); in MY() 126 r_neg = (0 != (rel->r_type[0] & RELOC_ARM_BITS_NEG_LITTLE)); in MY() 127 r_length = ((rel->r_type[0] & RELOC_STD_BITS_LENGTH_LITTLE) in MY() 168 reloc->r_type[0] = in MY() 179 reloc->r_type[0] = in MY() [all …]
|
| HD | elfxx-sparc.c | 412 _bfd_sparc_elf_info_to_howto_ptr (unsigned int r_type) in _bfd_sparc_elf_info_to_howto_ptr() argument 414 switch (r_type) in _bfd_sparc_elf_info_to_howto_ptr() 426 if (r_type >= (unsigned int) R_SPARC_max_std) in _bfd_sparc_elf_info_to_howto_ptr() 429 (int) r_type); in _bfd_sparc_elf_info_to_howto_ptr() 430 r_type = R_SPARC_NONE; in _bfd_sparc_elf_info_to_howto_ptr() 432 return &_bfd_sparc_elf_howto_table[r_type]; in _bfd_sparc_elf_info_to_howto_ptr() 445 unsigned int r_type = SPARC_ELF_R_TYPE (dst->r_info); in _bfd_sparc_elf_info_to_howto() local 447 cache_ptr->howto = _bfd_sparc_elf_info_to_howto_ptr (r_type); in _bfd_sparc_elf_info_to_howto() 1032 int r_type, int is_local) in sparc_elf_tls_transition() argument 1035 && r_type == R_SPARC_TLS_GD_HI22 in sparc_elf_tls_transition() [all …]
|
| HD | coff-ppc.c | 772 (((r->r_type) & IMAGE_REL_PPC_TOCDEFN) == 0) \ 1029 unsigned short r_type = EXTRACT_TYPE (rel->r_type); local 1030 unsigned short r_flags = EXTRACT_FLAGS(rel->r_type); 1036 howto = ppc_coff_howto_table + r_type; 1055 if (r_type == IMAGE_REL_PPC_IMGLUE && h == 0) 1103 switch (r_type) 1107 (_("%B: unsupported relocation type 0x%02x"), input_bfd, r_type); 1641 unsigned short r_type = EXTRACT_TYPE (rel->r_type); local 1642 unsigned short r_flags = EXTRACT_FLAGS (rel->r_type); 1645 DUMP_RELOC2 (ppc_coff_howto_table[r_type].name, rel); [all …]
|
| HD | coff-x86_64.c | 446 #define SELECT_RELOC(x,howto) { x.r_type = howto->type; } 452 ((dst)->r_type < ARRAY_SIZE (howto_table)) \ 453 ? howto_table + (dst)->r_type \ 492 if (ptr && howto_table[reloc.r_type].pc_relative) \ 542 if (rel->r_type > ARRAY_SIZE (howto_table)) in coff_amd64_rtype_to_howto() 547 if (rel->r_type >= R_AMD64_PCRLONG_1 && rel->r_type <= R_AMD64_PCRLONG_5) in coff_amd64_rtype_to_howto() 549 rel->r_vaddr += (bfd_vma)(rel->r_type-R_AMD64_PCRLONG); in coff_amd64_rtype_to_howto() 550 rel->r_type = R_AMD64_PCRLONG; in coff_amd64_rtype_to_howto() 552 howto = howto_table + rel->r_type; in coff_amd64_rtype_to_howto() 606 if (rel->r_type == R_AMD64_IMAGEBASE in coff_amd64_rtype_to_howto() [all …]
|
| HD | elf64-s390.c | 389 unsigned int r_type = ELF64_R_TYPE(dst->r_info); local 390 switch (r_type) 401 if (r_type >= sizeof (elf_howto_table) / sizeof (elf_howto_table[0])) 404 abfd, (int) r_type); 405 r_type = R_390_NONE; 407 cache_ptr->howto = &elf_howto_table[r_type]; 891 elf_s390_tls_transition (info, r_type, is_local) in elf_s390_tls_transition() argument 893 int r_type; 897 return r_type; 899 switch (r_type) [all …]
|
| HD | elf32-s390.c | 365 unsigned int r_type = ELF32_R_TYPE(dst->r_info); local 366 switch (r_type) 377 if (r_type >= sizeof (elf_howto_table) / sizeof (elf_howto_table[0])) 380 abfd, (int) r_type); 381 r_type = R_390_NONE; 383 cache_ptr->howto = &elf_howto_table[r_type]; 936 elf_s390_tls_transition (info, r_type, is_local) in elf_s390_tls_transition() argument 938 int r_type; 942 return r_type; 944 switch (r_type) [all …]
|
| HD | pe-mips.c | 338 #define SELECT_RELOC(x, howto) { x.r_type = howto->type; } 345 (cache_ptr)->howto = howto_table + (dst)->r_type; 376 if (ptr && howto_table[reloc.r_type].pc_relative) \ 393 howto = howto_table + rel->r_type; in coff_mips_rtype_to_howto() 447 if (rel->r_type == MIPS_R_RVA) in coff_mips_rtype_to_howto() 525 reloc_dst->r_type = H_GET_16 (abfd, reloc_src->r_type); in mips_swap_reloc_in() 530 switch (reloc_dst->r_type) in mips_swap_reloc_in() 552 switch (reloc_src->r_type) in mips_swap_reloc_out() 567 H_PUT_16 (abfd, MIPS_R_PAIR, reloc_dst->r_type); in mips_swap_reloc_out() 576 H_PUT_16 (abfd, reloc_src->r_type, reloc_dst->r_type); in mips_swap_reloc_out() [all …]
|
| HD | elf32-i386.c | 352 unsigned int r_type = ELF32_R_TYPE (dst->r_info); in elf_i386_info_to_howto_rel() local 355 if ((indx = r_type) >= R_386_standard in elf_i386_info_to_howto_rel() 356 && ((indx = r_type - R_386_ext_offset) - R_386_standard in elf_i386_info_to_howto_rel() 358 && ((indx = r_type - R_386_tls_offset) - R_386_ext in elf_i386_info_to_howto_rel() 360 && ((indx = r_type - R_386_vt_offset) - R_386_tls in elf_i386_info_to_howto_rel() 364 abfd, (int) r_type); in elf_i386_info_to_howto_rel() 896 elf_i386_tls_transition (struct bfd_link_info *info, int r_type, int is_local) in elf_i386_tls_transition() argument 899 return r_type; in elf_i386_tls_transition() 901 switch (r_type) in elf_i386_tls_transition() 914 return r_type; in elf_i386_tls_transition() [all …]
|
| HD | sunos.c | 1278 if ((rel->r_type[0] & RELOC_STD_BITS_EXTERN_BIG) == 0) in sunos_scan_std_relocs() 1283 if ((rel->r_type[0] & RELOC_STD_BITS_EXTERN_LITTLE) == 0) in sunos_scan_std_relocs() 1430 int r_type; in sunos_scan_ext_relocs() local 1439 r_extern = (0 != (rel->r_type[0] & RELOC_EXT_BITS_EXTERN_BIG)); in sunos_scan_ext_relocs() 1440 r_type = ((rel->r_type[0] & RELOC_EXT_BITS_TYPE_BIG) in sunos_scan_ext_relocs() 1448 r_extern = (0 != (rel->r_type[0] & RELOC_EXT_BITS_EXTERN_LITTLE)); in sunos_scan_ext_relocs() 1449 r_type = ((rel->r_type[0] & RELOC_EXT_BITS_TYPE_LITTLE) in sunos_scan_ext_relocs() 1466 if (r_type == RELOC_BASE10 in sunos_scan_ext_relocs() 1467 || r_type == RELOC_BASE13 in sunos_scan_ext_relocs() 1468 || r_type == RELOC_BASE22) in sunos_scan_ext_relocs() [all …]
|
| HD | elf32-cr16.c | 471 unsigned int r_type = ELF32_R_TYPE (dst->r_info); in elf_cr16_info_to_howto() local 473 BFD_ASSERT (r_type < (unsigned int) R_CR16_MAX); in elf_cr16_info_to_howto() 474 cache_ptr->howto = &cr16_elf_howto_table[r_type]; in elf_cr16_info_to_howto() 492 unsigned short r_type = howto->type; in cr16_elf_final_link_relocate() local 496 switch (r_type) in cr16_elf_final_link_relocate() 585 if ((r_type == R_CR16_IMM4) in cr16_elf_final_link_relocate() 586 || (r_type == R_CR16_DISP4) in cr16_elf_final_link_relocate() 587 || (r_type == R_CR16_DISP8)) in cr16_elf_final_link_relocate() 597 if (r_type == R_CR16_DISP16) in cr16_elf_final_link_relocate() 607 if (r_type == R_CR16_ABS20) in cr16_elf_final_link_relocate() [all …]
|
| HD | elf64-alpha.c | 1085 unsigned r_type = ELF64_R_TYPE(dst->r_info); in elf64_alpha_info_to_howto() local 1086 BFD_ASSERT (r_type < (unsigned int) R_ALPHA_max); in elf64_alpha_info_to_howto() 1087 cache_ptr->howto = &elf64_alpha_howto_table[r_type]; in elf64_alpha_info_to_howto() 1091 #define alpha_got_entry_size(r_type) \ argument 1092 (r_type == R_ALPHA_TLSGD || r_type == R_ALPHA_TLSLDM ? 16 : 8) 1652 unsigned long r_type, unsigned long r_symndx, in get_got_entry() argument 1689 && gotent->reloc_type == r_type in get_got_entry() 1708 gotent->reloc_type = r_type; in get_got_entry() 1715 entry_size = alpha_got_entry_size (r_type); in get_got_entry() 1780 unsigned long r_symndx, r_type; in elf64_alpha_check_relocs() local [all …]
|
| HD | coff-mips.c | 304 intern->r_type = ((ext->r_bits[3] & RELOC_BITS3_TYPE_BIG) 316 intern->r_type = (((ext->r_bits[3] & RELOC_BITS3_TYPE_LITTLE) 346 ext->r_bits[3] = (((intern->r_type << RELOC_BITS3_TYPE_SH_BIG) 355 ext->r_bits[3] = (((intern->r_type << RELOC_BITS3_TYPE_SH_LITTLE) 357 | ((intern->r_type >> RELOC_BITS3_TYPEHI_SH_LITTLE 373 if (intern->r_type > MIPS_R_PCREL16) 377 && (intern->r_type == MIPS_R_GPREL 378 || intern->r_type == MIPS_R_LITERAL)) 383 if (intern->r_type == MIPS_R_IGNORE) 386 rptr->howto = &mips_howto_table[intern->r_type]; [all …]
|
| HD | elf32-arm.c | 1672 elf32_arm_howto_from_type (unsigned int r_type) in elf32_arm_howto_from_type() argument 1674 if (r_type < NUM_ELEM (elf32_arm_howto_table_1)) in elf32_arm_howto_from_type() 1675 return &elf32_arm_howto_table_1[r_type]; in elf32_arm_howto_from_type() 1677 if (r_type >= R_ARM_RREL32 in elf32_arm_howto_from_type() 1678 && r_type < R_ARM_RREL32 + NUM_ELEM (elf32_arm_howto_table_2)) in elf32_arm_howto_from_type() 1679 return &elf32_arm_howto_table_2[r_type - R_ARM_RREL32]; in elf32_arm_howto_from_type() 1688 unsigned int r_type; in elf32_arm_info_to_howto() local 1690 r_type = ELF32_R_TYPE (elf_reloc->r_info); in elf32_arm_info_to_howto() 1691 bfd_reloc->howto = elf32_arm_howto_from_type (r_type); in elf32_arm_info_to_howto() 3168 long r_type; in bfd_elf32_arm_process_before_allocation() local [all …]
|
| HD | aoutx.h | 1987 natptr->r_type[0] = ((r_extern ? RELOC_STD_BITS_EXTERN_BIG : 0) in NAME() 1999 natptr->r_type[0] = ((r_extern ? RELOC_STD_BITS_EXTERN_LITTLE : 0) in NAME() 2021 unsigned int r_type; in NAME() local 2028 r_type = (unsigned int) g->howto->type; in NAME() 2067 natptr->r_type[0] = ((r_extern ? RELOC_EXT_BITS_EXTERN_BIG : 0) in NAME() 2068 | (r_type << RELOC_EXT_BITS_TYPE_SH_BIG)); in NAME() 2075 natptr->r_type[0] = ((r_extern ? RELOC_EXT_BITS_EXTERN_LITTLE : 0) in NAME() 2076 | (r_type << RELOC_EXT_BITS_TYPE_SH_LITTLE)); in NAME() 2136 unsigned int r_type; in NAME() local 2147 r_extern = (0 != (bytes->r_type[0] & RELOC_EXT_BITS_EXTERN_BIG)); in NAME() [all …]
|
| HD | coff-i386.c | 348 #define SELECT_RELOC(x,howto) { x.r_type = howto->type; } 354 ((dst)->r_type < sizeof (howto_table) / sizeof (howto_table[0]) \ 355 ? howto_table + (dst)->r_type \ 392 if (ptr && howto_table[reloc.r_type].pc_relative) \ 452 if (rel->r_type > sizeof (howto_table) / sizeof (howto_table[0])) 458 howto = howto_table + rel->r_type; 513 if (rel->r_type == R_IMAGEBASE 520 if (rel->r_type == R_SECREL32)
|
| HD | elf32-arc.c | 173 unsigned int r_type; in arc_info_to_howto_rel() local 175 r_type = ELF32_R_TYPE (dst->r_info); in arc_info_to_howto_rel() 176 BFD_ASSERT (r_type < (unsigned int) R_ARC_max); in arc_info_to_howto_rel() 177 cache_ptr->howto = &elf_arc_howto_table[r_type]; in arc_info_to_howto_rel()
|
| HD | elf32-mips.c | 1314 mips_elf32_rtype_to_howto (unsigned int r_type, in mips_elf32_rtype_to_howto() argument 1317 switch (r_type) in mips_elf32_rtype_to_howto() 1328 if (r_type >= R_MIPS16_min && r_type < R_MIPS16_max) in mips_elf32_rtype_to_howto() 1329 return &elf_mips16_howto_table_rel[r_type - R_MIPS16_min]; in mips_elf32_rtype_to_howto() 1330 BFD_ASSERT (r_type < (unsigned int) R_MIPS_max); in mips_elf32_rtype_to_howto() 1331 return &elf_mips_howto_table_rel[r_type]; in mips_elf32_rtype_to_howto() 1341 unsigned int r_type; in mips_info_to_howto_rel() local 1343 r_type = ELF32_R_TYPE (dst->r_info); in mips_info_to_howto_rel() 1345 cache_ptr->howto = bed->elf_backend_mips_rtype_to_howto (r_type, FALSE); in mips_info_to_howto_rel() 1352 && (r_type == (unsigned int) R_MIPS_GPREL16 in mips_info_to_howto_rel() [all …]
|
| HD | elfn32-mips.c | 2121 mips_elf_n32_rtype_to_howto (unsigned int r_type, bfd_boolean rela_p) in mips_elf_n32_rtype_to_howto() argument 2123 switch (r_type) in mips_elf_n32_rtype_to_howto() 2135 if (r_type >= R_MIPS16_min && r_type < R_MIPS16_max) in mips_elf_n32_rtype_to_howto() 2138 return &elf_mips16_howto_table_rela[r_type - R_MIPS16_min]; in mips_elf_n32_rtype_to_howto() 2140 return &elf_mips16_howto_table_rel[r_type - R_MIPS16_min]; in mips_elf_n32_rtype_to_howto() 2142 BFD_ASSERT (r_type < (unsigned int) R_MIPS_max); in mips_elf_n32_rtype_to_howto() 2144 return &elf_mips_howto_table_rela[r_type]; in mips_elf_n32_rtype_to_howto() 2146 return &elf_mips_howto_table_rel[r_type]; in mips_elf_n32_rtype_to_howto() 2156 unsigned int r_type; in mips_info_to_howto_rel() local 2158 r_type = ELF32_R_TYPE (dst->r_info); in mips_info_to_howto_rel() [all …]
|
| HD | elf64-ppc.c | 2204 enum elf_ppc64_reloc_type r_type; in ppc64_elf_brtaken_reloc() local 2219 r_type = reloc_entry->howto->type; in ppc64_elf_brtaken_reloc() 2220 if (r_type == R_PPC64_ADDR14_BRTAKEN in ppc64_elf_brtaken_reloc() 2221 || r_type == R_PPC64_REL14_BRTAKEN) in ppc64_elf_brtaken_reloc() 4454 enum elf_ppc64_reloc_type r_type; in ppc64_elf_check_relocs() local 4469 r_type = ELF64_R_TYPE (rel->r_info); in ppc64_elf_check_relocs() 4470 switch (r_type) in ppc64_elf_check_relocs() 4829 && (MUST_BE_DYN_RELOC (r_type) in ppc64_elf_check_relocs() 4925 if (!MUST_BE_DYN_RELOC (r_type)) in ppc64_elf_check_relocs() 5165 enum elf_ppc64_reloc_type r_type; in ppc64_elf_gc_mark_hook() local [all …]
|
| HD | elfxx-mips.c | 342 #define TLS_RELOC_P(r_type) \ argument 343 (r_type == R_MIPS_TLS_DTPMOD32 \ 344 || r_type == R_MIPS_TLS_DTPMOD64 \ 345 || r_type == R_MIPS_TLS_DTPREL32 \ 346 || r_type == R_MIPS_TLS_DTPREL64 \ 347 || r_type == R_MIPS_TLS_GD \ 348 || r_type == R_MIPS_TLS_LDM \ 349 || r_type == R_MIPS_TLS_DTPREL_HI16 \ 350 || r_type == R_MIPS_TLS_DTPREL_LO16 \ 351 || r_type == R_MIPS_TLS_GOTTPREL \ [all …]
|
| HD | elf64-mips.c | 1688 dst->r_type = H_GET_8 (abfd, src->r_type); in mips_elf64_swap_reloc_in() 1703 dst->r_type = H_GET_8 (abfd, src->r_type); in mips_elf64_swap_reloca_in() 1718 H_PUT_8 (abfd, src->r_type, dst->r_type); in mips_elf64_swap_reloc_out() 1732 H_PUT_8 (abfd, src->r_type, dst->r_type); in mips_elf64_swap_reloca_out() 1749 dst[0].r_info = ELF64_R_INFO (mirel.r_sym, mirel.r_type); in mips_elf64_be_swap_reloc_in() 1772 dst[0].r_info = ELF64_R_INFO (mirela.r_sym, mirela.r_type); in mips_elf64_be_swap_reloca_in() 1793 mirel.r_type = ELF64_MIPS_R_TYPE (src[0].r_info); in mips_elf64_be_swap_reloc_out() 1815 mirela.r_type = ELF64_MIPS_R_TYPE (src[0].r_info); in mips_elf64_be_swap_reloca_out() 2276 mips_elf64_rtype_to_howto (unsigned int r_type, bfd_boolean rela_p) in mips_elf64_rtype_to_howto() argument 2278 switch (r_type) in mips_elf64_rtype_to_howto() [all …]
|
| /trueos/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
| HD | zfs_rlock.c | 130 if (new->r_type == RL_APPEND) in zfs_range_lock_writer() 150 new->r_type = RL_WRITER; /* convert to writer */ in zfs_range_lock_writer() 170 new->r_type = RL_WRITER; /* convert possible RL_APPEND */ in zfs_range_lock_writer() 209 proxy->r_type = RL_READER; in zfs_range_proxify() 238 rear->r_type = RL_READER; in zfs_range_split() 263 rl->r_type = RL_READER; in zfs_range_new_proxy() 376 if ((prev->r_type == RL_WRITER) || (prev->r_write_wanted)) { in zfs_range_lock_reader() 399 if ((next->r_type == RL_WRITER) || (next->r_write_wanted)) { in zfs_range_lock_reader() 439 new->r_type = type; in zfs_range_lock() 498 ASSERT(rl->r_type == RL_READER); in zfs_range_unlock_reader() [all …]
|
| /trueos/contrib/llvm/include/llvm/CodeGen/ |
| HD | MachORelocation.h | 31 uint8_t r_type; // if not 0, machine-specific relocation type. variable 39 ((r_type & 15) << 24) | (r_address & 0x00FFFFFF); in getPackedFields() 42 (r_extern << 4) | (r_type & 15); in getPackedFields() 51 r_extern(ext), r_type(type), r_scattered(scattered), r_value(value) {} in r_address()
|
| /trueos/libexec/rtld-elf/mips/ |
| HD | reloc.c | 85 #define ELF_R_NXTTYPE_64_P(r_type) ((((r_type) >> 8) & 0xff) == R_TYPE(64)) argument 93 #define ELF_R_NXTTYPE_64_P(r_type) (0) argument 195 Elf_Word r_symndx, r_type; in _rtld_relocate_nonplt_self() local 200 r_type = ELF_R_TYPE(rel->r_info); in _rtld_relocate_nonplt_self() 202 switch (r_type & 0xff) { in _rtld_relocate_nonplt_self() 205 ELF_R_NXTTYPE_64_P(r_type) in _rtld_relocate_nonplt_self() 211 assert(r_type == R_TYPE(REL32) in _rtld_relocate_nonplt_self() 212 || r_type == (R_TYPE(REL32)|(R_TYPE(64) << 8))); in _rtld_relocate_nonplt_self() 392 Elf_Word r_symndx, r_type; in reloc_non_plt() local 397 r_type = ELF_R_TYPE(rel->r_info); in reloc_non_plt() [all …]
|