This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[gold patch] (PR 22213) Fix incorrect register mask.
- From: Cary Coutant <ccoutant at gmail dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Tue, 26 Sep 2017 07:38:51 -0700
- Subject: [gold patch] (PR 22213) Fix incorrect register mask.
- Authentication-results: sourceware.org; auth=none
I committed the following patch to fix a typo in sparc.cc.
-cary
2017-09-26 Cary Coutant <ccoutant@gmail.com>
gold/
PR gold/22213
* sparc.cc (Target_sparc): Fix incorrect register mask.
diff --git a/gold/sparc.cc b/gold/sparc.cc
index 54c7c33498..965d9939ae 100644
--- a/gold/sparc.cc
+++ b/gold/sparc.cc
@@ -4164,7 +4164,7 @@ Target_sparc<size, big_endian>::Relocate::relax_call(
if (op3 != 0x3d)
{
// First check RS1
- reg = (delay_insn >> 14) & 0x15;
+ reg = (delay_insn >> 14) & 0x1f;
if (reg == 15)
return;