/toolchain/binutils/binutils-2.25/gas/config/ |
D | tc-xc16x.c | 281 tc_gen_reloc (asection *section ATTRIBUTE_UNUSED, fixS *fixp) in tc_gen_reloc() argument 286 if (fixp->fx_addsy && fixp->fx_subsy) in tc_gen_reloc() 288 if ((S_GET_SEGMENT (fixp->fx_addsy) != S_GET_SEGMENT (fixp->fx_subsy)) in tc_gen_reloc() 289 || S_GET_SEGMENT (fixp->fx_addsy) == undefined_section) in tc_gen_reloc() 291 as_bad_where (fixp->fx_file, fixp->fx_line, in tc_gen_reloc() 299 *rel->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy); in tc_gen_reloc() 300 rel->address = fixp->fx_frag->fr_address + fixp->fx_where; in tc_gen_reloc() 301 rel->addend = fixp->fx_offset; in tc_gen_reloc() 303 r_type = fixp->fx_r_type; in tc_gen_reloc() 314 as_bad_where (fixp->fx_file, fixp->fx_line, in tc_gen_reloc()
|
D | tc-msp430.c | 3226 md_pcrel_from_section (fixS * fixp, segT sec) in md_pcrel_from_section() argument 3228 if (fixp->fx_addsy != (symbolS *) NULL in md_pcrel_from_section() 3229 && (!S_IS_DEFINED (fixp->fx_addsy) in md_pcrel_from_section() 3230 || (S_GET_SEGMENT (fixp->fx_addsy) != sec))) in md_pcrel_from_section() 3233 return fixp->fx_frag->fr_address + fixp->fx_where; in md_pcrel_from_section() 3240 msp430_force_relocation_local (fixS *fixp) in msp430_force_relocation_local() argument 3242 if (fixp->fx_r_type == BFD_RELOC_MSP430_10_PCREL) in msp430_force_relocation_local() 3244 if (fixp->fx_pcrel) in msp430_force_relocation_local() 3250 return (!fixp->fx_pcrel in msp430_force_relocation_local() 3251 || generic_force_reloc (fixp)); in msp430_force_relocation_local() [all …]
|
D | obj-evax.c | 154 if (S_GET_SEGMENT (l->fixp->fx_addsy) == alpha_link_section) in evax_frob_file_before_adjust() 165 …(((struct evax_private_udata_struct *)symbol_get_bfdsym (l->fixp->fx_addsy)->udata.p)->enbsym->nam… in evax_frob_file_before_adjust() 168 fixpentry = fix_new (l->fixp->fx_frag, l->fixp->fx_where, 8, in evax_frob_file_before_adjust() 169 entry_sym, l->fixp->fx_offset, 0, in evax_frob_file_before_adjust() 171 fixppdesc = fix_new (l->fixp->fx_frag, l->fixp->fx_where + 8, 8, in evax_frob_file_before_adjust() 172 l->fixp->fx_addsy, l->fixp->fx_offset, 0, in evax_frob_file_before_adjust() 174 l->fixp->fx_size = 0; in evax_frob_file_before_adjust() 175 l->fixp->fx_done = 1; in evax_frob_file_before_adjust() 179 if (fixtail != l->fixp) in evax_frob_file_before_adjust() 181 fixppdesc->fx_next = l->fixp->fx_next; in evax_frob_file_before_adjust() [all …]
|
D | tc-mn10300.c | 2166 tc_gen_reloc (asection *seg ATTRIBUTE_UNUSED, fixS *fixp) in tc_gen_reloc() argument 2174 reloc->howto = bfd_reloc_type_lookup (stdoutput, fixp->fx_r_type); in tc_gen_reloc() 2177 as_bad_where (fixp->fx_file, fixp->fx_line, in tc_gen_reloc() 2179 (int) fixp->fx_r_type); in tc_gen_reloc() 2184 reloc->address = fixp->fx_frag->fr_address + fixp->fx_where; in tc_gen_reloc() 2188 if (fixp->fx_subsy in tc_gen_reloc() 2189 && S_GET_SEGMENT (fixp->fx_subsy) == absolute_section) in tc_gen_reloc() 2191 fixp->fx_offset -= S_GET_VALUE (fixp->fx_subsy); in tc_gen_reloc() 2192 fixp->fx_subsy = NULL; in tc_gen_reloc() 2195 if (fixp->fx_addsy && fixp->fx_subsy) in tc_gen_reloc() [all …]
|
D | tc-mn10200.c | 751 tc_gen_reloc (asection *seg ATTRIBUTE_UNUSED, fixS *fixp) in tc_gen_reloc() argument 756 if (fixp->fx_subsy != NULL) in tc_gen_reloc() 758 if (S_GET_SEGMENT (fixp->fx_addsy) == S_GET_SEGMENT (fixp->fx_subsy) in tc_gen_reloc() 759 && S_IS_DEFINED (fixp->fx_subsy)) in tc_gen_reloc() 761 fixp->fx_offset -= S_GET_VALUE (fixp->fx_subsy); in tc_gen_reloc() 762 fixp->fx_subsy = NULL; in tc_gen_reloc() 768 as_bad_where (fixp->fx_file, fixp->fx_line, in tc_gen_reloc() 770 fixp->fx_addsy ? S_GET_NAME (fixp->fx_addsy) : "0", in tc_gen_reloc() 771 segment_name (fixp->fx_addsy in tc_gen_reloc() 772 ? S_GET_SEGMENT (fixp->fx_addsy) in tc_gen_reloc() [all …]
|
D | tc-iq2000.c | 102 fixS * fixp; /* This fixup. */ member 539 hi_fixup->fixp = fixP; in iq2000_record_hi16() 589 gas_assert (FX_OPINFO_R_TYPE (l->fixp) == BFD_RELOC_HI16 in iq2000_frob_file() 590 || FX_OPINFO_R_TYPE (l->fixp) == BFD_RELOC_LO16); in iq2000_frob_file() 593 if (l->fixp->fx_next != NULL in iq2000_frob_file() 594 && FX_OPINFO_R_TYPE (l->fixp->fx_next) == BFD_RELOC_LO16 in iq2000_frob_file() 595 && l->fixp->fx_addsy == l->fixp->fx_next->fx_addsy in iq2000_frob_file() 596 && l->fixp->fx_offset == l->fixp->fx_next->fx_offset) in iq2000_frob_file() 615 && f->fx_addsy == l->fixp->fx_addsy in iq2000_frob_file() 616 && f->fx_offset == l->fixp->fx_offset in iq2000_frob_file() [all …]
|
D | tc-alpha.c | 626 fixS *fixp; in alpha_adjust_relocs() local 643 for (fixp = seginfo->fix_root; fixp; fixp = next) in alpha_adjust_relocs() 645 next = fixp->fx_next; in alpha_adjust_relocs() 646 fixp->fx_next = (fixS *) 0; in alpha_adjust_relocs() 648 switch (fixp->fx_r_type) in alpha_adjust_relocs() 651 if (fixp->tc_fix_data.info->n_master == 0) in alpha_adjust_relocs() 652 as_bad_where (fixp->fx_file, fixp->fx_line, in alpha_adjust_relocs() 654 fixp->tc_fix_data.info->sequence); in alpha_adjust_relocs() 656 if (fixp->fx_offset == LITUSE_ALPHA_TLSGD) in alpha_adjust_relocs() 658 if (! fixp->tc_fix_data.info->saw_tlsgd) in alpha_adjust_relocs() [all …]
|
D | tc-rx.c | 2397 tc_gen_reloc (asection * sec ATTRIBUTE_UNUSED, fixS * fixp) in tc_gen_reloc() argument 2402 if (fixp->fx_r_type == BFD_RELOC_NONE) in tc_gen_reloc() 2408 if (fixp->fx_subsy in tc_gen_reloc() 2409 && S_GET_SEGMENT (fixp->fx_subsy) == absolute_section) in tc_gen_reloc() 2411 fixp->fx_offset -= S_GET_VALUE (fixp->fx_subsy); in tc_gen_reloc() 2412 fixp->fx_subsy = NULL; in tc_gen_reloc() 2417 * reloc[0]->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy); in tc_gen_reloc() 2418 reloc[0]->address = fixp->fx_frag->fr_address + fixp->fx_where; in tc_gen_reloc() 2419 reloc[0]->addend = fixp->fx_offset; in tc_gen_reloc() 2421 if (fixp->fx_r_type == BFD_RELOC_RX_32_OP in tc_gen_reloc() [all …]
|
D | tc-nios2.c | 2576 nios2_force_relocation (fixS *fixp) in nios2_force_relocation() argument 2578 if (fixp->fx_r_type == BFD_RELOC_VTABLE_INHERIT in nios2_force_relocation() 2579 || fixp->fx_r_type == BFD_RELOC_VTABLE_ENTRY in nios2_force_relocation() 2580 || fixp->fx_r_type == BFD_RELOC_NIOS2_ALIGN) in nios2_force_relocation() 2583 return generic_force_reloc (fixp); in nios2_force_relocation() 2588 nios2_fix_adjustable (fixS *fixp) in nios2_fix_adjustable() argument 2590 if (fixp->fx_addsy == NULL) in nios2_fix_adjustable() 2596 && (S_IS_EXTERNAL (fixp->fx_addsy) || S_IS_WEAK (fixp->fx_addsy))) in nios2_fix_adjustable() 2599 if (fixp->fx_r_type == BFD_RELOC_VTABLE_INHERIT in nios2_fix_adjustable() 2600 || fixp->fx_r_type == BFD_RELOC_VTABLE_ENTRY) in nios2_fix_adjustable() [all …]
|
D | tc-i370.c | 1135 i370_elf_validate_fix (fixS *fixp, segT seg) in i370_elf_validate_fix() argument 1137 if (fixp->fx_done || fixp->fx_pcrel) in i370_elf_validate_fix() 1147 if (fixp->fx_r_type <= BFD_RELOC_UNUSED in i370_elf_validate_fix() 1148 && fixp->fx_r_type != BFD_RELOC_16_GOTOFF in i370_elf_validate_fix() 1149 && fixp->fx_r_type != BFD_RELOC_HI16_GOTOFF in i370_elf_validate_fix() 1150 && fixp->fx_r_type != BFD_RELOC_LO16_GOTOFF in i370_elf_validate_fix() 1151 && fixp->fx_r_type != BFD_RELOC_HI16_S_GOTOFF in i370_elf_validate_fix() 1152 && fixp->fx_r_type != BFD_RELOC_32_BASEREL in i370_elf_validate_fix() 1153 && fixp->fx_r_type != BFD_RELOC_LO16_BASEREL in i370_elf_validate_fix() 1154 && fixp->fx_r_type != BFD_RELOC_HI16_BASEREL in i370_elf_validate_fix() [all …]
|
D | tc-rl78.c | 1156 tc_gen_reloc (asection * seg ATTRIBUTE_UNUSED, fixS * fixp) in tc_gen_reloc() argument 1161 if (fixp->fx_r_type == BFD_RELOC_NONE) in tc_gen_reloc() 1167 if (fixp->fx_subsy in tc_gen_reloc() 1168 && S_GET_SEGMENT (fixp->fx_subsy) == absolute_section) in tc_gen_reloc() 1170 fixp->fx_offset -= S_GET_VALUE (fixp->fx_subsy); in tc_gen_reloc() 1171 fixp->fx_subsy = NULL; in tc_gen_reloc() 1176 * reloc[0]->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy); in tc_gen_reloc() 1177 reloc[0]->address = fixp->fx_frag->fr_address + fixp->fx_where; in tc_gen_reloc() 1178 reloc[0]->addend = fixp->fx_offset; in tc_gen_reloc() 1180 if (fixp->fx_r_type == BFD_RELOC_RL78_32_OP in tc_gen_reloc() [all …]
|
D | tc-mcore.c | 2126 md_pcrel_from_section (fixS * fixp, segT sec ATTRIBUTE_UNUSED) in md_pcrel_from_section() argument 2132 if (fixp->fx_addsy != (symbolS *) NULL in md_pcrel_from_section() 2133 && (! S_IS_DEFINED (fixp->fx_addsy) in md_pcrel_from_section() 2134 || (S_GET_SEGMENT (fixp->fx_addsy) != sec))) in md_pcrel_from_section() 2137 gas_assert (fixp->fx_size == 2); /* must be an insn */ in md_pcrel_from_section() 2138 return fixp->fx_size; in md_pcrel_from_section() 2143 return fixp->fx_size + fixp->fx_where + fixp->fx_frag->fr_address; in md_pcrel_from_section() 2150 tc_gen_reloc (asection * section ATTRIBUTE_UNUSED, fixS * fixp) in tc_gen_reloc() argument 2155 switch (fixp->fx_r_type) in tc_gen_reloc() 2165 code = fixp->fx_r_type; in tc_gen_reloc() [all …]
|
D | tc-nios2.h | 61 #define TC_FORCE_RELOCATION(fixp) nios2_force_relocation (fixp) argument 64 #define tc_fix_adjustable(fixp) nios2_fix_adjustable (fixp) argument
|
D | tc-pj.c | 470 tc_gen_reloc (asection *section ATTRIBUTE_UNUSED, fixS *fixp) in tc_gen_reloc() argument 477 *rel->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy); in tc_gen_reloc() 478 rel->address = fixp->fx_frag->fr_address + fixp->fx_where; in tc_gen_reloc() 480 r_type = fixp->fx_r_type; in tc_gen_reloc() 481 rel->addend = fixp->fx_addnumber; in tc_gen_reloc() 486 as_bad_where (fixp->fx_file, fixp->fx_line, in tc_gen_reloc()
|
D | tc-spu.c | 863 tc_gen_reloc (asection *seg ATTRIBUTE_UNUSED, fixS *fixp) in tc_gen_reloc() argument 868 if (fixp->fx_addsy) in tc_gen_reloc() 869 *reloc->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy); in tc_gen_reloc() 870 else if (fixp->fx_subsy) in tc_gen_reloc() 871 *reloc->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_subsy); in tc_gen_reloc() 874 reloc->address = fixp->fx_frag->fr_address + fixp->fx_where; in tc_gen_reloc() 875 reloc->howto = bfd_reloc_type_lookup (stdoutput, fixp->fx_r_type); in tc_gen_reloc() 878 as_bad_where (fixp->fx_file, fixp->fx_line, in tc_gen_reloc() 880 (int) fixp->fx_r_type); in tc_gen_reloc() 883 reloc->addend = fixp->fx_addnumber; in tc_gen_reloc() [all …]
|
D | tc-mep.c | 103 fixS * fixp; /* This fixup. */ member 1946 gas_assert (FX_OPINFO_R_TYPE (l->fixp) == BFD_RELOC_HI16 in mep_frob_file() 1947 || FX_OPINFO_R_TYPE (l->fixp) == BFD_RELOC_LO16); in mep_frob_file() 1950 if (l->fixp->fx_next != NULL in mep_frob_file() 1951 && FX_OPINFO_R_TYPE (l->fixp->fx_next) == BFD_RELOC_LO16 in mep_frob_file() 1952 && l->fixp->fx_addsy == l->fixp->fx_next->fx_addsy in mep_frob_file() 1953 && l->fixp->fx_offset == l->fixp->fx_next->fx_offset) in mep_frob_file() 1972 && f->fx_addsy == l->fixp->fx_addsy in mep_frob_file() 1973 && f->fx_offset == l->fixp->fx_offset in mep_frob_file() 1984 * pf != l->fixp; in mep_frob_file() [all …]
|
D | tc-score.h | 51 #define tc_fix_adjustable(fixp) score_fix_adjustable (fixp) argument 60 struct fix *fixp; member
|
D | tc-avr.c | 1229 md_pcrel_from_section (fixS *fixp, segT sec) in md_pcrel_from_section() argument 1231 if (fixp->fx_addsy != (symbolS *) NULL in md_pcrel_from_section() 1232 && (!S_IS_DEFINED (fixp->fx_addsy) in md_pcrel_from_section() 1233 || (S_GET_SEGMENT (fixp->fx_addsy) != sec))) in md_pcrel_from_section() 1236 return fixp->fx_frag->fr_address + fixp->fx_where; in md_pcrel_from_section() 1601 fixS *fixp) in tc_gen_reloc() argument 1605 if (fixp->fx_subsy != NULL) in tc_gen_reloc() 1607 as_bad_where (fixp->fx_file, fixp->fx_line, _("expression too complex")); in tc_gen_reloc() 1614 *reloc->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy); in tc_gen_reloc() 1616 reloc->address = fixp->fx_frag->fr_address + fixp->fx_where; in tc_gen_reloc() [all …]
|
D | tc-hppa.c | 1370 tc_gen_reloc (asection *section, fixS *fixp) in tc_gen_reloc() argument 1381 hppa_fixp = (struct hppa_fix_struct *) fixp->tc_fix_data; in tc_gen_reloc() 1382 if (fixp->fx_addsy == 0) in tc_gen_reloc() 1391 *reloc->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy); in tc_gen_reloc() 1398 if (fixp->fx_r_type == (bfd_reloc_code_real_type) R_HPPA_COMPLEX in tc_gen_reloc() 1399 && fixp->fx_pcrel) in tc_gen_reloc() 1401 fixp->fx_r_type = R_HPPA_PCREL_CALL; in tc_gen_reloc() 1402 fixp->fx_offset += 8; in tc_gen_reloc() 1406 fixp->fx_r_type, in tc_gen_reloc() 1409 fixp->fx_subsy != NULL, in tc_gen_reloc() [all …]
|
D | tc-frv.c | 1653 fixS *fixp; in frv_frob_file_section() local 1675 for (fixp = seginfo->fix_root; fixp; fixp = fixp->fx_next) in frv_frob_file_section() 1677 symbolS *s = fixp->fx_addsy; in frv_frob_file_section() 1682 const CGEN_INSN *insn = fixp->fx_cgen.insn; in frv_frob_file_section() 1684 if (fixp->fx_done) in frv_frob_file_section() 1690 if (fixp->fx_pcrel) in frv_frob_file_section() 1702 if (fixp->fx_r_type < BFD_RELOC_UNUSED) in frv_frob_file_section() 1705 reloc = fixp->fx_r_type; in frv_frob_file_section() 1709 opindex = (int) fixp->fx_r_type - (int) BFD_RELOC_UNUSED; in frv_frob_file_section() 1711 reloc = md_cgen_lookup_reloc (insn, operand, fixp); in frv_frob_file_section() [all …]
|
D | tc-sparc.c | 3668 tc_gen_reloc (asection *section, fixS *fixp) in tc_gen_reloc() argument 3678 *reloc->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy); in tc_gen_reloc() 3679 reloc->address = fixp->fx_frag->fr_address + fixp->fx_where; in tc_gen_reloc() 3681 switch (fixp->fx_r_type) in tc_gen_reloc() 3751 code = fixp->fx_r_type; in tc_gen_reloc() 3779 if (generic_force_reloc (fixp)) in tc_gen_reloc() 3784 if (fixp->fx_addsy != NULL) in tc_gen_reloc() 3786 if (strcmp (S_GET_NAME (fixp->fx_addsy), GOT_NAME) == 0) in tc_gen_reloc() 3789 if (strcmp (S_GET_NAME (fixp->fx_addsy), GOTT_BASE) == 0 in tc_gen_reloc() 3790 || strcmp (S_GET_NAME (fixp->fx_addsy), GOTT_INDEX) == 0) in tc_gen_reloc() [all …]
|
D | tc-microblaze.c | 2351 md_pcrel_from_section (fixS * fixp, segT sec ATTRIBUTE_UNUSED) in md_pcrel_from_section() argument 2358 if (fixp->fx_addsy != (symbolS *) NULL in md_pcrel_from_section() 2359 && (!S_IS_DEFINED (fixp->fx_addsy) in md_pcrel_from_section() 2360 || (S_GET_SEGMENT (fixp->fx_addsy) != sec))) in md_pcrel_from_section() 2365 if (fixp->fx_r_type == BFD_RELOC_64_PCREL) in md_pcrel_from_section() 2366 return fixp->fx_where + fixp->fx_frag->fr_address + INST_WORD_SIZE; in md_pcrel_from_section() 2368 return fixp->fx_where + fixp->fx_frag->fr_address; in md_pcrel_from_section() 2378 tc_gen_reloc (asection * section ATTRIBUTE_UNUSED, fixS * fixp) in tc_gen_reloc() argument 2383 switch (fixp->fx_r_type) in tc_gen_reloc() 2408 code = fixp->fx_r_type; in tc_gen_reloc() [all …]
|
D | tc-tilepro.c | 1514 tc_gen_reloc (asection *sec ATTRIBUTE_UNUSED, fixS *fixp) in tc_gen_reloc() argument 1520 *reloc->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy); in tc_gen_reloc() 1521 reloc->address = fixp->fx_frag->fr_address + fixp->fx_where; in tc_gen_reloc() 1525 gas_assert ((int) fixp->fx_r_type > 0); in tc_gen_reloc() 1527 reloc->howto = bfd_reloc_type_lookup (stdoutput, fixp->fx_r_type); in tc_gen_reloc() 1530 as_bad_where (fixp->fx_file, fixp->fx_line, in tc_gen_reloc() 1532 bfd_get_reloc_code_name (fixp->fx_r_type)); in tc_gen_reloc() 1536 if (!fixp->fx_pcrel != !reloc->howto->pc_relative) in tc_gen_reloc() 1539 bfd_get_reloc_code_name (fixp->fx_r_type), in tc_gen_reloc() 1540 fixp->fx_pcrel, reloc->howto->pc_relative); in tc_gen_reloc() [all …]
|
/toolchain/binutils/binutils-2.25/gas/ |
D | literal.c | 58 fixS *fixp; local 65 for (fixp = seginfo->frchainP->fix_root; 66 fixp != (fixS *) NULL; 67 fixp = fixp->fx_next, offset += size) 69 if (fixp->fx_addsy == sym && fixp->fx_offset == addend)
|
D | write.c | 619 fixS *fixp = seginfo->fix_root; in dump_section_relocs() local 621 if (!fixp) in dump_section_relocs() 625 while (fixp) in dump_section_relocs() 627 symbolS *s = fixp->fx_addsy; in dump_section_relocs() 629 fprintf (stream, " %08lx: type %d ", (unsigned long) fixp, in dump_section_relocs() 630 (int) fixp->fx_r_type); in dump_section_relocs() 638 fixp = fixp->fx_next; in dump_section_relocs() 765 fixS *fixp; in adjust_reloc_syms() local 772 for (fixp = seginfo->fix_root; fixp; fixp = fixp->fx_next) in adjust_reloc_syms() 773 if (fixp->fx_done) in adjust_reloc_syms() [all …]
|