X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gas%2Fconfig%2Ftc-d10v.c;h=2eb679bb44267d6d52f3c1469861a11a428981fa;hb=0ba59a29407a9d24559a653ce0401a26d9a37aaa;hp=03b264d63cf25d7e926c4a56d2a459f37fe054aa;hpb=add39d2344036db9334bdeb1ec20a90beaa3ca49;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/config/tc-d10v.c b/gas/config/tc-d10v.c index 03b264d63c..2eb679bb44 100644 --- a/gas/config/tc-d10v.c +++ b/gas/config/tc-d10v.c @@ -1,5 +1,5 @@ /* tc-d10v.c -- Assembler code for the Mitsubishi D10V - Copyright (C) 1996-2016 Free Software Foundation, Inc. + Copyright (C) 1996-2019 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -104,7 +104,7 @@ size_t md_longopts_size = sizeof (md_longopts); static struct hash_control *d10v_hash; /* Do a binary search of the d10v_predefined_registers array to see if - NAME is a valid regiter name. Return the register number from the + NAME is a valid register name. Return the register number from the array on success, or -1 on failure. */ static int @@ -268,7 +268,7 @@ md_convert_frag (bfd *abfd 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)); } @@ -1548,7 +1548,7 @@ md_apply_fix (fixS *fixP, valueT *valP, segT seg ATTRIBUTE_UNUSED) if ( segf && segf->sym != fixP->fx_addsy) value = 0; } - /* Drop through. */ + /* Fall through. */ case BFD_RELOC_D10V_18: /* Instruction addresses are always right-shifted by 2. */ value >>= AT_WORD_RIGHT_SHIFT; @@ -1580,6 +1580,9 @@ md_apply_fix (fixS *fixP, valueT *valP, segT seg ATTRIBUTE_UNUSED) case BFD_RELOC_16: bfd_putb16 ((bfd_vma) value, (unsigned char *) where); break; + case BFD_RELOC_8: + *where = value; + break; case BFD_RELOC_VTABLE_INHERIT: case BFD_RELOC_VTABLE_ENTRY: