aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elf32-cr16.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 89cbac0..2ed0e4a 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2007-10-12 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
+
+ * elf32-cr16.c (elf32_cr16_relax_section): Fix condition check typo.
+
2007-10-12 Daniel Jacobowitz <dan@codesourcery.com>
* elfxx-mips.c (mips_elf_sort_hash_table_f): Handle forced
diff --git a/bfd/elf32-cr16.c b/bfd/elf32-cr16.c
index d0f7fd1..76616b9 100644
--- a/bfd/elf32-cr16.c
+++ b/bfd/elf32-cr16.c
@@ -1337,7 +1337,7 @@ elf32_cr16_relax_section (bfd *abfd, asection *sec,
/* Verify it's a arithmetic ADDD or MOVD instruction.
For ADDD and MOVD only, convert to IMM32 -> IMM20. */
- if (((code & 0xfff0) != 0x0070) || ((code & 0xfff0) != 0x0020))
+ if (((code & 0xfff0) == 0x0070) || ((code & 0xfff0) == 0x0020))
is_add_mov = 1;
if (is_add_mov)