Lines Matching refs:reloc

56   } reloc;
356 seg = expression (&operand->reloc.exp);
367 operand->reloc.pc_rel = 0;
378 if (operand->reloc.exp.X_op == O_constant)
388 sprintf (buf, "%ld", operand->reloc.exp.X_add_number);
389 operand->reloc.exp.X_add_number = strtol (buf, &end, 8);
433 operand->word = operand->reloc.exp.X_add_number;
434 switch (operand->reloc.exp.X_op)
441 operand->reloc.type = BFD_RELOC_16;
442 operand->reloc.pc_rel = 0;
445 if (operand->reloc.exp.X_add_number > 0)
451 know (operand->reloc.exp.X_add_number < 0);
492 if (operand->reloc.exp.X_op != O_symbol)
500 operand->reloc.type = BFD_RELOC_16_PCREL;
501 operand->reloc.pc_rel = 1;
521 switch (operand->reloc.exp.X_op)
525 operand->reloc.pc_rel = 1;
530 operand->reloc.pc_rel = 1;
531 operand->word = operand->reloc.exp.X_add_number;
535 operand->word = operand->reloc.exp.X_add_number;
539 BAD_CASE (operand->reloc.exp.X_op);
647 op1.reloc.type = BFD_RELOC_NONE;
661 if (insn.reloc.type != BFD_RELOC_NONE)
663 &insn.reloc.exp, insn.reloc.pc_rel, insn.reloc.type);
680 insn.reloc.type = BFD_RELOC_NONE;
683 op1.reloc.type = BFD_RELOC_NONE;
686 op2.reloc.type = BFD_RELOC_NONE;
708 if (op1.reloc.exp.X_op != O_constant || op1.reloc.type != BFD_RELOC_NONE)
716 if (op1.reloc.exp.X_add_number & ~7)
723 if (op1.reloc.exp.X_add_number & ~0x3f)
730 if (op1.reloc.exp.X_add_number & ~0xff)
737 insn.code |= op1.reloc.exp.X_add_number;
745 op1.reloc.pc_rel = 1;
746 op1.reloc.type = BFD_RELOC_PDP11_DISP_8_PCREL;
747 if (op1.reloc.exp.X_op != O_symbol)
759 insn.reloc = op1.reloc;
938 op1.reloc.pc_rel = 1;
939 op1.reloc.type = BFD_RELOC_PDP11_DISP_6_PCREL;
940 if (op1.reloc.exp.X_op != O_symbol)
952 insn.reloc = op1.reloc;
983 if (insn.reloc.type != BFD_RELOC_NONE)
985 &insn.reloc.exp, insn.reloc.pc_rel, insn.reloc.type);
991 if (op1.reloc.type != BFD_RELOC_NONE)
993 &op1.reloc.exp, op1.reloc.pc_rel, op1.reloc.type);
1000 if (op2.reloc.type != BFD_RELOC_NONE)
1002 &op2.reloc.exp, op2.reloc.pc_rel, op2.reloc.type);
1700 arelent *reloc;
1703 reloc = (arelent *) xmalloc (sizeof (arelent));
1705 reloc->sym_ptr_ptr = (asymbol **) xmalloc (sizeof (asymbol *));
1706 *reloc->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy);
1707 reloc->address = fixp->fx_frag->fr_address + fixp->fx_where;
1710 reloc->addend = -symbol_get_bfdsym (fixp->fx_addsy)->section->vma;
1730 reloc->howto = bfd_reloc_type_lookup (stdoutput, code);
1732 if (reloc->howto == NULL)
1740 return reloc;