aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-v850.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 25b6387..95152ad 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2020-02-06 Maciej W. Rozycki <macro@wdc.com>
+
+ * elf32-v850.c (v850_elf_relax_section): Fix the index used for
+ reporting an unrecognized instruction with R_V850_LONGJUMP.
+
2020-02-05 Alan Modra <amodra@gmail.com>
* elf64-ppc.c (ppc_stub_plt_branch): Match comment with reality.
diff --git a/bfd/elf32-v850.c b/bfd/elf32-v850.c
index 667c467..21cd4f2 100644
--- a/bfd/elf32-v850.c
+++ b/bfd/elf32-v850.c
@@ -3837,7 +3837,7 @@ v850_elf_relax_section (bfd *abfd,
if (no_match < 0
&& ((insn[2] & JMP_R_MASK) != JMP_R
|| MOVEA_R2 (insn[1]) != JMP_R1 (insn[2])))
- no_match = 4;
+ no_match = 2;
}
else
{