Fix typo in coff-sh.c.

PR binutils/18747
	* coff-sh.c (_bfd_sh_align_load_span): Fix typo when setting
	opcode count.
This commit is contained in:
Nick Clifton 2015-08-11 17:02:25 +01:00
parent c8373ebb4e
commit 4c0160b8e2
2 changed files with 5 additions and 1 deletions

View 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.

View 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. */