Home | History | Annotate | Download | only in config

Lines Matching full:fixp

157   fixS *fixp;
1814 fixS *fixP;
1819 fixP = gas_cgen_record_fixup (fragP,
1830 fixP->fx_r_type = fragP->fr_cgen.opinfo;
1848 md_pcrel_from_section (fixS *fixP, segT sec)
1850 if (fixP->fx_addsy != (symbolS *) NULL
1851 && (! S_IS_DEFINED (fixP->fx_addsy)
1852 || S_GET_SEGMENT (fixP->fx_addsy) != sec
1853 || S_IS_EXTERNAL (fixP->fx_addsy)
1854 || S_IS_WEAK (fixP->fx_addsy)))
1856 if (S_GET_SEGMENT (fixP->fx_addsy) != sec
1857 && S_IS_DEFINED (fixP->fx_addsy)
1858 && ! S_IS_EXTERNAL (fixP->fx_addsy)
1859 && ! S_IS_WEAK (fixP->fx_addsy))
1860 return fixP->fx_offset;
1867 return (fixP->fx_frag->fr_address + fixP->fx_where) & -4L;
1870 /* Return the bfd reloc type for OPERAND of INSN at fixup FIXP.
1872 *FIXP may be modified if desired. */
1877 fixS *fixP)
1889 if (fixP->fx_cgen.opinfo != 0)
1890 return fixP->fx_cgen.opinfo;
1903 fixS *fixP,
1912 hi_fixup->fixp = fixP;
1931 fixS *fixP;
1937 fixP = gas_cgen_record_fixup_exp (frag, where, insn, length,
1944 if (fixP->fx_cgen.opinfo == BFD_RELOC_M32R_HI16_SLO
1945 || fixP->fx_cgen.opinfo == BFD_RELOC_M32R_HI16_ULO)
1946 m32r_record_hi16 (fixP->fx_cgen.opinfo, fixP, now_seg);
1958 return fixP;
1961 if (fixP->fx_cgen.opinfo == BFD_RELOC_M32R_HI16_SLO)
1963 else if (fixP->fx_cgen.opinfo == BFD_RELOC_M32R_HI16_ULO)
1965 else if (fixP->fx_cgen.opinfo == BFD_RELOC_M32R_LO16)
1970 if (fixP->fx_cgen.opinfo == BFD_RELOC_M32R_HI16_SLO)
1972 else if (fixP->fx_cgen.opinfo == BFD_RELOC_M32R_HI16_ULO)
1974 else if (fixP->fx_cgen.opinfo == BFD_RELOC_M32R_LO16)
1979 if (fixP->fx_cgen.opinfo == BFD_RELOC_M32R_HI16_SLO)
1981 else if (fixP->fx_cgen.opinfo == BFD_RELOC_M32R_HI16_ULO)
1983 else if (fixP->fx_cgen.opinfo == BFD_RELOC_M32R_LO16)
1992 fixP->fx_r_type = r_type;
1994 return fixP;
2016 gas_assert (FX_OPINFO_R_TYPE (l->fixp) == BFD_RELOC_M32R_HI16_SLO
2017 || FX_OPINFO_R_TYPE (l->fixp) == BFD_RELOC_M32R_HI16_ULO);
2020 if (l->fixp->fx_next != NULL
2021 && FX_OPINFO_R_TYPE (l->fixp->fx_next) == BFD_RELOC_M32R_LO16
2022 && l->fixp->fx_addsy == l->fixp->fx_next->fx_addsy
2023 && l->fixp->fx_offset == l->fixp->fx_next->fx_offset)
2040 /* Check whether this is a `low' fixup which matches l->fixp. */
2042 && f->fx_addsy == l->fixp->fx_addsy
2043 && f->fx_offset == l->fixp->fx_offset
2053 /* Move l->fixp before f. */
2055 *pf != l->fixp;
2059 *pf = l->fixp->fx_next;
2061 l->fixp->fx_next = f;
2063 seginfo->fix_root = l->fixp;
2065 prev->fx_next = l->fixp;
2078 as_warn_where (l->fixp->fx_file, l->fixp->fx_line,
2141 m32r_fix_adjustable (fixS *fixP)
2145 if ((int) fixP->fx_r_type >= (int) BFD_RELOC_UNUSED)
2148 int opindex = (int) fixP->fx_r_type - (int) BFD_RELOC_UNUSED;
2152 reloc_type = md_cgen_lookup_reloc (insn, operand, fixP);
2155 reloc_type = fixP->fx_r_type;
2157 if (fixP->fx_addsy == NULL)
2161 if (S_IS_EXTERNAL (fixP->fx_addsy))
2163 if (S_IS_WEAK (fixP->fx_addsy))
2204 tc_gen_reloc (asection * section, fixS * fixP)
2212 *reloc->sym_ptr_ptr = symbol_get_bfdsym (fixP->fx_addsy);
2213 reloc->address = fixP->fx_frag->fr_address + fixP->fx_where;
2215 if (fixP->fx_pcrel)
2217 if (fixP->fx_r_type == BFD_RELOC_32)
2218 fixP->fx_r_type = BFD_RELOC_32_PCREL;
2219 else if (fixP->fx_r_type == BFD_RELOC_16)
2221 fixP->fx_r_type = BFD_RELOC_16_PCREL;
2226 code = fixP->fx_r_type;
2239 if (fixP->fx_addsy != NULL
2240 && strcmp (S_GET_NAME (fixP->fx_addsy), GOT_NAME) == 0)
2247 if (fixP->fx_addsy != NULL
2248 && strcmp (S_GET_NAME (fixP->fx_addsy), GOT_NAME) == 0)
2255 if (fixP->fx_addsy != NULL
2256 && strcmp (S_GET_NAME (fixP->fx_addsy), GOT_NAME) == 0)
2263 if (fixP->fx_addsy != NULL
2264 && strcmp (S_GET_NAME (fixP->fx_addsy), GOT_NAME) == 0)
2286 fixP->fx_file, fixP->fx_line,
2288 fixP->fx_r_type, bfd_get_reloc_code_name (code));
2293 if ( fixP->fx_r_type == BFD_RELOC_VTABLE_ENTRY
2294 || fixP->fx_r_type == BFD_RELOC_VTABLE_INHERIT
2295 || fixP->fx_r_type == BFD_RELOC_32_PCREL)
2296 reloc->addend = fixP->fx_offset;
2299 && fixP->fx_pcrel
2300 && fixP->fx_addsy != NULL
2301 && (S_GET_SEGMENT(fixP->fx_addsy) != section)
2302 && S_IS_DEFINED (fixP->fx_addsy)
2303 && ! S_IS_EXTERNAL(fixP->fx_addsy)
2304 && ! S_IS_WEAK(fixP->fx_addsy))
2306 reloc->addend = fixP->fx_offset;
2308 reloc->addend = fixP->fx_addnumber;