Lines Matching defs:fixP

2783 	  fixS *fixP;
2795 fixP = fix_new_exp (frag_now,
2817 fixP->fx_no_overflow = 1;
5615 md_apply_fix (fixS *fixP, valueT *valP, segT seg ATTRIBUTE_UNUSED)
5620 if (fixP->fx_addsy != NULL)
5623 if (fixP->fx_pcrel)
5624 value += fixP->fx_frag->fr_address + fixP->fx_where;
5627 fixP->fx_done = 1;
5639 if (fixP->fx_addsy == (symbolS *) NULL)
5640 fixP->fx_done = 1;
5642 else if (fixP->fx_pcrel)
5646 value = fixP->fx_offset;
5649 if (fixP->fx_subsy != (symbolS *) NULL)
5652 as_bad_where (fixP->fx_file, fixP->fx_line, _("expression too complex"));
5655 if ((int) fixP->fx_r_type >= (int) BFD_RELOC_UNUSED)
5662 opindex = (int) fixP->fx_r_type - (int) BFD_RELOC_UNUSED;
5675 && fixP->fx_addsy != NULL
5676 && symbol_get_tc (fixP->fx_addsy)->subseg != 0
5677 && symbol_get_tc (fixP->fx_addsy)->class != XMC_TC
5678 && symbol_get_tc (fixP->fx_addsy)->class != XMC_TC0
5679 && S_GET_SEGMENT (fixP->fx_addsy) != bss_section)
5681 value = fixP->fx_offset;
5682 fixP->fx_done = 1;
5688 where = fixP->fx_frag->fr_literal + fixP->fx_where;
5694 fixP->fx_file, fixP->fx_line);
5700 if (fixP->fx_done)
5704 assert (fixP->fx_addsy != NULL);
5712 fixP->fx_r_type = BFD_RELOC_PPC_B26;
5717 fixP->fx_r_type = BFD_RELOC_PPC_B16;
5719 fixP->fx_size = 2;
5721 fixP->fx_where += 2;
5727 fixP->fx_r_type = BFD_RELOC_PPC_BA26;
5732 fixP->fx_r_type = BFD_RELOC_PPC_BA16;
5734 fixP->fx_size = 2;
5736 fixP->fx_where += 2;
5744 if (ppc_is_toc_sym (fixP->fx_addsy))
5746 fixP->fx_r_type = BFD_RELOC_PPC_TOC16;
5750 fixP->fx_r_type = BFD_RELOC_PPC64_TOC16_DS;
5755 fixP->fx_r_type = BFD_RELOC_16;
5759 fixP->fx_r_type = BFD_RELOC_PPC64_ADDR16_DS;
5762 fixP->fx_size = 2;
5764 fixP->fx_where += 2;
5774 if (expr_symbol_where (fixP->fx_addsy, &sfile, &sline))
5775 as_bad_where (fixP->fx_file, fixP->fx_line,
5778 as_bad_where (fixP->fx_file, fixP->fx_line,
5780 S_GET_NAME (fixP->fx_addsy));
5781 fixP->fx_done = 1;
5788 ppc_elf_validate_fix (fixP, seg);
5790 switch (fixP->fx_r_type)
5798 if (fixP->fx_pcrel)
5799 fixP->fx_r_type = BFD_RELOC_32_PCREL;
5805 md_number_to_chars (fixP->fx_frag->fr_literal + fixP->fx_where,
5811 if (fixP->fx_pcrel)
5812 fixP->fx_r_type = BFD_RELOC_64_PCREL;
5816 md_number_to_chars (fixP->fx_frag->fr_literal + fixP->fx_where,
5848 if (fixP->fx_pcrel)
5850 if (fixP->fx_addsy != NULL)
5851 as_bad_where (fixP->fx_file, fixP->fx_line,
5853 bfd_get_reloc_code_name (fixP->fx_r_type),
5854 S_GET_NAME (fixP->fx_addsy));
5856 as_bad_where (fixP->fx_file, fixP->fx_line,
5858 bfd_get_reloc_code_name (fixP->fx_r_type));
5861 md_number_to_chars (fixP->fx_frag->fr_literal + fixP->fx_where,
5866 if (fixP->fx_pcrel)
5867 fixP->fx_r_type = BFD_RELOC_16_PCREL;
5871 md_number_to_chars (fixP->fx_frag->fr_literal + fixP->fx_where,
5876 if (fixP->fx_pcrel)
5877 fixP->fx_r_type = BFD_RELOC_LO16_PCREL;
5881 md_number_to_chars (fixP->fx_frag->fr_literal + fixP->fx_where,
5889 if (fixP->fx_pcrel)
5890 fixP->fx_r_type = BFD_RELOC_HI16_PCREL;
5894 md_number_to_chars (fixP->fx_frag->fr_literal + fixP->fx_where,
5899 if (fixP->fx_pcrel)
5900 fixP->fx_r_type = BFD_RELOC_HI16_S_PCREL;
5904 md_number_to_chars (fixP->fx_frag->fr_literal + fixP->fx_where,
5910 if (fixP->fx_pcrel)
5912 md_number_to_chars (fixP->fx_frag->fr_literal + fixP->fx_where,
5917 if (fixP->fx_pcrel)
5919 md_number_to_chars (fixP->fx_frag->fr_literal + fixP->fx_where,
5924 if (fixP->fx_pcrel)
5926 md_number_to_chars (fixP->fx_frag->fr_literal + fixP->fx_where,
5931 if (fixP->fx_pcrel)
5933 md_number_to_chars (fixP->fx_frag->fr_literal + fixP->fx_where,
5948 if (fixP->fx_pcrel)
5951 char *where = fixP->fx_frag->fr_literal + fixP->fx_where;
6021 S_SET_THREAD_LOCAL (fixP->fx_addsy);
6027 if (fixP->fx_pcrel)
6030 md_number_to_chars (fixP->fx_frag->fr_literal + fixP->fx_where
6036 if (fixP->fx_pcrel)
6040 if (fixP->fx_addsy)
6042 S_GET_NAME (fixP->fx_addsy));
6045 fixP->fx_done = 1;
6048 md_number_to_chars (fixP->fx_frag->fr_literal + fixP->fx_where,
6054 if (!fixP->fx_pcrel && !fixP->fx_done)
6057 if (fixP->fx_done)
6064 where = fixP->fx_frag->fr_literal + fixP->fx_where;
6070 as_bad_where (fixP->fx_file, fixP->fx_line,
6074 as_bad_where (fixP->fx_file, fixP->fx_line,
6086 fixP->fx_done = 0;
6087 if (fixP->fx_addsy
6088 && !S_IS_DEFINED (fixP->fx_addsy)
6089 && !S_IS_WEAK (fixP->fx_addsy))
6090 S_SET_WEAK (fixP->fx_addsy);
6094 fixP->fx_done = 0;
6101 fixP->fx_done = 0;
6106 _("Gas failure, reloc value %d\n"), fixP->fx_r_type);
6113 fixP->fx_addnumber = value;
6119 if (!fixP->fx_done)
6120 fixP->fx_no_overflow = 1;
6122 if (fixP->fx_r_type != BFD_RELOC_PPC_TOC16)
6123 fixP->fx_addnumber = 0;
6127 fixP->fx_addnumber = 0;
6131 fixP->fx_addnumber =
6132 - bfd_get_section_vma (stdoutput, S_GET_SEGMENT (fixP->fx_addsy));