aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-08-22 20:11:36 +0000
committerNick Clifton <nickc@redhat.com>2000-08-22 20:11:36 +0000
commit371e71b8de9fd2132752ff8b677627c97ac7c8be (patch)
tree4a34ae1f2952f84186ac262dd455291ed87cd69e /bfd/coffcode.h
parentec4eb78a39aebe3d1358676822b9d586136304f8 (diff)
downloadgdb-371e71b8de9fd2132752ff8b677627c97ac7c8be.zip
gdb-371e71b8de9fd2132752ff8b677627c97ac7c8be.tar.gz
gdb-371e71b8de9fd2132752ff8b677627c97ac7c8be.tar.bz2
Fix bugs detecting w65 architecture.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index a122057..2750ad7 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -2716,9 +2716,15 @@ coff_set_flags (abfd, magicp, flagsp)
return true;
#endif
- default: /* Unknown architecture */
- /* return false; -- fall through to "return false" below, to avoid
- "statement never reached" errors on the one below. */
+#ifdef W65MAGIC
+ case bfd_arch_w65:
+ *magicp = W65MAGIC;
+ return true;
+#endif
+
+ default: /* Unknown architecture. */
+ /* Fall through to "return false" below, to avoid
+ "statement never reached" errors on the one below. */
break;
}