aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2012-02-16 07:40:23 +0000
committerAlan Modra <amodra@gmail.com>2012-02-16 07:40:23 +0000
commiteb8c5f3f23278cba03de9b5b2739b1395ec60b16 (patch)
tree582deba35981e2e314c21c99893916cdd607b8c5 /bfd
parentae70babc04d80ede582f2b62bf2c938b589b60c3 (diff)
downloadgdb-eb8c5f3f23278cba03de9b5b2739b1395ec60b16.zip
gdb-eb8c5f3f23278cba03de9b5b2739b1395ec60b16.tar.gz
gdb-eb8c5f3f23278cba03de9b5b2739b1395ec60b16.tar.bz2
PR binutils/13355
* elf32-rx.c (elf32_rx_relax_section): Correct width check.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-rx.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 0a53fad..56d2a55 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2012-02-16 Alan Modra <amodra@gmail.com>
+
+ PR binutils/13355
+ * elf32-rx.c (elf32_rx_relax_section): Correct width check.
+
2012-02-13 Richard Henderson <rth@redhat.com>
PR ld/13621
diff --git a/bfd/elf32-rx.c b/bfd/elf32-rx.c
index 0ceed85..23e9a74 100644
--- a/bfd/elf32-rx.c
+++ b/bfd/elf32-rx.c
@@ -2115,7 +2115,7 @@ elf32_rx_relax_section (bfd * abfd,
/* Decodable bits. */
&& (insn[0] & 0xcc) == 0xcc
/* Width. */
- && (insn[0] & 0x30) != 3
+ && (insn[0] & 0x30) != 0x30
/* Register MSBs. */
&& (insn[1] & 0x88) == 0x00)
{
@@ -2219,7 +2219,7 @@ elf32_rx_relax_section (bfd * abfd,
/* Decodable bits. */
&& (insn[0] & 0xc3) == 0xc3
/* Width. */
- && (insn[0] & 0x30) != 3
+ && (insn[0] & 0x30) != 0x30
/* Register MSBs. */
&& (insn[1] & 0x88) == 0x00)
{