Lines Matching refs:fragP
801 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()
853 opcode_address = fragP->fr_address + fragP->fr_fix - 4; in shmedia_md_convert_frag()
855 switch (fragP->fr_subtype) in shmedia_md_convert_frag()
872 as_bad_where (fragP->fr_file, fragP->fr_line, in shmedia_md_convert_frag()
875 as_bad_where (fragP->fr_file, fragP->fr_line, in shmedia_md_convert_frag()
894 fragP->fr_symbol, fragP->fr_offset, 1, BFD_RELOC_SH_PT_16); in shmedia_md_convert_frag()
938 fragP->fr_symbol, fragP->fr_offset - 8, 1, in shmedia_md_convert_frag()
942 fix_new (fragP, var_partp - fragP->fr_literal, 4, fragP->fr_symbol, in shmedia_md_convert_frag()
943 fragP->fr_offset - 4, 1, in shmedia_md_convert_frag()
993 fragP->fr_symbol, fragP->fr_offset - 12, 1, in shmedia_md_convert_frag()
997 fix_new (fragP, var_partp - fragP->fr_literal, 4, fragP->fr_symbol, in shmedia_md_convert_frag()
998 fragP->fr_offset - 8, 1, in shmedia_md_convert_frag()
1002 fix_new (fragP, var_partp - fragP->fr_literal + 4, 4, fragP->fr_symbol, in shmedia_md_convert_frag()
1003 fragP->fr_offset - 4, 1, in shmedia_md_convert_frag()
1068 fragP->fr_symbol, fragP->fr_offset - 16, 1, in shmedia_md_convert_frag()
1072 fix_new (fragP, var_partp - fragP->fr_literal, 4, fragP->fr_symbol, in shmedia_md_convert_frag()
1073 fragP->fr_offset - 12, 1, in shmedia_md_convert_frag()
1077 fix_new (fragP, var_partp - fragP->fr_literal + 4, 4, fragP->fr_symbol, in shmedia_md_convert_frag()
1078 fragP->fr_offset - 8, 1, in shmedia_md_convert_frag()
1082 fix_new (fragP, var_partp - fragP->fr_literal + 8, 4, fragP->fr_symbol, in shmedia_md_convert_frag()
1083 fragP->fr_offset - 4, 1, in shmedia_md_convert_frag()
1109 fragP->fr_symbol, fragP->fr_offset, 0, in shmedia_md_convert_frag()
1118 fix_new (fragP, var_partp - fragP->fr_literal, 4, fragP->fr_symbol, in shmedia_md_convert_frag()
1119 fragP->fr_offset, 0, in shmedia_md_convert_frag()
1129 fix_new (fragP, var_partp - fragP->fr_literal + 4, 4, fragP->fr_symbol, in shmedia_md_convert_frag()
1130 fragP->fr_offset, 0, in shmedia_md_convert_frag()
1140 fix_new (fragP, var_partp - fragP->fr_literal + 8, 4, fragP->fr_symbol, in shmedia_md_convert_frag()
1141 fragP->fr_offset, 0, in shmedia_md_convert_frag()
1167 fragP->fr_symbol, fragP->fr_offset, 0, in shmedia_md_convert_frag()
1181 fix_new (fragP, var_partp - fragP->fr_literal, 4, fragP->fr_symbol, in shmedia_md_convert_frag()
1182 fragP->fr_offset, 0, in shmedia_md_convert_frag()
1207 fragP->fr_symbol, fragP->fr_offset, 1, in shmedia_md_convert_frag()
1257 fragP->fr_symbol, fragP->fr_offset, 1, in shmedia_md_convert_frag()
1265 fix_new (fragP, var_partp - fragP->fr_literal, 4, fragP->fr_symbol, in shmedia_md_convert_frag()
1266 fragP->fr_offset + 4, 1, in shmedia_md_convert_frag()
1308 fragP->fr_symbol, fragP->fr_offset, 1, in shmedia_md_convert_frag()
1310 fix_new (fragP, var_partp - fragP->fr_literal, 4, fragP->fr_symbol, in shmedia_md_convert_frag()
1311 fragP->fr_offset + 4, 1, BFD_RELOC_SH_IMM_MEDLOW16_PCREL); in shmedia_md_convert_frag()
1312 fix_new (fragP, var_partp - fragP->fr_literal + 4, 4, fragP->fr_symbol, in shmedia_md_convert_frag()
1313 fragP->fr_offset + 8, 1, BFD_RELOC_SH_IMM_LOW16_PCREL); in shmedia_md_convert_frag()
1368 fragP->fr_symbol, fragP->fr_offset, 1, in shmedia_md_convert_frag()
1376 fix_new (fragP, var_partp - fragP->fr_literal, 4, fragP->fr_symbol, in shmedia_md_convert_frag()
1377 fragP->fr_offset + 4, 1, in shmedia_md_convert_frag()
1385 fix_new (fragP, var_partp - fragP->fr_literal + 4, 4, in shmedia_md_convert_frag()
1386 fragP->fr_symbol, in shmedia_md_convert_frag()
1387 fragP->fr_offset + 8, 1, in shmedia_md_convert_frag()
1395 fix_new (fragP, var_partp - fragP->fr_literal + 8, 4, in shmedia_md_convert_frag()
1396 fragP->fr_symbol, in shmedia_md_convert_frag()
1397 fragP->fr_offset + 12, 1, in shmedia_md_convert_frag()
1411 BAD_CASE (fragP->fr_subtype); in shmedia_md_convert_frag()
1414 fragP->fr_fix += var_part_size; in shmedia_md_convert_frag()
1415 fragP->fr_var = 0; in shmedia_md_convert_frag()
1897 shmedia_md_estimate_size_before_relax (fragS *fragP, in shmedia_md_estimate_size_before_relax() argument
1905 = (fragP->fr_symbol in shmedia_md_estimate_size_before_relax()
1906 && S_GET_SEGMENT (fragP->fr_symbol) == segment_type in shmedia_md_estimate_size_before_relax()
1907 && ! S_IS_EXTERNAL (fragP->fr_symbol) in shmedia_md_estimate_size_before_relax()
1908 && ! S_IS_WEAK (fragP->fr_symbol)); in shmedia_md_estimate_size_before_relax()
1910 old_fr_fix = fragP->fr_fix; in shmedia_md_estimate_size_before_relax()
1912 switch (fragP->fr_subtype) in shmedia_md_estimate_size_before_relax()
1919 int what = GET_WHAT (fragP->fr_subtype); in shmedia_md_estimate_size_before_relax()
1922 fragP->fr_subtype = C (what, SH64PCREL16); in shmedia_md_estimate_size_before_relax()
1926 int what = GET_WHAT (fragP->fr_subtype); in shmedia_md_estimate_size_before_relax()
1932 fragP->fr_subtype = C (what, SH64PCREL32); in shmedia_md_estimate_size_before_relax()
1934 fragP->fr_var = md_relax_table[fragP->fr_subtype].rlx_length; in shmedia_md_estimate_size_before_relax()
1942 int what = GET_WHAT (fragP->fr_subtype); in shmedia_md_estimate_size_before_relax()
1945 fragP->fr_subtype = C (what, SH64PCREL16); in shmedia_md_estimate_size_before_relax()
1949 int what = GET_WHAT (fragP->fr_subtype); in shmedia_md_estimate_size_before_relax()
1955 fragP->fr_subtype = C (what, SH64PCREL64); in shmedia_md_estimate_size_before_relax()
1957 fragP->fr_var = md_relax_table[fragP->fr_subtype].rlx_length; in shmedia_md_estimate_size_before_relax()
1966 if (fragP->fr_symbol != NULL in shmedia_md_estimate_size_before_relax()
1967 && (exp = symbol_get_value_expression (fragP->fr_symbol)) != NULL in shmedia_md_estimate_size_before_relax()
1972 int what = GET_WHAT (fragP->fr_subtype); in shmedia_md_estimate_size_before_relax()
1985 && fragP == symbol_get_frag (exp->X_op_symbol)) in shmedia_md_estimate_size_before_relax()
1989 fragP->fr_offset in shmedia_md_estimate_size_before_relax()
1991 - (opexp->X_add_number - (fragP->fr_fix - 4))); in shmedia_md_estimate_size_before_relax()
1992 fragP->fr_symbol = exp->X_add_symbol; in shmedia_md_estimate_size_before_relax()
2002 fragP->fr_subtype = C (what, MOVI_16); in shmedia_md_estimate_size_before_relax()
2004 fragP->fr_subtype = C (what, what_high); in shmedia_md_estimate_size_before_relax()
2009 fragP->fr_subtype = C (what, what_high); in shmedia_md_estimate_size_before_relax()
2011 else if (fragP->fr_symbol == NULL in shmedia_md_estimate_size_before_relax()
2012 || (S_GET_SEGMENT (fragP->fr_symbol) == absolute_section in shmedia_md_estimate_size_before_relax()
2017 ? bfd_getb32 (fragP->fr_opcode) in shmedia_md_estimate_size_before_relax()
2018 : bfd_getl32 (fragP->fr_opcode)); in shmedia_md_estimate_size_before_relax()
2020 offsetT value = fragP->fr_offset in shmedia_md_estimate_size_before_relax()
2021 + (fragP->fr_symbol == NULL ? 0 : S_GET_VALUE (fragP->fr_symbol)); in shmedia_md_estimate_size_before_relax()
2026 int what = GET_WHAT (fragP->fr_subtype); in shmedia_md_estimate_size_before_relax()
2027 fragP->fr_subtype = C (what, MOVI_16); in shmedia_md_estimate_size_before_relax()
2030 md_number_to_chars (fragP->fr_opcode, in shmedia_md_estimate_size_before_relax()
2043 md_number_to_chars (fragP->fr_opcode, in shmedia_md_estimate_size_before_relax()
2050 md_number_to_chars (fragP->fr_literal + old_fr_fix, in shmedia_md_estimate_size_before_relax()
2057 fragP->fr_fix += 4; in shmedia_md_estimate_size_before_relax()
2059 else if (GET_WHAT (fragP->fr_subtype) == MOVI_IMM_32) in shmedia_md_estimate_size_before_relax()
2062 as_bad_where (fragP->fr_file, fragP->fr_line, in shmedia_md_estimate_size_before_relax()
2070 fragP->fr_fix += 4; in shmedia_md_estimate_size_before_relax()
2080 md_number_to_chars (fragP->fr_opcode, in shmedia_md_estimate_size_before_relax()
2087 md_number_to_chars (fragP->fr_literal + old_fr_fix, in shmedia_md_estimate_size_before_relax()
2094 md_number_to_chars (fragP->fr_literal + old_fr_fix + 4, in shmedia_md_estimate_size_before_relax()
2101 fragP->fr_fix += 8; in shmedia_md_estimate_size_before_relax()
2110 md_number_to_chars (fragP->fr_opcode, in shmedia_md_estimate_size_before_relax()
2117 md_number_to_chars (fragP->fr_literal + old_fr_fix, in shmedia_md_estimate_size_before_relax()
2124 md_number_to_chars (fragP->fr_literal + old_fr_fix + 4, in shmedia_md_estimate_size_before_relax()
2131 md_number_to_chars (fragP->fr_literal + old_fr_fix + 8, in shmedia_md_estimate_size_before_relax()
2136 fragP->fr_fix += 12; in shmedia_md_estimate_size_before_relax()
2147 frag_wane (fragP); in shmedia_md_estimate_size_before_relax()
2150 fragP->fr_var = md_relax_table[fragP->fr_subtype].rlx_length; in shmedia_md_estimate_size_before_relax()
2189 fragP->fr_var = md_relax_table[fragP->fr_subtype].rlx_length; in shmedia_md_estimate_size_before_relax()
2196 return fragP->fr_var + (fragP->fr_fix - old_fr_fix); in shmedia_md_estimate_size_before_relax()