Home
last modified time | relevance | path

Searched refs:fragP (Results 1 – 25 of 113) sorted by relevance

12345

/openbsd/src/gnu/usr.bin/binutils/gas/config/
Dtc-mn10200.c380 md_convert_frag (abfd, sec, fragP) in md_convert_frag() argument
383 fragS *fragP;
389 if (fragP->fr_subtype == 0)
391 fix_new (fragP, fragP->fr_fix + 1, 1, fragP->fr_symbol,
392 fragP->fr_offset, 1, BFD_RELOC_8_PCREL);
393 fragP->fr_var = 0;
394 fragP->fr_fix += 2;
396 else if (fragP->fr_subtype == 1)
399 int offset = fragP->fr_fix;
400 int opcode = fragP->fr_literal[offset] & 0xff;
[all …]
Dtc-fr30.c208 fr30_relax_frag (segment, fragP, stretch)
210 fragS * fragP;
214 long address = fragP->fr_address + fragP->fr_fix - 2;
218 if (fragP->fr_subtype == 2)
222 fragP->fr_subtype = 3;
226 else if (fragP->fr_subtype == 3)
230 fragP->fr_subtype = 2;
236 growth = relax_frag (segment, fragP, stretch);
239 if (fragP->fr_subtype == 2 && (address & 3) != 0)
241 fragP->fr_subtype = 3;
[all …]
Dtc-mn10300.c751 md_convert_frag (abfd, sec, fragP) in md_convert_frag() argument
754 fragS *fragP;
760 if (fragP->fr_subtype == 0)
762 fix_new (fragP, fragP->fr_fix + 1, 1, fragP->fr_symbol,
763 fragP->fr_offset + 1, 1, BFD_RELOC_8_PCREL);
764 fragP->fr_var = 0;
765 fragP->fr_fix += 2;
767 else if (fragP->fr_subtype == 1)
770 int offset = fragP->fr_fix;
771 int opcode = fragP->fr_literal[offset] & 0xff;
[all …]
Dtc-sh64.c797 segT seg ATTRIBUTE_UNUSED, fragS *fragP, in shmedia_md_convert_frag() argument
807 fragS *opc_fragP = fragP->tc_frag_data.opc_frag; in shmedia_md_convert_frag()
814 symbolS *symbolP = fragP->fr_symbol; in shmedia_md_convert_frag()
823 || (S_GET_SEGMENT (fragP->fr_symbol) != absolute_section in shmedia_md_convert_frag()
824 && S_GET_SEGMENT (fragP->fr_symbol) != seg)); in shmedia_md_convert_frag()
836 know (fragP->fr_type == rs_machine_dependent); in shmedia_md_convert_frag()
838 var_part_offset = fragP->fr_fix; in shmedia_md_convert_frag()
839 var_partp = fragP->fr_literal + var_part_offset; in shmedia_md_convert_frag()
840 opcodep = fragP->fr_opcode; in shmedia_md_convert_frag()
846 + fragP->fr_offset); in shmedia_md_convert_frag()
[all …]
Dtc-m68hc11.c2765 m68hc11_relax_frag (segT seg ATTRIBUTE_UNUSED, fragS *fragP, in m68hc11_relax_frag() argument
2780 switch (fragP->fr_subtype) in m68hc11_relax_frag()
2791 if (fragP->fr_symbol == NULL in m68hc11_relax_frag()
2792 || S_GET_SEGMENT (fragP->fr_symbol) != absolute_section) in m68hc11_relax_frag()
2794 __FUNCTION__, (long) fragP->fr_symbol); in m68hc11_relax_frag()
2795 symbolP = fragP->fr_symbol; in m68hc11_relax_frag()
2804 __FUNCTION__, fragP->fr_subtype); in m68hc11_relax_frag()
2811 this_state = fragP->fr_subtype; in m68hc11_relax_frag()
2845 fragP->fr_subtype = this_state; in m68hc11_relax_frag()
2851 fragS *fragP) in md_convert_frag() argument
[all …]
Dtc-xtensa.c3334 is_branch_jmp_to_next (insn, fragP) in is_branch_jmp_to_next() argument
3336 fragS *fragP;
3378 if (is_next_frag_target (fragP->fr_next, target_frag)
3987 xg_emit_insn_to_buf (t_insn, buf, fragP, offset, build_fix) in xg_emit_insn_to_buf() argument
3990 fragS *fragP;
4008 opnum, exp, fragP, offset))
4011 fragP->tc_frag_data.is_insn = TRUE;
4021 xg_add_opcode_fix (opcode, opnum, expr, fragP, offset) in xg_add_opcode_fix() argument
4025 fragS *fragP;
4051 the_fix = fix_new_exp (fragP, offset, insn_length, expr,
[all …]
Dtc-vax.c1226 md_estimate_size_before_relax (fragP, segment) in md_estimate_size_before_relax() argument
1227 fragS *fragP; in md_estimate_size_before_relax()
1230 if (RELAX_LENGTH (fragP->fr_subtype) == STATE_UNDF)
1232 if (S_GET_SEGMENT (fragP->fr_symbol) != segment
1234 || S_IS_WEAK (fragP->fr_symbol)
1235 || S_IS_EXTERNAL (fragP->fr_symbol)
1244 old_fr_fix = fragP->fr_fix;
1245 p = fragP->fr_literal + old_fr_fix;
1256 if ((GOT_symbol == NULL || fragP->fr_symbol != GOT_symbol)
1257 && (PLT_symbol == NULL || fragP->fr_symbol != PLT_symbol)
[all …]
Dtc-openrisc.c223 openrisc_relax_frag (segment, fragP, stretch) in openrisc_relax_frag() argument
225 fragS * fragP;
229 long address = fragP->fr_address + fragP->fr_fix - 2;
233 if (fragP->fr_subtype == 2)
237 fragP->fr_subtype = 3;
241 else if (fragP->fr_subtype == 3)
245 fragP->fr_subtype = 2;
251 growth = relax_frag (segment, fragP, stretch);
254 if (fragP->fr_subtype == 2 && (address & 3) != 0)
256 fragP->fr_subtype = 3;
[all …]
Dtc-cris.c378 cris_relax_frag (seg, fragP, stretch) in cris_relax_frag() argument
380 fragS *fragP;
395 switch (fragP->fr_subtype)
404 if (fragP->fr_symbol == NULL
405 || S_GET_SEGMENT (fragP->fr_symbol) != absolute_section)
407 __FUNCTION__, (long) fragP->fr_symbol);
408 symbolP = fragP->fr_symbol;
421 __FUNCTION__, fragP->fr_subtype);
428 this_state = fragP->fr_subtype;
462 fragP->fr_subtype = this_state;
[all …]
Dtc-tahoe.c614 md_estimate_size_before_relax (fragP, segment_type) in md_estimate_size_before_relax() argument
615 register fragS *fragP; in md_estimate_size_before_relax()
618 if (RELAX_LENGTH (fragP->fr_subtype) == STATE_UNDF)
620 if (S_GET_SEGMENT (fragP->fr_symbol) != segment)
626 old_fr_fix = fragP->fr_fix;
627 p = fragP->fr_literal + old_fr_fix;
628 switch (RELAX_STATE (fragP->fr_subtype))
633 fragP->fr_fix += 1 + 4;
634 fix_new (fragP, old_fr_fix + 1, fragP->fr_symbol,
635 fragP->fr_offset, FX_PCREL32, NULL);
[all …]
Dtc-w65.c799 md_convert_frag (headers, seg, fragP) in md_convert_frag() argument
802 fragS *fragP;
807 (unsigned char *) (fragP->fr_fix + fragP->fr_literal);
809 switch (fragP->fr_subtype)
863 fix_new (fragP,
864 fragP->fr_fix + 3,
866 fragP->fr_symbol,
867 fragP->fr_offset,
871 fragP->fr_fix += disp_size + inst_size;
872 fragP->fr_var = 0;
[all …]
Dtc-m32r.c1665 m32r_relax_frag (segment, fragP, stretch) in m32r_relax_frag() argument
1667 fragS *fragP;
1671 long address = fragP->fr_address + fragP->fr_fix - 2;
1675 if (fragP->fr_subtype == 2)
1679 fragP->fr_subtype = 3;
1683 else if (fragP->fr_subtype == 3)
1687 fragP->fr_subtype = 2;
1693 growth = relax_frag (segment, fragP, stretch);
1696 if (fragP->fr_subtype == 2 && (address & 3) != 0)
1698 fragP->fr_subtype = 3;
[all …]
Dtc-mmix.c2211 md_estimate_size_before_relax (fragP, segment) in md_estimate_size_before_relax() argument
2212 fragS *fragP; in md_estimate_size_before_relax()
2219 if (fragP->fr_symbol != NULL \
2220 && S_GET_SEGMENT (fragP->fr_symbol) == segment \
2221 && !S_IS_WEAK (fragP->fr_symbol)) \
2224 fragP->fr_subtype \
2229 switch (fragP->fr_subtype)
2236 if (fragP->fr_symbol != NULL
2237 && S_GET_SEGMENT (fragP->fr_symbol) == segment
2238 && !S_IS_WEAK (fragP->fr_symbol))
[all …]
Dtc-m68k.c4499 md_convert_frag_1 (fragP) in md_convert_frag_1() argument
4500 register fragS *fragP; in md_convert_frag_1()
4506 register int object_address = fragP->fr_fix + fragP->fr_address;
4511 register char *buffer_address = fragP->fr_literal;
4512 buffer_address += fragP->fr_fix;
4516 disp = fragP->fr_symbol ? S_GET_VALUE (fragP->fr_symbol) : 0;
4517 disp = (disp + fragP->fr_offset) - object_address;
4519 switch (fragP->fr_subtype)
4527 as_bad_where (fragP->fr_file, fragP->fr_line,
4529 fixP = fix_new (fragP, fragP->fr_fix - 1, 1, fragP->fr_symbol,
[all …]
/openbsd/src/gnu/usr.bin/binutils-2.17/gas/config/
Dtc-mn10200.c363 fragS *fragP) in md_convert_frag() argument
369 if (fragP->fr_subtype == 0) in md_convert_frag()
371 fix_new (fragP, fragP->fr_fix + 1, 1, fragP->fr_symbol, in md_convert_frag()
372 fragP->fr_offset, 1, BFD_RELOC_8_PCREL); in md_convert_frag()
373 fragP->fr_var = 0; in md_convert_frag()
374 fragP->fr_fix += 2; in md_convert_frag()
376 else if (fragP->fr_subtype == 1) in md_convert_frag()
379 int offset = fragP->fr_fix; in md_convert_frag()
380 int opcode = fragP->fr_literal[offset] & 0xff; in md_convert_frag()
417 fragP->fr_literal[offset] = opcode; in md_convert_frag()
[all …]
Dtc-mn10300.c756 md_convert_frag (abfd, sec, fragP) in md_convert_frag() argument
759 fragS *fragP;
765 if (fragP->fr_subtype == 0)
767 fix_new (fragP, fragP->fr_fix + 1, 1, fragP->fr_symbol,
768 fragP->fr_offset + 1, 1, BFD_RELOC_8_PCREL);
769 fragP->fr_var = 0;
770 fragP->fr_fix += 2;
772 else if (fragP->fr_subtype == 1)
775 int offset = fragP->fr_fix;
776 int opcode = fragP->fr_literal[offset] & 0xff;
[all …]
Dtc-m68hc11.c2766 m68hc11_relax_frag (segT seg ATTRIBUTE_UNUSED, fragS *fragP, in m68hc11_relax_frag() argument
2781 switch (fragP->fr_subtype) in m68hc11_relax_frag()
2792 if (fragP->fr_symbol == NULL in m68hc11_relax_frag()
2793 || S_GET_SEGMENT (fragP->fr_symbol) != absolute_section) in m68hc11_relax_frag()
2795 __FUNCTION__, (long) fragP->fr_symbol); in m68hc11_relax_frag()
2796 symbolP = fragP->fr_symbol; in m68hc11_relax_frag()
2805 __FUNCTION__, fragP->fr_subtype); in m68hc11_relax_frag()
2812 this_state = fragP->fr_subtype; in m68hc11_relax_frag()
2846 fragP->fr_subtype = this_state; in m68hc11_relax_frag()
2852 fragS *fragP) in md_convert_frag() argument
[all …]
Dtc-sh64.c802 segT seg ATTRIBUTE_UNUSED, fragS *fragP, in shmedia_md_convert_frag() argument
812 fragS *opc_fragP = fragP->tc_frag_data.opc_frag; in shmedia_md_convert_frag()
819 symbolS *symbolP = fragP->fr_symbol; in shmedia_md_convert_frag()
828 || (S_GET_SEGMENT (fragP->fr_symbol) != absolute_section in shmedia_md_convert_frag()
829 && S_GET_SEGMENT (fragP->fr_symbol) != seg)); in shmedia_md_convert_frag()
841 know (fragP->fr_type == rs_machine_dependent); in shmedia_md_convert_frag()
843 var_part_offset = fragP->fr_fix; in shmedia_md_convert_frag()
844 var_partp = fragP->fr_literal + var_part_offset; in shmedia_md_convert_frag()
845 opcodep = fragP->fr_opcode; in shmedia_md_convert_frag()
851 + fragP->fr_offset); in shmedia_md_convert_frag()
[all …]
Dtc-xtensa.c3650 is_next_frag_target (const fragS *fragP, const fragS *target) in is_next_frag_target() argument
3652 if (fragP == NULL) in is_next_frag_target()
3655 for (; fragP; fragP = fragP->fr_next) in is_next_frag_target()
3657 if (fragP == target) in is_next_frag_target()
3659 if (fragP->fr_fix != 0) in is_next_frag_target()
3661 if (fragP->fr_type == rs_fill && fragP->fr_offset != 0) in is_next_frag_target()
3663 if ((fragP->fr_type == rs_align || fragP->fr_type == rs_align_code) in is_next_frag_target()
3664 && ((fragP->fr_address % (1 << fragP->fr_offset)) != 0)) in is_next_frag_target()
3666 if (fragP->fr_type == rs_space) in is_next_frag_target()
3674 is_branch_jmp_to_next (TInsn *insn, fragS *fragP) in is_branch_jmp_to_next() argument
[all …]
Dtc-vax.c363 md_estimate_size_before_relax (fragS *fragP, segT segment) in md_estimate_size_before_relax() argument
365 if (RELAX_LENGTH (fragP->fr_subtype) == STATE_UNDF) in md_estimate_size_before_relax()
367 if (S_GET_SEGMENT (fragP->fr_symbol) != segment in md_estimate_size_before_relax()
369 || S_IS_WEAK (fragP->fr_symbol) in md_estimate_size_before_relax()
370 || S_IS_EXTERNAL (fragP->fr_symbol) in md_estimate_size_before_relax()
379 old_fr_fix = fragP->fr_fix; in md_estimate_size_before_relax()
380 p = fragP->fr_literal + old_fr_fix; in md_estimate_size_before_relax()
391 if ((GOT_symbol == NULL || fragP->fr_symbol != GOT_symbol) in md_estimate_size_before_relax()
392 && (PLT_symbol == NULL || fragP->fr_symbol != PLT_symbol) in md_estimate_size_before_relax()
393 && fragP->fr_symbol != NULL in md_estimate_size_before_relax()
[all …]
Dtc-m32c.c504 m32c_prepare_relax_scan (fragS *fragP, offsetT *aim, relax_substateT this_state) in m32c_prepare_relax_scan() argument
506 symbolS *symbolP = fragP->fr_symbol; in m32c_prepare_relax_scan()
538 md_estimate_size_before_relax (fragS * fragP, segT segment ATTRIBUTE_UNUSED) in md_estimate_size_before_relax() argument
540 int where = fragP->fr_opcode - fragP->fr_literal; in md_estimate_size_before_relax()
542 if (fragP->fr_subtype == 1) in md_estimate_size_before_relax()
543 fragP->fr_subtype = insn_to_subtype (fragP->fr_cgen.insn->base->num); in md_estimate_size_before_relax()
545 if (S_GET_SEGMENT (fragP->fr_symbol) != segment) in md_estimate_size_before_relax()
549 new_insn = subtype_mappings[fragP->fr_subtype].insn_for_extern; in md_estimate_size_before_relax()
550 fragP->fr_subtype = insn_to_subtype (new_insn); in md_estimate_size_before_relax()
553 if (fragP->fr_cgen.insn->base in md_estimate_size_before_relax()
[all …]
Dtc-cris.c517 cris_relax_frag (segT seg ATTRIBUTE_UNUSED, fragS *fragP, in cris_relax_frag() argument
532 switch (fragP->fr_subtype) in cris_relax_frag()
545 if (fragP->fr_symbol == NULL in cris_relax_frag()
546 || S_GET_SEGMENT (fragP->fr_symbol) != absolute_section) in cris_relax_frag()
548 __FUNCTION__, (long) fragP->fr_symbol); in cris_relax_frag()
549 symbolP = fragP->fr_symbol; in cris_relax_frag()
562 __FUNCTION__, fragP->fr_subtype); in cris_relax_frag()
569 this_state = fragP->fr_subtype; in cris_relax_frag()
603 fragP->fr_subtype = this_state; in cris_relax_frag()
622 md_estimate_size_before_relax (fragS *fragP, segT segment_type) in md_estimate_size_before_relax() argument
[all …]
Dtc-mmix.c2170 md_estimate_size_before_relax (fragS *fragP, segT segment) in md_estimate_size_before_relax() argument
2176 if (fragP->fr_symbol != NULL \ in md_estimate_size_before_relax()
2177 && S_GET_SEGMENT (fragP->fr_symbol) == segment \ in md_estimate_size_before_relax()
2178 && !S_IS_WEAK (fragP->fr_symbol)) \ in md_estimate_size_before_relax()
2181 fragP->fr_subtype \ in md_estimate_size_before_relax()
2186 switch (fragP->fr_subtype) in md_estimate_size_before_relax()
2193 if (fragP->fr_symbol != NULL in md_estimate_size_before_relax()
2194 && S_GET_SEGMENT (fragP->fr_symbol) == segment in md_estimate_size_before_relax()
2195 && !S_IS_WEAK (fragP->fr_symbol)) in md_estimate_size_before_relax()
2197 fragP->fr_subtype = ENCODE_RELAX (STATE_PUSHJ, STATE_ZERO); in md_estimate_size_before_relax()
[all …]
/openbsd/src/gnu/usr.bin/binutils/gas/
Dwrite.c522 cvt_frag_to_fill (segT sec ATTRIBUTE_UNUSED, fragS *fragP) in cvt_frag_to_fill() argument
525 cvt_frag_to_fill (object_headers *headersP, segT sec, fragS *fragP) in cvt_frag_to_fill()
528 switch (fragP->fr_type) in cvt_frag_to_fill()
536 HANDLE_ALIGN (fragP); in cvt_frag_to_fill()
538 know (fragP->fr_next != NULL); in cvt_frag_to_fill()
539 fragP->fr_offset = (fragP->fr_next->fr_address in cvt_frag_to_fill()
540 - fragP->fr_address in cvt_frag_to_fill()
541 - fragP->fr_fix) / fragP->fr_var; in cvt_frag_to_fill()
542 if (fragP->fr_offset < 0) in cvt_frag_to_fill()
544 as_bad_where (fragP->fr_file, fragP->fr_line, in cvt_frag_to_fill()
[all …]
/openbsd/src/gnu/usr.bin/binutils-2.17/gas/
Dwrite.c421 cvt_frag_to_fill (segT sec ATTRIBUTE_UNUSED, fragS *fragP) in cvt_frag_to_fill() argument
423 switch (fragP->fr_type) in cvt_frag_to_fill()
431 HANDLE_ALIGN (fragP); in cvt_frag_to_fill()
433 know (fragP->fr_next != NULL); in cvt_frag_to_fill()
434 fragP->fr_offset = (fragP->fr_next->fr_address in cvt_frag_to_fill()
435 - fragP->fr_address in cvt_frag_to_fill()
436 - fragP->fr_fix) / fragP->fr_var; in cvt_frag_to_fill()
437 if (fragP->fr_offset < 0) in cvt_frag_to_fill()
439 as_bad_where (fragP->fr_file, fragP->fr_line, in cvt_frag_to_fill()
441 (long) fragP->fr_offset); in cvt_frag_to_fill()
[all …]

12345