Lines Matching refs:abiflags

552   Elf_Internal_ABIFlags_v0 abiflags;  member
7164 &mips_elf_tdata (abfd)->abiflags); in _bfd_mips_elf_section_from_shdr()
7165 if (mips_elf_tdata (abfd)->abiflags.version != 0) in _bfd_mips_elf_section_from_shdr()
14133 update_mips_abiflags_isa (bfd *abfd, Elf_Internal_ABIFlags_v0 *abiflags) in update_mips_abiflags_isa() argument
14155 if (new_isa > LEVEL_REV (abiflags->isa_level, abiflags->isa_rev)) in update_mips_abiflags_isa()
14157 abiflags->isa_level = ISA_LEVEL (new_isa); in update_mips_abiflags_isa()
14158 abiflags->isa_rev = ISA_REV (new_isa); in update_mips_abiflags_isa()
14162 if (mips_mach_extends_p (bfd_mips_isa_ext_mach (abiflags->isa_ext), in update_mips_abiflags_isa()
14164 abiflags->isa_ext = bfd_mips_isa_ext (abfd); in update_mips_abiflags_isa()
14185 infer_mips_abiflags (bfd *abfd, Elf_Internal_ABIFlags_v0* abiflags) in infer_mips_abiflags() argument
14189 memset (abiflags, 0, sizeof (Elf_Internal_ABIFlags_v0)); in infer_mips_abiflags()
14190 update_mips_abiflags_isa (abfd, abiflags); in infer_mips_abiflags()
14193 abiflags->gpr_size = AFL_REG_32; in infer_mips_abiflags()
14195 abiflags->gpr_size = AFL_REG_64; in infer_mips_abiflags()
14197 abiflags->cpr1_size = AFL_REG_NONE; in infer_mips_abiflags()
14200 abiflags->fp_abi = in_attr[Tag_GNU_MIPS_ABI_FP].i; in infer_mips_abiflags()
14202 if (abiflags->fp_abi == Val_GNU_MIPS_ABI_FP_SINGLE in infer_mips_abiflags()
14203 || abiflags->fp_abi == Val_GNU_MIPS_ABI_FP_XX in infer_mips_abiflags()
14204 || (abiflags->fp_abi == Val_GNU_MIPS_ABI_FP_DOUBLE in infer_mips_abiflags()
14205 && abiflags->gpr_size == AFL_REG_32)) in infer_mips_abiflags()
14206 abiflags->cpr1_size = AFL_REG_32; in infer_mips_abiflags()
14207 else if (abiflags->fp_abi == Val_GNU_MIPS_ABI_FP_DOUBLE in infer_mips_abiflags()
14208 || abiflags->fp_abi == Val_GNU_MIPS_ABI_FP_64 in infer_mips_abiflags()
14209 || abiflags->fp_abi == Val_GNU_MIPS_ABI_FP_64A) in infer_mips_abiflags()
14210 abiflags->cpr1_size = AFL_REG_64; in infer_mips_abiflags()
14212 abiflags->cpr2_size = AFL_REG_NONE; in infer_mips_abiflags()
14215 abiflags->ases |= AFL_ASE_MDMX; in infer_mips_abiflags()
14217 abiflags->ases |= AFL_ASE_MIPS16; in infer_mips_abiflags()
14219 abiflags->ases |= AFL_ASE_MICROMIPS; in infer_mips_abiflags()
14221 if (abiflags->fp_abi != Val_GNU_MIPS_ABI_FP_ANY in infer_mips_abiflags()
14222 && abiflags->fp_abi != Val_GNU_MIPS_ABI_FP_SOFT in infer_mips_abiflags()
14223 && abiflags->fp_abi != Val_GNU_MIPS_ABI_FP_64A in infer_mips_abiflags()
14224 && abiflags->isa_level >= 32 in infer_mips_abiflags()
14225 && abiflags->isa_ext != AFL_EXT_LOONGSON_3A) in infer_mips_abiflags()
14226 abiflags->flags1 |= AFL_FLAGS1_ODDSPREG; in infer_mips_abiflags()
14848 Elf_Internal_ABIFlags_v0 *abiflags; in _bfd_mips_elf_final_link() local
14850 abiflags = &mips_elf_tdata (abfd)->abiflags; in _bfd_mips_elf_final_link()
14855 infer_mips_abiflags (abfd, abiflags); in _bfd_mips_elf_final_link()
14858 bfd_mips_elf_swap_abiflags_v0_out (abfd, abiflags, &ext); in _bfd_mips_elf_final_link()
14992 update_mips_abiflags_isa (obfd, &out_tdata->abiflags); in mips_elf_merge_obj_e_flags()
15267 out_tdata->abiflags.fp_abi = out_attr[Tag_GNU_MIPS_ABI_FP].i; in mips_elf_merge_obj_abiflags()
15271 out_tdata->abiflags.isa_level = max (out_tdata->abiflags.isa_level, in mips_elf_merge_obj_abiflags()
15272 in_tdata->abiflags.isa_level); in mips_elf_merge_obj_abiflags()
15273 out_tdata->abiflags.isa_rev = max (out_tdata->abiflags.isa_rev, in mips_elf_merge_obj_abiflags()
15274 in_tdata->abiflags.isa_rev); in mips_elf_merge_obj_abiflags()
15275 out_tdata->abiflags.gpr_size = max (out_tdata->abiflags.gpr_size, in mips_elf_merge_obj_abiflags()
15276 in_tdata->abiflags.gpr_size); in mips_elf_merge_obj_abiflags()
15277 out_tdata->abiflags.cpr1_size = max (out_tdata->abiflags.cpr1_size, in mips_elf_merge_obj_abiflags()
15278 in_tdata->abiflags.cpr1_size); in mips_elf_merge_obj_abiflags()
15279 out_tdata->abiflags.cpr2_size = max (out_tdata->abiflags.cpr2_size, in mips_elf_merge_obj_abiflags()
15280 in_tdata->abiflags.cpr2_size); in mips_elf_merge_obj_abiflags()
15282 out_tdata->abiflags.ases |= in_tdata->abiflags.ases; in mips_elf_merge_obj_abiflags()
15283 out_tdata->abiflags.flags1 |= in_tdata->abiflags.flags1; in mips_elf_merge_obj_abiflags()
15352 Elf_Internal_ABIFlags_v0 abiflags; in _bfd_mips_elf_merge_private_bfd_data() local
15357 in_attr[Tag_GNU_MIPS_ABI_FP].i = in_tdata->abiflags.fp_abi; in _bfd_mips_elf_merge_private_bfd_data()
15359 infer_mips_abiflags (ibfd, &abiflags); in _bfd_mips_elf_merge_private_bfd_data()
15360 in_abiflags = in_tdata->abiflags; in _bfd_mips_elf_merge_private_bfd_data()
15368 < LEVEL_REV (abiflags.isa_level, abiflags.isa_rev)) in _bfd_mips_elf_merge_private_bfd_data()
15372 if (abiflags.fp_abi != Val_GNU_MIPS_ABI_FP_ANY in _bfd_mips_elf_merge_private_bfd_data()
15373 && in_abiflags.fp_abi != abiflags.fp_abi) in _bfd_mips_elf_merge_private_bfd_data()
15377 if ((in_abiflags.ases & abiflags.ases) != abiflags.ases) in _bfd_mips_elf_merge_private_bfd_data()
15383 if (!mips_mach_extends_p (bfd_mips_isa_ext_mach (abiflags.isa_ext), in _bfd_mips_elf_merge_private_bfd_data()
15396 infer_mips_abiflags (ibfd, &in_tdata->abiflags); in _bfd_mips_elf_merge_private_bfd_data()
15403 out_tdata->abiflags = in_tdata->abiflags; in _bfd_mips_elf_merge_private_bfd_data()
15424 update_mips_abiflags_isa (obfd, &out_tdata->abiflags); in _bfd_mips_elf_merge_private_bfd_data()
15842 Elf_Internal_ABIFlags_v0 *abiflags = &mips_elf_tdata (abfd)->abiflags; in _bfd_mips_elf_print_private_bfd_data() local
15843 fprintf (file, "\nMIPS ABI Flags Version: %d\n", abiflags->version); in _bfd_mips_elf_print_private_bfd_data()
15844 fprintf (file, "\nISA: MIPS%d", abiflags->isa_level); in _bfd_mips_elf_print_private_bfd_data()
15845 if (abiflags->isa_rev > 1) in _bfd_mips_elf_print_private_bfd_data()
15846 fprintf (file, "r%d", abiflags->isa_rev); in _bfd_mips_elf_print_private_bfd_data()
15848 get_mips_reg_size (abiflags->gpr_size)); in _bfd_mips_elf_print_private_bfd_data()
15850 get_mips_reg_size (abiflags->cpr1_size)); in _bfd_mips_elf_print_private_bfd_data()
15852 get_mips_reg_size (abiflags->cpr2_size)); in _bfd_mips_elf_print_private_bfd_data()
15854 print_mips_fp_abi_value (file, abiflags->fp_abi); in _bfd_mips_elf_print_private_bfd_data()
15856 print_mips_isa_ext (file, abiflags->isa_ext); in _bfd_mips_elf_print_private_bfd_data()
15858 print_mips_ases (file, abiflags->ases); in _bfd_mips_elf_print_private_bfd_data()
15859 fprintf (file, "\nFLAGS 1: %8.8lx", abiflags->flags1); in _bfd_mips_elf_print_private_bfd_data()
15860 fprintf (file, "\nFLAGS 2: %8.8lx", abiflags->flags2); in _bfd_mips_elf_print_private_bfd_data()
16187 if (mips_elf_tdata (abfd)->abiflags.fp_abi == Val_GNU_MIPS_ABI_FP_64 in _bfd_mips_post_process_headers()
16188 || mips_elf_tdata (abfd)->abiflags.fp_abi == Val_GNU_MIPS_ABI_FP_64A) in _bfd_mips_post_process_headers()