Home | History | Annotate | Download | only in config

Lines Matching refs:fragp

740 /* Estimate size of fragp before relaxation.
741 This could also examine the offset in fragp and adjust
742 fragp->fr_subtype, but we will do that in nios2_relax_frag anyway. */
744 md_estimate_size_before_relax (fragS *fragp, segT segment ATTRIBUTE_UNUSED)
746 return nios2_relax_subtype_size (fragp->fr_subtype);
751 nios2_relax_frag (segT segment, fragS *fragp, long stretch)
753 addressT target = fragp->fr_offset;
754 relax_substateT subtype = fragp->fr_subtype;
755 symbolS *symbolp = fragp->fr_symbol;
767 && sym_frag->relax_marker != fragp->relax_marker)
769 if (stretch < 0 || sym_frag->region == fragp->region)
771 else if (target < fragp->fr_address)
772 target = fragp->fr_next->fr_address + stretch;
777 offset = target - fragp->fr_address - fragp->fr_fix - fragp->fr_var;
808 as_bad_where (fragp->fr_file, fragp->fr_line,
818 fragp->fr_subtype = CBRANCH_SUBTYPE (n);
820 fragp->fr_subtype = UBRANCH_SUBTYPE (n);
822 return (nios2_relax_subtype_size (fragp->fr_subtype)
831 /* Complete fragp using the data from the relaxation pass. */
834 fragS *fragp)
836 char *buffer = fragp->fr_literal + fragp->fr_fix;
837 relax_substateT subtype = fragp->fr_subtype;
839 addressT target = fragp->fr_offset;
840 symbolS *symbolp = fragp->fr_symbol;
850 fix_new (fragp, fragp->fr_fix, 4, fragp->fr_symbol, fragp->fr_offset, 1,
852 fragp->fr_fix += 4;
894 as_bad_where (fragp->fr_file, fragp->fr_line,
902 fragp->fr_fix += 4;
912 fragp->fr_fix += 4;
917 offset = target - fragp->fr_address - fragp->fr_fix;
931 fragp->fr_fix += 4;
940 fragp->fr_fix += 4;
951 fix_new (fragp, fragp->fr_fix, 4, fragp->fr_symbol, fragp->fr_offset,
953 fragp->fr_fix += 4;
959 fix_new (fragp, fragp->fr_fix, 4, fragp->fr_symbol, fragp->fr_offset,
961 fragp->fr_fix += 4;
967 fragp->fr_fix += 4;
2865 nios2_handle_align (fragS *fragp)
2870 && (fragp->fr_type == rs_align || fragp->fr_type == rs_align_code)
2871 && fragp->fr_address + fragp->fr_fix > 0
2872 && fragp->fr_offset > 1
2874 fix_new (fragp, fragp->fr_fix, 0, &abs_symbol, fragp->fr_offset, 0,