This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Fix typo in coff-sh.c.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4c0160b8e2f902ecdf6a42dc20b5f39b0a48fac7

commit 4c0160b8e2f902ecdf6a42dc20b5f39b0a48fac7
Author: Nick Clifton <nickc@redhat.com>
Date:   Tue Aug 11 17:02:25 2015 +0100

    Fix typo in coff-sh.c.
    
    	PR binutils/18747
    	* coff-sh.c (_bfd_sh_align_load_span): Fix typo when setting
    	opcode count.

Diff:
---
 bfd/ChangeLog | 4 ++++
 bfd/coff-sh.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index b3b4239..cac285e 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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.
diff --git a/bfd/coff-sh.c b/bfd/coff-sh.c
index 5fb4da2..e52fffa 100644
--- a/bfd/coff-sh.c
+++ b/bfd/coff-sh.c
@@ -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.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]