Lines Matching refs:abiflags

554   Elf_Internal_ABIFlags_v0 abiflags;  member
7137 &mips_elf_tdata (abfd)->abiflags); in _bfd_mips_elf_section_from_shdr()
7138 if (mips_elf_tdata (abfd)->abiflags.version != 0) in _bfd_mips_elf_section_from_shdr()
13975 update_mips_abiflags_isa (bfd *abfd, Elf_Internal_ABIFlags_v0 *abiflags) in update_mips_abiflags_isa() argument
13980 abiflags->isa_level = 1; in update_mips_abiflags_isa()
13981 abiflags->isa_rev = 0; in update_mips_abiflags_isa()
13984 abiflags->isa_level = 2; in update_mips_abiflags_isa()
13985 abiflags->isa_rev = 0; in update_mips_abiflags_isa()
13988 abiflags->isa_level = 3; in update_mips_abiflags_isa()
13989 abiflags->isa_rev = 0; in update_mips_abiflags_isa()
13992 abiflags->isa_level = 4; in update_mips_abiflags_isa()
13993 abiflags->isa_rev = 0; in update_mips_abiflags_isa()
13996 abiflags->isa_level = 5; in update_mips_abiflags_isa()
13997 abiflags->isa_rev = 0; in update_mips_abiflags_isa()
14000 abiflags->isa_level = 32; in update_mips_abiflags_isa()
14001 abiflags->isa_rev = 1; in update_mips_abiflags_isa()
14004 abiflags->isa_level = 32; in update_mips_abiflags_isa()
14006 if (abiflags->isa_rev < 2) in update_mips_abiflags_isa()
14007 abiflags->isa_rev = 2; in update_mips_abiflags_isa()
14010 abiflags->isa_level = 32; in update_mips_abiflags_isa()
14011 abiflags->isa_rev = 6; in update_mips_abiflags_isa()
14014 abiflags->isa_level = 64; in update_mips_abiflags_isa()
14015 abiflags->isa_rev = 1; in update_mips_abiflags_isa()
14019 abiflags->isa_level = 64; in update_mips_abiflags_isa()
14020 if (abiflags->isa_rev < 2) in update_mips_abiflags_isa()
14021 abiflags->isa_rev = 2; in update_mips_abiflags_isa()
14024 abiflags->isa_level = 64; in update_mips_abiflags_isa()
14025 abiflags->isa_rev = 6; in update_mips_abiflags_isa()
14033 abiflags->isa_ext = bfd_mips_isa_ext (abfd); in update_mips_abiflags_isa()
14054 infer_mips_abiflags (bfd *abfd, Elf_Internal_ABIFlags_v0* abiflags) in infer_mips_abiflags() argument
14058 memset (abiflags, 0, sizeof (Elf_Internal_ABIFlags_v0)); in infer_mips_abiflags()
14059 update_mips_abiflags_isa (abfd, abiflags); in infer_mips_abiflags()
14062 abiflags->gpr_size = AFL_REG_32; in infer_mips_abiflags()
14064 abiflags->gpr_size = AFL_REG_64; in infer_mips_abiflags()
14066 abiflags->cpr1_size = AFL_REG_NONE; in infer_mips_abiflags()
14069 abiflags->fp_abi = in_attr[Tag_GNU_MIPS_ABI_FP].i; in infer_mips_abiflags()
14071 if (abiflags->fp_abi == Val_GNU_MIPS_ABI_FP_SINGLE in infer_mips_abiflags()
14072 || abiflags->fp_abi == Val_GNU_MIPS_ABI_FP_XX in infer_mips_abiflags()
14073 || (abiflags->fp_abi == Val_GNU_MIPS_ABI_FP_DOUBLE in infer_mips_abiflags()
14074 && abiflags->gpr_size == AFL_REG_32)) in infer_mips_abiflags()
14075 abiflags->cpr1_size = AFL_REG_32; in infer_mips_abiflags()
14076 else if (abiflags->fp_abi == Val_GNU_MIPS_ABI_FP_DOUBLE in infer_mips_abiflags()
14077 || abiflags->fp_abi == Val_GNU_MIPS_ABI_FP_64 in infer_mips_abiflags()
14078 || abiflags->fp_abi == Val_GNU_MIPS_ABI_FP_64A) in infer_mips_abiflags()
14079 abiflags->cpr1_size = AFL_REG_64; in infer_mips_abiflags()
14081 abiflags->cpr2_size = AFL_REG_NONE; in infer_mips_abiflags()
14084 abiflags->ases |= AFL_ASE_MDMX; in infer_mips_abiflags()
14086 abiflags->ases |= AFL_ASE_MIPS16; in infer_mips_abiflags()
14088 abiflags->ases |= AFL_ASE_MICROMIPS; in infer_mips_abiflags()
14090 if (abiflags->fp_abi != Val_GNU_MIPS_ABI_FP_ANY in infer_mips_abiflags()
14091 && abiflags->fp_abi != Val_GNU_MIPS_ABI_FP_SOFT in infer_mips_abiflags()
14092 && abiflags->fp_abi != Val_GNU_MIPS_ABI_FP_64A in infer_mips_abiflags()
14093 && abiflags->isa_level >= 32 in infer_mips_abiflags()
14094 && abiflags->isa_ext != AFL_EXT_LOONGSON_3A) in infer_mips_abiflags()
14095 abiflags->flags1 |= AFL_FLAGS1_ODDSPREG; in infer_mips_abiflags()
14717 Elf_Internal_ABIFlags_v0 *abiflags; in _bfd_mips_elf_final_link() local
14719 abiflags = &mips_elf_tdata (abfd)->abiflags; in _bfd_mips_elf_final_link()
14724 infer_mips_abiflags (abfd, abiflags); in _bfd_mips_elf_final_link()
14727 bfd_mips_elf_swap_abiflags_v0_out (abfd, abiflags, &ext); in _bfd_mips_elf_final_link()
15081 mips_elf_tdata (ibfd)->abiflags.fp_abi; in _bfd_mips_elf_merge_private_bfd_data()
15114 infer_mips_abiflags (ibfd, &mips_elf_tdata (ibfd)->abiflags); in _bfd_mips_elf_merge_private_bfd_data()
15119 Elf_Internal_ABIFlags_v0 abiflags; in _bfd_mips_elf_merge_private_bfd_data() local
15121 infer_mips_abiflags (ibfd, &abiflags); in _bfd_mips_elf_merge_private_bfd_data()
15122 in_abiflags = mips_elf_tdata (ibfd)->abiflags; in _bfd_mips_elf_merge_private_bfd_data()
15129 if (in_abiflags.isa_level != abiflags.isa_level in _bfd_mips_elf_merge_private_bfd_data()
15130 || in_abiflags.isa_rev != abiflags.isa_rev in _bfd_mips_elf_merge_private_bfd_data()
15131 || in_abiflags.isa_ext != abiflags.isa_ext) in _bfd_mips_elf_merge_private_bfd_data()
15135 if (abiflags.fp_abi != Val_GNU_MIPS_ABI_FP_ANY in _bfd_mips_elf_merge_private_bfd_data()
15136 && in_abiflags.fp_abi != abiflags.fp_abi) in _bfd_mips_elf_merge_private_bfd_data()
15140 if ((in_abiflags.ases & abiflags.ases) != abiflags.ases) in _bfd_mips_elf_merge_private_bfd_data()
15144 if (in_abiflags.isa_ext != abiflags.isa_ext) in _bfd_mips_elf_merge_private_bfd_data()
15158 mips_elf_tdata (obfd)->abiflags = mips_elf_tdata (ibfd)->abiflags; in _bfd_mips_elf_merge_private_bfd_data()
15179 update_mips_abiflags_isa (obfd, &mips_elf_tdata (obfd)->abiflags); in _bfd_mips_elf_merge_private_bfd_data()
15187 mips_elf_tdata (obfd)->abiflags.fp_abi = out_attr[Tag_GNU_MIPS_ABI_FP].i; in _bfd_mips_elf_merge_private_bfd_data()
15191 mips_elf_tdata (obfd)->abiflags.isa_rev in _bfd_mips_elf_merge_private_bfd_data()
15192 = max (mips_elf_tdata (obfd)->abiflags.isa_rev, in _bfd_mips_elf_merge_private_bfd_data()
15193 mips_elf_tdata (ibfd)->abiflags.isa_rev); in _bfd_mips_elf_merge_private_bfd_data()
15194 mips_elf_tdata (obfd)->abiflags.gpr_size in _bfd_mips_elf_merge_private_bfd_data()
15195 = max (mips_elf_tdata (obfd)->abiflags.gpr_size, in _bfd_mips_elf_merge_private_bfd_data()
15196 mips_elf_tdata (ibfd)->abiflags.gpr_size); in _bfd_mips_elf_merge_private_bfd_data()
15197 mips_elf_tdata (obfd)->abiflags.cpr1_size in _bfd_mips_elf_merge_private_bfd_data()
15198 = max (mips_elf_tdata (obfd)->abiflags.cpr1_size, in _bfd_mips_elf_merge_private_bfd_data()
15199 mips_elf_tdata (ibfd)->abiflags.cpr1_size); in _bfd_mips_elf_merge_private_bfd_data()
15200 mips_elf_tdata (obfd)->abiflags.cpr2_size in _bfd_mips_elf_merge_private_bfd_data()
15201 = max (mips_elf_tdata (obfd)->abiflags.cpr2_size, in _bfd_mips_elf_merge_private_bfd_data()
15202 mips_elf_tdata (ibfd)->abiflags.cpr2_size); in _bfd_mips_elf_merge_private_bfd_data()
15204 mips_elf_tdata (obfd)->abiflags.ases in _bfd_mips_elf_merge_private_bfd_data()
15205 |= mips_elf_tdata (ibfd)->abiflags.ases; in _bfd_mips_elf_merge_private_bfd_data()
15206 mips_elf_tdata (obfd)->abiflags.flags1 in _bfd_mips_elf_merge_private_bfd_data()
15207 |= mips_elf_tdata (ibfd)->abiflags.flags1; in _bfd_mips_elf_merge_private_bfd_data()
15276 update_mips_abiflags_isa (obfd, &mips_elf_tdata (obfd)->abiflags); in _bfd_mips_elf_merge_private_bfd_data()
15793 Elf_Internal_ABIFlags_v0 *abiflags = &mips_elf_tdata (abfd)->abiflags; in _bfd_mips_elf_print_private_bfd_data() local
15794 fprintf (file, "\nMIPS ABI Flags Version: %d\n", abiflags->version); in _bfd_mips_elf_print_private_bfd_data()
15795 fprintf (file, "\nISA: MIPS%d", abiflags->isa_level); in _bfd_mips_elf_print_private_bfd_data()
15796 if (abiflags->isa_rev > 1) in _bfd_mips_elf_print_private_bfd_data()
15797 fprintf (file, "r%d", abiflags->isa_rev); in _bfd_mips_elf_print_private_bfd_data()
15799 get_mips_reg_size (abiflags->gpr_size)); in _bfd_mips_elf_print_private_bfd_data()
15801 get_mips_reg_size (abiflags->cpr1_size)); in _bfd_mips_elf_print_private_bfd_data()
15803 get_mips_reg_size (abiflags->cpr2_size)); in _bfd_mips_elf_print_private_bfd_data()
15805 print_mips_fp_abi_value (file, abiflags->fp_abi); in _bfd_mips_elf_print_private_bfd_data()
15807 print_mips_isa_ext (file, abiflags->isa_ext); in _bfd_mips_elf_print_private_bfd_data()
15809 print_mips_ases (file, abiflags->ases); in _bfd_mips_elf_print_private_bfd_data()
15810 fprintf (file, "\nFLAGS 1: %8.8lx", abiflags->flags1); in _bfd_mips_elf_print_private_bfd_data()
15811 fprintf (file, "\nFLAGS 2: %8.8lx", abiflags->flags2); in _bfd_mips_elf_print_private_bfd_data()
16138 if (mips_elf_tdata (abfd)->abiflags.fp_abi == Val_GNU_MIPS_ABI_FP_64 in _bfd_mips_post_process_headers()
16139 || mips_elf_tdata (abfd)->abiflags.fp_abi == Val_GNU_MIPS_ABI_FP_64A) in _bfd_mips_post_process_headers()