summaryrefslogtreecommitdiff
path: root/bfd/elf32-crx.c
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
commit681ac8201421dd43bcfa5d04e24ba6cdd20127f1 (patch)
treedb689077919c1becd1821b10787a73b6f0b29b87 /bfd/elf32-crx.c
parent8f024e487e54a8c2f04978685792c2a7c15dcfd5 (diff)
downloadgdb-681ac8201421dd43bcfa5d04e24ba6cdd20127f1.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/elf32-crx.c')
-rw-r--r--bfd/elf32-crx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/elf32-crx.c b/bfd/elf32-crx.c
index 548191e684a..de619ae1cc4 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. */