Lines Matching refs:fixP

1622       fixS *fixP;
1648 fixP = fix_new_exp (frag_now,
1658 fixP->fx_no_overflow = 1;
1661 fixP->fx_pcrel_adjust = operand->shift / 8;
1664 fixP = fix_new_exp (frag_now, f - frag_now->fr_literal, 4,
1671 fixP->fx_no_overflow = 1;
2142 tc_s390_fix_adjustable (fixS *fixP)
2145 if (fixP->fx_pcrel
2146 && (S_GET_SEGMENT (fixP->fx_addsy)->flags & SEC_MERGE) != 0)
2150 if ( fixP->fx_r_type == BFD_RELOC_16_GOTOFF
2151 || fixP->fx_r_type == BFD_RELOC_32_GOTOFF
2152 || fixP->fx_r_type == BFD_RELOC_390_GOTOFF64
2153 || fixP->fx_r_type == BFD_RELOC_390_PLTOFF16
2154 || fixP->fx_r_type == BFD_RELOC_390_PLTOFF32
2155 || fixP->fx_r_type == BFD_RELOC_390_PLTOFF64
2156 || fixP->fx_r_type == BFD_RELOC_390_PLT12DBL
2157 || fixP->fx_r_type == BFD_RELOC_390_PLT16DBL
2158 || fixP->fx_r_type == BFD_RELOC_390_PLT24DBL
2159 || fixP->fx_r_type == BFD_RELOC_390_PLT32
2160 || fixP->fx_r_type == BFD_RELOC_390_PLT32DBL
2161 || fixP->fx_r_type == BFD_RELOC_390_PLT64
2162 || fixP->fx_r_type == BFD_RELOC_390_GOT12
2163 || fixP->fx_r_type == BFD_RELOC_390_GOT20
2164 || fixP->fx_r_type == BFD_RELOC_390_GOT16
2165 || fixP->fx_r_type == BFD_RELOC_32_GOT_PCREL
2166 || fixP->fx_r_type == BFD_RELOC_390_GOT64
2167 || fixP->fx_r_type == BFD_RELOC_390_GOTENT
2168 || fixP->fx_r_type == BFD_RELOC_390_GOTPLT12
2169 || fixP->fx_r_type == BFD_RELOC_390_GOTPLT16
2170 || fixP->fx_r_type == BFD_RELOC_390_GOTPLT20
2171 || fixP->fx_r_type == BFD_RELOC_390_GOTPLT32
2172 || fixP->fx_r_type == BFD_RELOC_390_GOTPLT64
2173 || fixP->fx_r_type == BFD_RELOC_390_GOTPLTENT
2174 || fixP->fx_r_type == BFD_RELOC_390_TLS_LOAD
2175 || fixP->fx_r_type == BFD_RELOC_390_TLS_GDCALL
2176 || fixP->fx_r_type == BFD_RELOC_390_TLS_LDCALL
2177 || fixP->fx_r_type == BFD_RELOC_390_TLS_GD32
2178 || fixP->fx_r_type == BFD_RELOC_390_TLS_GD64
2179 || fixP->fx_r_type == BFD_RELOC_390_TLS_GOTIE12
2180 || fixP->fx_r_type == BFD_RELOC_390_TLS_GOTIE20
2181 || fixP->fx_r_type == BFD_RELOC_390_TLS_GOTIE32
2182 || fixP->fx_r_type == BFD_RELOC_390_TLS_GOTIE64
2183 || fixP->fx_r_type == BFD_RELOC_390_TLS_LDM32
2184 || fixP->fx_r_type == BFD_RELOC_390_TLS_LDM64
2185 || fixP->fx_r_type == BFD_RELOC_390_TLS_IE32
2186 || fixP->fx_r_type == BFD_RELOC_390_TLS_IE64
2187 || fixP->fx_r_type == BFD_RELOC_390_TLS_IEENT
2188 || fixP->fx_r_type == BFD_RELOC_390_TLS_LE32
2189 || fixP->fx_r_type == BFD_RELOC_390_TLS_LE64
2190 || fixP->fx_r_type == BFD_RELOC_390_TLS_LDO32
2191 || fixP->fx_r_type == BFD_RELOC_390_TLS_LDO64
2192 || fixP->fx_r_type == BFD_RELOC_390_TLS_DTPMOD
2193 || fixP->fx_r_type == BFD_RELOC_390_TLS_DTPOFF
2194 || fixP->fx_r_type == BFD_RELOC_390_TLS_TPOFF
2195 || fixP->fx_r_type == BFD_RELOC_VTABLE_INHERIT
2196 || fixP->fx_r_type == BFD_RELOC_VTABLE_ENTRY)
2253 md_apply_fix (fixS *fixP, valueT *valP, segT seg ATTRIBUTE_UNUSED)
2258 where = fixP->fx_frag->fr_literal + fixP->fx_where;
2260 if (fixP->fx_subsy != NULL)
2261 as_bad_subtract (fixP);
2263 if (fixP->fx_addsy != NULL)
2265 if (fixP->fx_pcrel)
2266 value += fixP->fx_frag->fr_address + fixP->fx_where;
2269 fixP->fx_done = 1;
2271 if ((int) fixP->fx_r_type >= (int) BFD_RELOC_UNUSED)
2276 opindex = (int) fixP->fx_r_type - (int) BFD_RELOC_UNUSED;
2279 if (fixP->fx_done)
2283 (offsetT) value, fixP->fx_file, fixP->fx_line);
2290 fixP->fx_offset = value;
2293 fixP->fx_size = 2;
2294 fixP->fx_where += 2;
2295 fixP->fx_r_type = BFD_RELOC_390_12;
2299 fixP->fx_size = 2;
2300 fixP->fx_where += 4;
2301 fixP->fx_r_type = BFD_RELOC_390_12;
2305 fixP->fx_size = 4;
2306 fixP->fx_where += 2;
2307 fixP->fx_r_type = BFD_RELOC_390_20;
2311 fixP->fx_size = 1;
2312 fixP->fx_where += 1;
2313 fixP->fx_r_type = BFD_RELOC_8;
2318 fixP->fx_size = 2;
2319 fixP->fx_where += 1;
2320 fixP->fx_offset += 1;
2321 fixP->fx_pcrel_adjust = 1;
2322 fixP->fx_r_type = BFD_RELOC_390_PC12DBL;
2326 fixP->fx_size = 2;
2327 fixP->fx_where += 2;
2330 fixP->fx_r_type = BFD_RELOC_390_PC16DBL;
2331 fixP->fx_offset += 2;
2332 fixP->fx_pcrel_adjust = 2;
2335 fixP->fx_r_type = BFD_RELOC_16;
2340 fixP->fx_size = 2;
2341 fixP->fx_where += 4;
2342 fixP->fx_offset += 4;
2343 fixP->fx_pcrel_adjust = 4;
2344 fixP->fx_r_type = BFD_RELOC_390_PC16DBL;
2349 fixP->fx_size = 3;
2350 fixP->fx_where += 3;
2351 fixP->fx_offset += 3;
2352 fixP->fx_pcrel_adjust = 3;
2353 fixP->fx_r_type = BFD_RELOC_390_PC24DBL;
2358 fixP->fx_size = 4;
2359 fixP->fx_where += 2;
2360 fixP->fx_offset += 2;
2361 fixP->fx_pcrel_adjust = 2;
2362 fixP->fx_r_type = BFD_RELOC_390_PC32DBL;
2371 if (expr_symbol_where (fixP->fx_addsy, &sfile, &sline))
2372 as_bad_where (fixP->fx_file, fixP->fx_line,
2375 as_bad_where (fixP->fx_file, fixP->fx_line,
2377 fixP->fx_done = 1;
2383 switch (fixP->fx_r_type)
2386 if (fixP->fx_pcrel)
2388 if (fixP->fx_done)
2396 if (fixP->fx_pcrel)
2397 value += fixP->fx_pcrel_adjust;
2399 if (fixP->fx_done)
2403 if (fixP->fx_pcrel)
2415 if (fixP->fx_done)
2429 if (fixP->fx_pcrel)
2430 as_bad_where (fixP->fx_file, fixP->fx_line,
2432 bfd_get_reloc_code_name (fixP->fx_r_type),
2433 fixP->fx_addsy != NULL ? " against " : "",
2434 (fixP->fx_addsy != NULL
2435 ? S_GET_NAME (fixP->fx_addsy)
2437 if (fixP->fx_done)
2443 if (fixP->fx_done)
2448 value += fixP->fx_pcrel_adjust;
2449 if (fixP->fx_done)
2455 value += fixP->fx_pcrel_adjust;
2456 if (fixP->fx_done)
2468 if (fixP->fx_pcrel)
2469 fixP->fx_r_type = BFD_RELOC_32_PCREL;
2471 fixP->fx_r_type = BFD_RELOC_32;
2472 if (fixP->fx_done)
2477 fixP->fx_r_type = BFD_RELOC_32_PCREL;
2478 if (fixP->fx_done)
2485 if (fixP->fx_done)
2493 value += fixP->fx_pcrel_adjust;
2494 if (fixP->fx_done)
2499 if (fixP->fx_done)
2504 if (fixP->fx_done)
2512 if (fixP->fx_done)
2517 if (fixP->fx_pcrel)
2518 fixP->fx_r_type = BFD_RELOC_64_PCREL;
2520 fixP->fx_r_type = BFD_RELOC_64;
2521 if (fixP->fx_done)
2526 fixP->fx_r_type = BFD_RELOC_64_PCREL;
2527 if (fixP->fx_done)
2533 fixP->fx_done = 0;
2556 S_SET_THREAD_LOCAL (fixP->fx_addsy);
2561 S_SET_THREAD_LOCAL (fixP->fx_addsy);
2567 const char *reloc_name = bfd_get_reloc_code_name (fixP->fx_r_type);
2572 as_fatal (_("Gas failure, reloc type #%i\n"), fixP->fx_r_type);
2576 fixP->fx_offset = value;