Lines Matching refs:fragP
519 cris_relax_frag (segT seg ATTRIBUTE_UNUSED, fragS *fragP, in cris_relax_frag() argument
534 switch (fragP->fr_subtype) in cris_relax_frag()
548 if (fragP->fr_symbol == NULL in cris_relax_frag()
549 || S_GET_SEGMENT (fragP->fr_symbol) != absolute_section) in cris_relax_frag()
551 __FUNCTION__, (long) fragP->fr_symbol); in cris_relax_frag()
552 symbolP = fragP->fr_symbol; in cris_relax_frag()
565 __FUNCTION__, fragP->fr_subtype); in cris_relax_frag()
572 this_state = fragP->fr_subtype; in cris_relax_frag()
606 fragP->fr_subtype = this_state; in cris_relax_frag()
625 md_estimate_size_before_relax (fragS *fragP, segT segment_type) in md_estimate_size_before_relax() argument
628 symbolS *symbolP = fragP->fr_symbol; in md_estimate_size_before_relax()
637 fragP->fr_subtype \ in md_estimate_size_before_relax()
641 fragP->fr_subtype \ in md_estimate_size_before_relax()
643 fragP->fr_var \ in md_estimate_size_before_relax()
644 = md_cris_relax_table[fragP->fr_subtype].rlx_length; \ in md_estimate_size_before_relax()
647 old_fr_fix = fragP->fr_fix; in md_estimate_size_before_relax()
649 switch (fragP->fr_subtype) in md_estimate_size_before_relax()
670 : 0) + fragP->fr_offset; in md_estimate_size_before_relax()
671 bfd_vma var_part_offset = fragP->fr_fix; in md_estimate_size_before_relax()
672 bfd_vma address_of_var_part = fragP->fr_address + var_part_offset; in md_estimate_size_before_relax()
675 fragP->fr_subtype in md_estimate_size_before_relax()
682 fragP->fr_subtype in md_estimate_size_before_relax()
684 fragP->fr_var in md_estimate_size_before_relax()
685 = md_cris_relax_table[fragP->fr_subtype].rlx_length; in md_estimate_size_before_relax()
702 fragP->fr_subtype in md_estimate_size_before_relax()
704 fragP->fr_var = md_cris_relax_table[fragP->fr_subtype].rlx_length; in md_estimate_size_before_relax()
706 else if (!symbol_resolved_p (fragP->fr_symbol)) in md_estimate_size_before_relax()
713 fragP->fr_subtype in md_estimate_size_before_relax()
715 fragP->fr_var = md_cris_relax_table[fragP->fr_subtype].rlx_length; in md_estimate_size_before_relax()
722 ? S_GET_VALUE (symbolP) : 0) + fragP->fr_offset; in md_estimate_size_before_relax()
727 (fragP->fr_opcode)[0] = value; in md_estimate_size_before_relax()
744 (fragP->fr_opcode)[0] = BDAP_PC_LOW + pow2_of_size * 16; in md_estimate_size_before_relax()
747 (fragP->fr_opcode)[1] &= 0xF0; in md_estimate_size_before_relax()
748 (fragP->fr_opcode)[1] |= BDAP_INCR_HIGH; in md_estimate_size_before_relax()
751 fragP->fr_fix += 1 << pow2_of_size; in md_estimate_size_before_relax()
752 writep = fragP->fr_literal + old_fr_fix; in md_estimate_size_before_relax()
755 frag_wane (fragP); in md_estimate_size_before_relax()
781 fragP->fr_var = md_cris_relax_table[fragP->fr_subtype].rlx_length; in md_estimate_size_before_relax()
789 BAD_CASE (fragP->fr_subtype); in md_estimate_size_before_relax()
792 return fragP->fr_var + (fragP->fr_fix - old_fr_fix); in md_estimate_size_before_relax()
807 fragS *fragP) in md_convert_frag() argument
833 know (fragP->fr_type == rs_machine_dependent); in md_convert_frag()
835 length_code = fragP->fr_subtype & STATE_LENGTH_MASK; in md_convert_frag()
838 var_part_offset = fragP->fr_fix; in md_convert_frag()
839 var_partp = fragP->fr_literal + var_part_offset; in md_convert_frag()
840 opcodep = fragP->fr_opcode; in md_convert_frag()
842 symbolP = fragP->fr_symbol; in md_convert_frag()
843 target_address = (symbolP ? S_GET_VALUE (symbolP) : 0) + fragP->fr_offset; in md_convert_frag()
844 address_of_var_part = fragP->fr_address + var_part_offset; in md_convert_frag()
846 switch (fragP->fr_subtype) in md_convert_frag()
879 gen_cond_branch_32 (fragP->fr_opcode, var_partp, fragP, in md_convert_frag()
880 fragP->fr_symbol, (symbolS *) NULL, in md_convert_frag()
881 fragP->fr_offset); in md_convert_frag()
887 gen_cond_branch_32 (fragP->fr_opcode, var_partp, fragP, in md_convert_frag()
888 fragP->fr_symbol, (symbolS *) NULL, in md_convert_frag()
889 fragP->fr_offset); in md_convert_frag()
895 gen_cond_branch_32 (fragP->fr_opcode, var_partp, fragP, in md_convert_frag()
896 fragP->fr_symbol, (symbolS *) NULL, in md_convert_frag()
897 fragP->fr_offset); in md_convert_frag()
903 as_bad_where (fragP->fr_file, fragP->fr_line, in md_convert_frag()
916 fix_new (fragP, var_partp - fragP->fr_literal, 4, symbolP, in md_convert_frag()
917 fragP->fr_offset + 6, 1, BFD_RELOC_32_PCREL); in md_convert_frag()
933 as_bad_where (fragP->fr_file, fragP->fr_line, in md_convert_frag()
956 fix_new (fragP, var_partp - fragP->fr_literal, 4, fragP->fr_symbol, in md_convert_frag()
957 fragP->fr_offset + 6, 1, BFD_RELOC_32_PCREL); in md_convert_frag()
988 if (fragP->fr_symbol == NULL) in md_convert_frag()
989 md_number_to_chars (var_partp, fragP->fr_offset, 4); in md_convert_frag()
991 fix_new (fragP, var_partp - fragP->fr_literal, 4, fragP->fr_symbol, in md_convert_frag()
992 fragP->fr_offset, 0, BFD_RELOC_32); in md_convert_frag()
1000 as_bad_where (fragP->fr_file, fragP->fr_line, in md_convert_frag()
1009 as_bad_where (fragP->fr_file, fragP->fr_line, in md_convert_frag()
1015 BAD_CASE (fragP->fr_subtype); in md_convert_frag()
1019 fragP->fr_fix += var_part_size; in md_convert_frag()
1027 fragS *fragP ATTRIBUTE_UNUSED, in md_create_short_jump()
1095 as_bad_where (fragP->fr_file, fragP->fr_line, in md_create_short_jump()
1110 fragS *fragP, symbolS *to_symbol) in md_create_long_jump() argument
1129 md_create_short_jump (storep, from_addr, to_addr, fragP, in md_create_long_jump()
1149 fix_new (fragP, storep + 2 - fragP->fr_literal, 4, to_symbol, in md_create_long_jump()
3357 gen_cond_branch_32 (char *opcodep, char *writep, fragS *fragP, in gen_cond_branch_32() argument
3388 as_warn_where (fragP->fr_file, fragP->fr_line, in gen_cond_branch_32()
3438 fix_new (fragP, writep + 4 - fragP->fr_literal, 4, in gen_cond_branch_32()
3449 as_bad_where (fragP->fr_file, fragP->fr_line, in gen_cond_branch_32()
3453 fix_new (fragP, writep + 4 - fragP->fr_literal, 4, add_symP, in gen_cond_branch_32()