]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix typo in coff-sh.c.
authorNick Clifton <nickc@redhat.com>
Tue, 11 Aug 2015 16:02:25 +0000 (17:02 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 11 Aug 2015 16:02:25 +0000 (17:02 +0100)
PR binutils/18747
* coff-sh.c (_bfd_sh_align_load_span): Fix typo when setting
opcode count.

bfd/ChangeLog
bfd/coff-sh.c

index b3b4239dc3596d25ba4c6f37735e2ff5e2924c62..cac285e73848780d80b60eeb783f9d542c78dc55 100644 (file)
@@ -1,5 +1,9 @@
 2015-08-11  Nick Clifton  <nickc@redhat.com>
 
+       PR binutils/18747
+       * coff-sh.c (_bfd_sh_align_load_span): Fix typo when setting
+       opcode count.
+
        PR binutils/18758
        * elf.c (_bfd_elf_setup_sections): Add checks for corrupt section
        group information.
index 5fb4da2b8ed91580ae982e64c184fb4e44f4f691..e52fffa6e1637675b021ed69178c82877cb85ef7 100644 (file)
@@ -2327,7 +2327,7 @@ _bfd_sh_align_load_span (bfd *abfd,
   if (dsp)
     {
       sh_opcodes[0xf].minor_opcodes = sh_dsp_opcodef;
-      sh_opcodes[0xf].count = sizeof sh_dsp_opcodef / sizeof sh_dsp_opcodef;
+      sh_opcodes[0xf].count = sizeof sh_dsp_opcodef / sizeof sh_dsp_opcodef [0];
     }
 
   /* Instructions should be aligned on 2 byte boundaries.  */