Home | History | Annotate | Download | only in config

Lines Matching full:fixp

863 tc_microblaze_fix_adjustable (struct fix *fixP)
865 if (GOT_symbol && fixP->fx_subsy == GOT_symbol)
868 if (fixP->fx_r_type == BFD_RELOC_MICROBLAZE_64_GOTOFF
869 || fixP->fx_r_type == BFD_RELOC_MICROBLAZE_32_GOTOFF
870 || fixP->fx_r_type == BFD_RELOC_MICROBLAZE_64_GOT
871 || fixP->fx_r_type == BFD_RELOC_MICROBLAZE_64_PLT
872 || fixP->fx_r_type == BFD_RELOC_MICROBLAZE_64_TLSGD
873 || fixP->fx_r_type == BFD_RELOC_MICROBLAZE_64_TLSLD
874 || fixP->fx_r_type == BFD_RELOC_MICROBLAZE_32_TLSDTPMOD
875 || fixP->fx_r_type == BFD_RELOC_MICROBLAZE_32_TLSDTPREL
876 || fixP->fx_r_type == BFD_RELOC_MICROBLAZE_64_TLSDTPREL
877 || fixP->fx_r_type == BFD_RELOC_MICROBLAZE_64_TLSGOTTPREL
878 || fixP->fx_r_type == BFD_RELOC_MICROBLAZE_64_TLSTPREL)
1863 fixS *fixP;
1914 fixP = fix_new (fragP, fragP->fr_fix, INST_WORD_SIZE * 2, fragP->fr_symbol,
1916 /* fixP->fx_plt = 1; */
1917 (void) fixP;
1954 md_apply_fix (fixS * fixP,
1958 char * buf = fixP->fx_where + fixP->fx_frag->fr_literal;
1959 char * file = fixP->fx_file ? fixP->fx_file : _("unknown");
1967 symname = fixP->fx_addsy ? S_GET_NAME (fixP->fx_addsy) : _("<unknown>");
1969 /* fixP->fx_offset is supposed to be set up correctly for all
1971 if (fixP->fx_addsy == NULL)
1973 if (!fixP->fx_pcrel)
1974 fixP->fx_offset = val; /* Absolute relocation. */
1977 (unsigned int) fixP->fx_offset, (unsigned int) val);
1982 if (fixP->fx_addsy != NULL)
1984 if (S_IS_WEAK (fixP->fx_addsy)
1985 || (symbol_used_in_reloc_p (fixP->fx_addsy)
1987 S_GET_SEGMENT (fixP->fx_addsy))
1989 || !strncmp (segment_name (S_GET_SEGMENT (fixP->fx_addsy)),
1993 val -= S_GET_VALUE (fixP->fx_addsy);
1994 if (val != 0 && ! fixP->fx_pcrel)
2000 val -= S_GET_VALUE (fixP->fx_addsy);
2007 /* fixP->fx_addsy is NULL if valp contains the entire relocation. */
2008 if (fixP->fx_addsy != NULL
2009 && (!S_IS_DEFINED (fixP->fx_addsy)
2010 || (S_GET_SEGMENT (fixP->fx_addsy) != segment)))
2012 fixP->fx_done = 0;
2022 fixP->fx_done = 0;
2023 else if (!fixP->fx_pcrel && fixP->fx_addsy != NULL)
2024 fixP->fx_done = 0;
2026 fixP->fx_done = 1;
2028 switch (fixP->fx_r_type)
2046 if (fixP->fx_addsy == NULL || S_IS_DEFINED (fixP->fx_addsy))
2049 as_bad_where (file, fixP->fx_line,
2069 if (fixP->fx_addsy == NULL || S_IS_DEFINED (fixP->fx_addsy))
2102 if (fixP->fx_addsy == NULL || S_IS_DEFINED (fixP->fx_addsy))
2111 if (fixP->fx_addsy == NULL || S_IS_DEFINED (fixP->fx_addsy))
2129 S_SET_THREAD_LOCAL (fixP->fx_addsy);
2161 if (fixP->fx_addsy == NULL)
2165 if (fixP->fx_r_type == BFD_RELOC_64_PCREL)
2166 fixP->fx_r_type = BFD_RELOC_MICROBLAZE_64_NONE;
2168 fixP->fx_r_type = BFD_RELOC_NONE;
2169 fixP->fx_addsy = section_symbol (absolute_section);
2352 md_pcrel_from_section (fixS * fixp, segT sec ATTRIBUTE_UNUSED)
2359 if (fixp->fx_addsy != (symbolS *) NULL
2360 && (!S_IS_DEFINED (fixp->fx_addsy)
2361 || (S_GET_SEGMENT (fixp->fx_addsy) != sec)))
2366 if (fixp->fx_r_type == BFD_RELOC_64_PCREL)
2367 return fixp->fx_where + fixp->fx_frag->fr_address + INST_WORD_SIZE;
2369 return fixp->fx_where + fixp->fx_frag->fr_address;
2379 tc_gen_reloc (asection * section ATTRIBUTE_UNUSED, fixS * fixp)
2384 switch (fixp->fx_r_type)
2409 code = fixp->fx_r_type;
2413 switch (F (fixp->fx_size, fixp->fx_pcrel))
2422 code = fixp->fx_r_type;
2424 fixp->fx_size,
2425 fixp->fx_pcrel ? _("pc-relative") : "");
2434 *rel->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_subsy);
2436 *rel->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy);
2438 rel->address = fixp->fx_frag->fr_address + fixp->fx_where;
2440 rel->addend = fixp->fx_offset;
2445 as_bad_where (fixp->fx_file, fixp->fx_line,