Lines Matching defs:fragp
20334 arm_frag_max_var (fragS *fragp)
20346 gas_assert (fragp->fr_type == rs_machine_dependent);
20354 md_estimate_size_before_relax (fragS * fragp,
20357 fragp->fr_var = 2;
20364 md_convert_frag (bfd *abfd, segT asec ATTRIBUTE_UNUSED, fragS *fragp)
20375 buf = fragp->fr_literal + fragp->fr_fix;
20378 if (fragp->fr_symbol)
20381 exp.X_add_symbol = fragp->fr_symbol;
20387 exp.X_add_number = fragp->fr_offset;
20388 opcode = fragp->fr_subtype;
20401 if (fragp->fr_var == 4)
20424 if (fragp->fr_var == 4)
20442 if (fragp->fr_var == 4)
20459 if (fragp->fr_var == 4)
20470 if (fragp->fr_var == 4)
20485 if (fragp->fr_var == 4)
20505 if (fragp->fr_var == 4)
20523 fixp = fix_new_exp (fragp, fragp->fr_fix, fragp->fr_var, &exp, pc_rel,
20525 fixp->fx_file = fragp->fr_file;
20526 fixp->fx_line = fragp->fr_line;
20527 fragp->fr_fix += fragp->fr_var;
20533 relax_immediate (fragS *fragp, int size, int shift)
20540 if (fragp->fr_symbol)
20545 offset = fragp->fr_offset;
20556 relaxed_symbol_addr (fragS *fragp, long stretch)
20562 sym = fragp->fr_symbol;
20566 addr = S_GET_VALUE (sym) + fragp->fr_offset;
20574 && sym_frag->relax_marker != fragp->relax_marker)
20584 for (f = fragp; f != NULL && f != sym_frag; f = f->fr_next)
20607 relax_adr (fragS *fragp, asection *sec, long stretch)
20613 if (fragp->fr_symbol == NULL
20614 || !S_IS_DEFINED (fragp->fr_symbol)
20615 || sec != S_GET_SEGMENT (fragp->fr_symbol)
20616 || S_IS_WEAK (fragp->fr_symbol))
20619 val = relaxed_symbol_addr (fragp, stretch);
20620 addr = fragp->fr_address + fragp->fr_fix;
20633 relax_addsub (fragS *fragp, asection *sec)
20638 buf = fragp->fr_literal + fragp->fr_fix;
20641 return relax_immediate (fragp, 8, 0);
20643 return relax_immediate (fragp, 3, 0);
20675 relax_branch (fragS *fragp, asection *sec, int bits, long stretch)
20682 if (!S_IS_DEFINED (fragp->fr_symbol)
20683 || sec != S_GET_SEGMENT (fragp->fr_symbol)
20684 || S_IS_WEAK (fragp->fr_symbol))
20689 if (S_IS_DEFINED (fragp->fr_symbol)
20690 && ARM_IS_FUNC (fragp->fr_symbol))
20694 if (symbol_preemptible (fragp->fr_symbol))
20697 val = relaxed_symbol_addr (fragp, stretch);
20698 addr = fragp->fr_address + fragp->fr_fix + 4;
20713 arm_relax_frag (asection *sec, fragS *fragp, long stretch)
20718 oldsize = fragp->fr_var;
20719 switch (fragp->fr_subtype)
20722 newsize = relax_adr (fragp, sec, stretch);
20727 newsize = relax_immediate (fragp, 8, 2);
20731 newsize = relax_immediate (fragp, 5, 2);
20735 newsize = relax_immediate (fragp, 5, 1);
20739 newsize = relax_immediate (fragp, 5, 0);
20742 newsize = relax_adr (fragp, sec, stretch);
20748 newsize = relax_immediate (fragp, 8, 0);
20751 newsize = relax_branch (fragp, sec, 11, stretch);
20754 newsize = relax_branch (fragp, sec, 8, stretch);
20758 newsize = relax_immediate (fragp, 8, 2);
20762 newsize = relax_immediate (fragp, 7, 2);
20768 newsize = relax_addsub (fragp, sec);
20774 fragp->fr_var = newsize;
20781 md_convert_frag (sec->owner, sec, fragp);
20782 frag_wane (fragp);
20816 arm_handle_align (fragS * fragP)
20854 if (fragP->fr_type != rs_align_code)
20857 bytes = fragP->fr_next->fr_address - fragP->fr_address - fragP->fr_fix;
20858 p = fragP->fr_literal + fragP->fr_fix;
20864 gas_assert ((fragP->tc_frag_data.thumb_mode & MODE_RECORDED) != 0);
20866 if (fragP->tc_frag_data.thumb_mode & (~ MODE_RECORDED))
20893 fragP->fr_var = noop_size;
20899 fragP->fr_fix, fragP, fix);
20929 fragP->fr_fix += fix;
20970 arm_init_frag (fragS * fragP, int max_chars ATTRIBUTE_UNUSED)
20973 fragP->tc_frag_data.thumb_mode = thumb_mode | MODE_RECORDED;
20978 arm_init_frag (fragS * fragP, int max_chars)
20982 if ((fragP->tc_frag_data.thumb_mode & MODE_RECORDED) == 0)
20984 fragP->tc_frag_data.thumb_mode = thumb_mode | MODE_RECORDED;
20988 switch (fragP->fr_type)
23658 fragS *fragp;
23663 for (fragp = seginfo->frchainP->frch_root;
23664 fragp != NULL;
23665 fragp = fragp->fr_next)
23667 symbolS *sym = fragp->tc_frag_data.last_map;
23668 fragS *next = fragp->fr_next;