Home
last modified time | relevance | path

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

123

/toolchain/binutils/binutils-2.25/gas/config/
Dtc-mn10200.c329 fragS *fragP) in md_convert_frag() argument
335 if (fragP->fr_subtype == 0) in md_convert_frag()
337 fix_new (fragP, fragP->fr_fix + 1, 1, fragP->fr_symbol, in md_convert_frag()
338 fragP->fr_offset, 1, BFD_RELOC_8_PCREL); in md_convert_frag()
339 fragP->fr_var = 0; in md_convert_frag()
340 fragP->fr_fix += 2; in md_convert_frag()
342 else if (fragP->fr_subtype == 1) in md_convert_frag()
345 int offset = fragP->fr_fix; in md_convert_frag()
346 int opcode = fragP->fr_literal[offset] & 0xff; in md_convert_frag()
383 fragP->fr_literal[offset] = opcode; in md_convert_frag()
[all …]
Dtc-mn10300.c467 fragS *fragP) in md_convert_frag() argument
473 if (fragP->fr_subtype == 0) in md_convert_frag()
475 fix_new (fragP, fragP->fr_fix + 1, 1, fragP->fr_symbol, in md_convert_frag()
476 fragP->fr_offset + 1, 1, BFD_RELOC_8_PCREL); in md_convert_frag()
477 fragP->fr_var = 0; in md_convert_frag()
478 fragP->fr_fix += 2; in md_convert_frag()
480 else if (fragP->fr_subtype == 1) in md_convert_frag()
483 int offset = fragP->fr_fix; in md_convert_frag()
484 int opcode = fragP->fr_literal[offset] & 0xff; in md_convert_frag()
521 fragP->fr_literal[offset] = opcode; in md_convert_frag()
[all …]
Dtc-sh64.c801 segT seg ATTRIBUTE_UNUSED, fragS *fragP, in shmedia_md_convert_frag() argument
811 fragS *opc_fragP = fragP->tc_frag_data.opc_frag; in shmedia_md_convert_frag()
818 symbolS *symbolP = fragP->fr_symbol; in shmedia_md_convert_frag()
827 || (S_GET_SEGMENT (fragP->fr_symbol) != absolute_section in shmedia_md_convert_frag()
828 && S_GET_SEGMENT (fragP->fr_symbol) != seg)); in shmedia_md_convert_frag()
840 know (fragP->fr_type == rs_machine_dependent); in shmedia_md_convert_frag()
842 var_part_offset = fragP->fr_fix; in shmedia_md_convert_frag()
843 var_partp = fragP->fr_literal + var_part_offset; in shmedia_md_convert_frag()
844 opcodep = fragP->fr_opcode; in shmedia_md_convert_frag()
850 + fragP->fr_offset); in shmedia_md_convert_frag()
[all …]
Dtc-microblaze.c1860 fragS * fragP) in md_convert_frag() argument
1864 switch (fragP->fr_subtype) in md_convert_frag()
1867 fix_new (fragP, fragP->fr_fix, INST_WORD_SIZE * 2, fragP->fr_symbol, in md_convert_frag()
1868 fragP->fr_offset, TRUE, BFD_RELOC_64_PCREL); in md_convert_frag()
1869 fragP->fr_fix += INST_WORD_SIZE * 2; in md_convert_frag()
1870 fragP->fr_var = 0; in md_convert_frag()
1873 if (fragP->fr_symbol == GOT_symbol) in md_convert_frag()
1874 fix_new (fragP, fragP->fr_fix, INST_WORD_SIZE * 2, fragP->fr_symbol, in md_convert_frag()
1875 fragP->fr_offset, TRUE, BFD_RELOC_MICROBLAZE_64_GOTPC); in md_convert_frag()
1877 fix_new (fragP, fragP->fr_fix, INST_WORD_SIZE * 2, fragP->fr_symbol, in md_convert_frag()
[all …]
Dtc-xtensa.c3751 is_next_frag_target (const fragS *fragP, const fragS *target) in is_next_frag_target() argument
3753 if (fragP == NULL) in is_next_frag_target()
3756 for (; fragP; fragP = fragP->fr_next) in is_next_frag_target()
3758 if (fragP == target) in is_next_frag_target()
3760 if (fragP->fr_fix != 0) in is_next_frag_target()
3762 if (fragP->fr_type == rs_fill && fragP->fr_offset != 0) in is_next_frag_target()
3764 if ((fragP->fr_type == rs_align || fragP->fr_type == rs_align_code) in is_next_frag_target()
3765 && ((fragP->fr_address % (1 << fragP->fr_offset)) != 0)) in is_next_frag_target()
3767 if (fragP->fr_type == rs_space) in is_next_frag_target()
3775 is_branch_jmp_to_next (TInsn *insn, fragS *fragP) in is_branch_jmp_to_next() argument
[all …]
Dtc-mep.c1493 mep_prepare_relax_scan (fragS *fragP, offsetT *aim, relax_substateT this_state) in mep_prepare_relax_scan() argument
1495 symbolS *symbolP = fragP->fr_symbol; in mep_prepare_relax_scan()
1523 md_estimate_size_before_relax (fragS * fragP, segT segment) in md_estimate_size_before_relax() argument
1525 if (fragP->fr_subtype == 1) in md_estimate_size_before_relax()
1526 fragP->fr_subtype = insn_to_subtype (fragP->fr_cgen.insn->base->num); in md_estimate_size_before_relax()
1528 if (S_GET_SEGMENT (fragP->fr_symbol) != segment in md_estimate_size_before_relax()
1529 || S_IS_WEAK (fragP->fr_symbol) in md_estimate_size_before_relax()
1538 new_insn = subtype_mappings[fragP->fr_subtype].insn_for_extern; in md_estimate_size_before_relax()
1539 fragP->fr_subtype = insn_to_subtype (new_insn); in md_estimate_size_before_relax()
1546 switch (fragP->fr_cgen.insn->base->num) in md_estimate_size_before_relax()
[all …]
Dtc-vax.c367 md_estimate_size_before_relax (fragS *fragP, segT segment) in md_estimate_size_before_relax() argument
369 if (RELAX_LENGTH (fragP->fr_subtype) == STATE_UNDF) in md_estimate_size_before_relax()
371 if (S_GET_SEGMENT (fragP->fr_symbol) != segment in md_estimate_size_before_relax()
373 || S_IS_WEAK (fragP->fr_symbol) in md_estimate_size_before_relax()
374 || S_IS_EXTERNAL (fragP->fr_symbol) in md_estimate_size_before_relax()
383 old_fr_fix = fragP->fr_fix; in md_estimate_size_before_relax()
384 p = fragP->fr_literal + old_fr_fix; in md_estimate_size_before_relax()
395 if ((GOT_symbol == NULL || fragP->fr_symbol != GOT_symbol) in md_estimate_size_before_relax()
396 && (PLT_symbol == NULL || fragP->fr_symbol != PLT_symbol) in md_estimate_size_before_relax()
397 && fragP->fr_symbol != NULL in md_estimate_size_before_relax()
[all …]
Dtc-rx.c999 rx_frag_init (fragS * fragP) in rx_frag_init() argument
1003 fragP->tc_frag_data = malloc (sizeof (rx_bytesT)); in rx_frag_init()
1004 memcpy (fragP->tc_frag_data, & rx_bytes, sizeof (rx_bytesT)); in rx_frag_init()
1007 fragP->tc_frag_data = 0; in rx_frag_init()
1419 rx_frag_fix_value (fragS * fragP, in rx_frag_fix_value() argument
1427 rx_bytesT * b = fragP->tc_frag_data; in rx_frag_fix_value()
1465 md_estimate_size_before_relax (fragS * fragP ATTRIBUTE_UNUSED, segT segment ATTRIBUTE_UNUSED) in md_estimate_size_before_relax()
1471 (unsigned long) (fragP->fr_address in md_estimate_size_before_relax()
1472 + (fragP->fr_opcode - fragP->fr_literal)), in md_estimate_size_before_relax()
1473 (long) fragP->fr_fix, (long) fragP->fr_var, (long) fragP->fr_offset, in md_estimate_size_before_relax()
[all …]
Dtc-rl78.c454 rl78_frag_init (fragS * fragP) in rl78_frag_init() argument
458 fragP->tc_frag_data = malloc (sizeof (rl78_bytesT)); in rl78_frag_init()
459 memcpy (fragP->tc_frag_data, & rl78_bytes, sizeof (rl78_bytesT)); in rl78_frag_init()
462 fragP->tc_frag_data = 0; in rl78_frag_init()
764 rl78_frag_fix_value (fragS * fragP, in rl78_frag_fix_value() argument
772 rl78_bytesT * b = fragP->tc_frag_data; in rl78_frag_fix_value()
810 md_estimate_size_before_relax (fragS * fragP ATTRIBUTE_UNUSED, segT segment ATTRIBUTE_UNUSED) in md_estimate_size_before_relax()
816 opfixsize = fragP->fr_fix - (fragP->fr_opcode - fragP->fr_literal); in md_estimate_size_before_relax()
818 delta = (fragP->fr_subtype - opfixsize); in md_estimate_size_before_relax()
831 rl78_relax_frag (segT segment ATTRIBUTE_UNUSED, fragS * fragP, long stretch) in rl78_relax_frag() argument
[all …]
Dtc-epiphany.c680 epiphany_relax_frag (segT segment, fragS *fragP, long stretch) in epiphany_relax_frag() argument
683 long address ATTRIBUTE_UNUSED = fragP->fr_address + fragP->fr_fix - 2; in epiphany_relax_frag()
686 if (fragP->fr_subtype == EPIPHANY_RELAX_NEED_RELAXING) in epiphany_relax_frag()
688 EPIPHANY_RELAX_TYPES subtype = relax_insn [*fragP->fr_opcode & 0xf]; in epiphany_relax_frag()
693 if ((*fragP->fr_opcode & 0x10) == 0) in epiphany_relax_frag()
698 if ((*fragP->fr_opcode & 0x10) == 0) in epiphany_relax_frag()
703 fragP->fr_subtype = subtype; in epiphany_relax_frag()
706 growth = relax_frag (segment, fragP, stretch); in epiphany_relax_frag()
723 md_estimate_size_before_relax (fragS *fragP, segT segment) in md_estimate_size_before_relax() argument
730 if (S_GET_SEGMENT (fragP->fr_symbol) != segment in md_estimate_size_before_relax()
[all …]
Dtc-m68hc11.c3868 m68hc11_relax_frag (segT seg ATTRIBUTE_UNUSED, fragS *fragP, in m68hc11_relax_frag() argument
3883 switch (fragP->fr_subtype) in m68hc11_relax_frag()
3894 if (fragP->fr_symbol == NULL in m68hc11_relax_frag()
3895 || S_GET_SEGMENT (fragP->fr_symbol) != absolute_section) in m68hc11_relax_frag()
3897 __FUNCTION__, (long) fragP->fr_symbol); in m68hc11_relax_frag()
3898 symbolP = fragP->fr_symbol; in m68hc11_relax_frag()
3907 __FUNCTION__, fragP->fr_subtype); in m68hc11_relax_frag()
3914 this_state = fragP->fr_subtype; in m68hc11_relax_frag()
3948 fragP->fr_subtype = this_state; in m68hc11_relax_frag()
3954 fragS *fragP) in md_convert_frag() argument
[all …]
Dtc-m32c.c524 m32c_prepare_relax_scan (fragS *fragP, offsetT *aim, relax_substateT this_state) in m32c_prepare_relax_scan() argument
526 symbolS *symbolP = fragP->fr_symbol; in m32c_prepare_relax_scan()
568 md_estimate_size_before_relax (fragS * fragP, segT segment ATTRIBUTE_UNUSED) in md_estimate_size_before_relax() argument
570 int where = fragP->fr_opcode - fragP->fr_literal; in md_estimate_size_before_relax()
572 if (fragP->fr_subtype == 1) in md_estimate_size_before_relax()
573 fragP->fr_subtype = insn_to_subtype (fragP->fr_cgen.insn->base->num, fragP->fr_cgen.insn); in md_estimate_size_before_relax()
575 if (S_GET_SEGMENT (fragP->fr_symbol) != segment) in md_estimate_size_before_relax()
579 new_insn = subtype_mappings[fragP->fr_subtype].insn_for_extern; in md_estimate_size_before_relax()
580 fragP->fr_subtype = insn_to_subtype (new_insn, 0); in md_estimate_size_before_relax()
583 if (fragP->fr_cgen.insn->base in md_estimate_size_before_relax()
[all …]
Dtc-cris.c519 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
[all …]
Dtc-v850.c1675 fragS *fragP) in md_convert_frag() argument
1685 opcode_converter.fr_opcode = fragP->fr_opcode; in md_convert_frag()
1689 if (fragP->fr_subtype == SUBYPTE_LOOP_16_22) in md_convert_frag()
1691 fix_new (fragP, fragP->fr_fix, 4, fragP->fr_symbol, in md_convert_frag()
1692 fragP->fr_offset, 1, in md_convert_frag()
1694 fragP->fr_fix += 4; in md_convert_frag()
1696 else if (fragP->fr_subtype == SUBYPTE_LOOP_16_22 + 1) in md_convert_frag()
1699 (unsigned char *) (fragP->fr_fix + fragP->fr_literal); in md_convert_frag()
1707 fix_new (fragP, fragP->fr_fix+2, 4, fragP->fr_symbol, in md_convert_frag()
1708 fragP->fr_offset, 1, in md_convert_frag()
[all …]
Dtc-mmix.c2203 md_estimate_size_before_relax (fragS *fragP, segT segment) in md_estimate_size_before_relax() argument
2209 if (fragP->fr_symbol != NULL \ in md_estimate_size_before_relax()
2210 && S_GET_SEGMENT (fragP->fr_symbol) == segment \ in md_estimate_size_before_relax()
2211 && !S_IS_WEAK (fragP->fr_symbol)) \ in md_estimate_size_before_relax()
2214 fragP->fr_subtype \ in md_estimate_size_before_relax()
2219 switch (fragP->fr_subtype) in md_estimate_size_before_relax()
2226 if (fragP->fr_symbol != NULL in md_estimate_size_before_relax()
2227 && S_GET_SEGMENT (fragP->fr_symbol) == segment in md_estimate_size_before_relax()
2228 && !S_IS_WEAK (fragP->fr_symbol)) in md_estimate_size_before_relax()
2230 fragP->fr_subtype = ENCODE_RELAX (STATE_PUSHJ, STATE_ZERO); in md_estimate_size_before_relax()
[all …]
Dtc-m68k.c5030 md_convert_frag_1 (fragS *fragP) in md_convert_frag_1() argument
5036 int object_address = fragP->fr_fix + fragP->fr_address; in md_convert_frag_1()
5041 char *buffer_address = fragP->fr_literal; in md_convert_frag_1()
5042 buffer_address += fragP->fr_fix; in md_convert_frag_1()
5046 disp = fragP->fr_symbol ? S_GET_VALUE (fragP->fr_symbol) : 0; in md_convert_frag_1()
5047 disp = (disp + fragP->fr_offset) - object_address; in md_convert_frag_1()
5049 switch (fragP->fr_subtype) in md_convert_frag_1()
5058 as_bad_where (fragP->fr_file, fragP->fr_line, in md_convert_frag_1()
5060 fixP = fix_new (fragP, fragP->fr_fix - 1, 1, fragP->fr_symbol, in md_convert_frag_1()
5061 fragP->fr_offset, 1, RELAX_RELOC_PC8); in md_convert_frag_1()
[all …]
Dtc-mcore.c1720 fragS * fragP) in md_convert_frag() argument
1723 int targ_addr = S_GET_VALUE (fragP->fr_symbol) + fragP->fr_offset; in md_convert_frag()
1725 buffer = fragP->fr_fix + fragP->fr_literal; in md_convert_frag()
1727 switch (fragP->fr_subtype) in md_convert_frag()
1733 int next_inst = fragP->fr_fix + fragP->fr_address + 2; in md_convert_frag()
1759 fragP->fr_fix += 2; in md_convert_frag()
1775 int first_inst = fragP->fr_fix + fragP->fr_address; in md_convert_frag()
1807 fix_new (fragP, fragP->fr_fix + 6, 4, in md_convert_frag()
1808 fragP->fr_symbol, fragP->fr_offset, 0, BFD_RELOC_32); in md_convert_frag()
1810 fragP->fr_fix += C32_LEN; in md_convert_frag()
[all …]
Dtc-nds32.c3878 fragS *fragP; in nds32_pre_do_align() local
3885 fragP = frag_now; in nds32_pre_do_align()
3891 fragP->tc_frag_data.flag = NDS32_FRAG_LABEL; in nds32_pre_do_align()
4109 fragS *fragP) in nds32_elf_save_pseudo_pattern() argument
4115 reloc_ptr->frag = fragP; in nds32_elf_save_pseudo_pattern()
4127 nds32_elf_record_fixup_exp (fragS *fragP, char *str, in nds32_elf_record_fixup_exp() argument
4167 fixP = fix_new_exp (fragP, out - fragP->fr_literal, insn->opcode->isize, in nds32_elf_record_fixup_exp()
4221 fixP = fix_new_exp (fragP, out - fragP->fr_literal, insn->opcode->isize, in nds32_elf_record_fixup_exp()
4239 fixP = fix_new_exp (fragP, out - fragP->fr_literal, insn->opcode->isize, in nds32_elf_record_fixup_exp()
4255 fixP = fix_new_exp (fragP, out - fragP->fr_literal, insn->opcode->isize, in nds32_elf_record_fixup_exp()
[all …]
Dtc-m32r.c1643 m32r_relax_frag (segT segment, fragS *fragP, long stretch) in m32r_relax_frag() argument
1646 long address = fragP->fr_address + fragP->fr_fix - 2; in m32r_relax_frag()
1650 if (fragP->fr_subtype == 2) in m32r_relax_frag()
1654 fragP->fr_subtype = 3; in m32r_relax_frag()
1658 else if (fragP->fr_subtype == 3) in m32r_relax_frag()
1662 fragP->fr_subtype = 2; in m32r_relax_frag()
1668 growth = relax_frag (segment, fragP, stretch); in m32r_relax_frag()
1671 if (fragP->fr_subtype == 2 && (address & 3) != 0) in m32r_relax_frag()
1673 fragP->fr_subtype = 3; in m32r_relax_frag()
1693 md_estimate_size_before_relax (fragS *fragP, segT segment) in md_estimate_size_before_relax() argument
[all …]
Dtc-sh.c3551 md_convert_frag (bfd *headers ATTRIBUTE_UNUSED, segT seg, fragS *fragP) in md_convert_frag() argument
3555 switch (fragP->fr_subtype) in md_convert_frag()
3560 fix_new (fragP, fragP->fr_fix, 2, fragP->fr_symbol, fragP->fr_offset, in md_convert_frag()
3562 fragP->fr_fix += 2; in md_convert_frag()
3563 fragP->fr_var = 0; in md_convert_frag()
3568 fix_new (fragP, fragP->fr_fix, 2, fragP->fr_symbol, fragP->fr_offset, in md_convert_frag()
3570 fragP->fr_fix += 2; in md_convert_frag()
3571 fragP->fr_var = 0; in md_convert_frag()
3576 if (fragP->fr_symbol == NULL) in md_convert_frag()
3577 as_bad_where (fragP->fr_file, fragP->fr_line, in md_convert_frag()
[all …]
Dtc-fr30.c210 md_estimate_size_before_relax (fragS * fragP, segT segment) in md_estimate_size_before_relax() argument
218 if (S_GET_SEGMENT (fragP->fr_symbol) != segment) in md_estimate_size_before_relax()
223 fragP->fr_subtype = 2; in md_estimate_size_before_relax()
233 for (i = 0, insn = fragP->fr_cgen.insn; i < 4; i++, insn++) in md_estimate_size_before_relax()
236 CGEN_INSN_MNEMONIC (fragP->fr_cgen.insn)) in md_estimate_size_before_relax()
244 fragP->fr_cgen.insn = insn; in md_estimate_size_before_relax()
250 return md_relax_table[fragP->fr_subtype].rlx_length; in md_estimate_size_before_relax()
263 fragS *fragP ATTRIBUTE_UNUSED) in md_convert_frag()
Dtc-ns32k.c1926 md_pcrel_adjust (fragS *fragP) in md_pcrel_adjust() argument
1932 opcode_frag = frag_opcode_frag (fragP); in md_pcrel_adjust()
1936 offset = frag_opcode_offset (fragP); in md_pcrel_adjust()
1939 return fragP->fr_address + fragP->fr_fix - opcode_address; in md_pcrel_adjust()
2005 fragS *fragP) in md_convert_frag() argument
2010 char *buffer_address = fragP->fr_fix + fragP->fr_literal; in md_convert_frag()
2014 switch (fragP->fr_subtype) in md_convert_frag()
2030 know (fragP->fr_symbol); in md_convert_frag()
2032 object_address = fragP->fr_fix + fragP->fr_address; in md_convert_frag()
2035 disp = (S_GET_VALUE (fragP->fr_symbol) + fragP->fr_offset) - object_address; in md_convert_frag()
[all …]
Dtc-msp430.c3619 md_estimate_size_before_relax (fragS * fragP ATTRIBUTE_UNUSED, in md_estimate_size_before_relax()
3622 if (fragP->fr_symbol && S_GET_SEGMENT (fragP->fr_symbol) == segment_type) in md_estimate_size_before_relax()
3626 fragP->fr_subtype = in md_estimate_size_before_relax()
3627 ENCODE_RELAX (RELAX_LEN (fragP->fr_subtype), STATE_BITS10); in md_estimate_size_before_relax()
3629 else if (fragP->fr_symbol) in md_estimate_size_before_relax()
3636 fragP->fr_subtype = in md_estimate_size_before_relax()
3637 ENCODE_RELAX (RELAX_LEN (fragP->fr_subtype), STATE_WORD); in md_estimate_size_before_relax()
3643 fragP->fr_subtype = in md_estimate_size_before_relax()
3644 ENCODE_RELAX (RELAX_LEN (fragP->fr_subtype), STATE_UNDEF); in md_estimate_size_before_relax()
3647 return md_relax_table[fragP->fr_subtype].rlx_length; in md_estimate_size_before_relax()
[all …]
Dtc-i386.h213 #define HANDLE_ALIGN(fragP) \ argument
214 if (fragP->fr_type == rs_align_code) \
215 i386_align_code (fragP, (fragP->fr_next->fr_address \
216 - fragP->fr_address \
217 - fragP->fr_fix));
/toolchain/binutils/binutils-2.25/gas/
Dwrite.c433 cvt_frag_to_fill (segT sec ATTRIBUTE_UNUSED, fragS *fragP) in cvt_frag_to_fill() argument
435 switch (fragP->fr_type) in cvt_frag_to_fill()
443 HANDLE_ALIGN (fragP); in cvt_frag_to_fill()
445 know (fragP->fr_next != NULL); in cvt_frag_to_fill()
446 fragP->fr_offset = (fragP->fr_next->fr_address in cvt_frag_to_fill()
447 - fragP->fr_address in cvt_frag_to_fill()
448 - fragP->fr_fix) / fragP->fr_var; in cvt_frag_to_fill()
449 if (fragP->fr_offset < 0) in cvt_frag_to_fill()
451 as_bad_where (fragP->fr_file, fragP->fr_line, in cvt_frag_to_fill()
453 (long) fragP->fr_offset); in cvt_frag_to_fill()
[all …]

123