summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorTomer Levi <Tomer.Levi@nsc.com>2004-12-23 13:48:25 +0000
committerTomer Levi <Tomer.Levi@nsc.com>2004-12-23 13:48:25 +0000
commit35fe2f7fc7a8a68f0a191dee165391c8d4711a3d (patch)
tree9074315ebc40127a3cda3f594c0ebadb4bac6d83 /bfd
parent7f01ca9c7a5ec3abb6ea7ec9f6fa46f5daba252b (diff)
downloadbinutils-redhat-35fe2f7fc7a8a68f0a191dee165391c8d4711a3d.tar.gz
2004-12-23 Tomer Levi <Tomer.Levi@nsc.com>
* elf32-crx.c (elf32_crx_relax_section): Support 'bcop' relaxation.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elf32-crx.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index f110a239b1..6a6230331f 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2004-12-23 Tomer Levi <Tomer.Levi@nsc.com>
+
+ * elf32-crx.c (elf32_crx_relax_section): Support 'bcop' relaxation.
+
2004-12-21 Kris Warkentin <kewarken@qnx.com>
* elf.c (elfcore_grok_nto_gregs): Change name to elfcore_grok_nto_regs.
diff --git a/bfd/elf32-crx.c b/bfd/elf32-crx.c
index 548191e684..de619ae1cc 100644
--- a/bfd/elf32-crx.c
+++ b/bfd/elf32-crx.c
@@ -1183,7 +1183,9 @@ elf32_crx_relax_section (bfd *abfd, asection *sec,
/* Verify it's a 'cmp&branch' opcode. */
if ((code & 0xfff0) != 0x3180 && (code & 0xfff0) != 0x3190
&& (code & 0xfff0) != 0x31a0 && (code & 0xfff0) != 0x31c0
- && (code & 0xfff0) != 0x31d0 && (code & 0xfff0) != 0x31e0)
+ && (code & 0xfff0) != 0x31d0 && (code & 0xfff0) != 0x31e0
+ /* Or a Co-processor branch ('bcop'). */
+ && (code & 0xfff0) != 0x3010 && (code & 0xfff0) != 0x3110)
continue;
/* Note that we've changed the relocs, section contents, etc. */