X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gas%2Fconfig%2Ftc-xgate.c;h=488ee4c39bbbb815760120885a6f360e2fb8ea0a;hb=07e7fdfd429985f061630c46e91cb10579607233;hp=b3c124398cd0cf7158551f2cf2beba69f1ab52d8;hpb=827041555ac443bd57340060f3e034fd7b199dd8;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/config/tc-xgate.c b/gas/config/tc-xgate.c index b3c124398c..488ee4c39b 100644 --- a/gas/config/tc-xgate.c +++ b/gas/config/tc-xgate.c @@ -1,5 +1,5 @@ /* tc-xgate.c -- Assembler code for Freescale XGATE - Copyright (C) 2010-2019 Free Software Foundation, Inc. + Copyright (C) 2010-2020 Free Software Foundation, Inc. Contributed by Sean Keys This file is part of GAS, the GNU Assembler. @@ -466,7 +466,7 @@ md_undefined_symbol (char *name ATTRIBUTE_UNUSED) valueT md_section_align (asection * seg, valueT addr) { - int align = bfd_get_section_alignment (stdoutput, seg); + int align = bfd_section_alignment (seg); return ((addr + (1 << align) - 1) & -(1 << align)); } @@ -668,7 +668,7 @@ md_apply_fix (fixS * fixP, valueT * valP, segT seg ATTRIBUTE_UNUSED) switch (fixP->fx_r_type) { - case R_XGATE_PCREL_9: + case BFD_RELOC_XGATE_PCREL_9: if (value < -512 || value > 511) as_bad_where (fixP->fx_file, fixP->fx_line, _("Value %ld too large for 9-bit PC-relative branch."), @@ -685,7 +685,7 @@ md_apply_fix (fixS * fixP, valueT * valP, segT seg ATTRIBUTE_UNUSED) value &= mask; number_to_chars_bigendian (where, (opcode | value), 2); break; - case R_XGATE_PCREL_10: + case BFD_RELOC_XGATE_PCREL_10: if (value < -1024 || value > 1023) as_bad_where (fixP->fx_file, fixP->fx_line, _("Value %ld too large for 10-bit PC-relative branch."), @@ -1336,10 +1336,10 @@ xgate_parse_operand (struct xgate_opcode *opcode, { if (*op_constraint == '9') fix_new_exp (frag_now, where, 2, &operand.exp, TRUE, - R_XGATE_PCREL_9); + BFD_RELOC_XGATE_PCREL_9); else if (*op_constraint == 'a') fix_new_exp (frag_now, where, 2, &operand.exp, TRUE, - R_XGATE_PCREL_10); + BFD_RELOC_XGATE_PCREL_10); } else as_fatal (_("Operand `%x' not recognized in fixup8."),