aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-11-08 13:17:43 +0000
committerNick Clifton <nickc@redhat.com>2004-11-08 13:17:43 +0000
commit7499d566bb9495cac23109f01ded20f8849d08ae (patch)
tree30530048723553d2c770364cea592becdda630c1 /bfd/coffcode.h
parentdc85a459cf260d72565cb988960c12ff9cd3da3c (diff)
downloadgdb-7499d566bb9495cac23109f01ded20f8849d08ae.zip
gdb-7499d566bb9495cac23109f01ded20f8849d08ae.tar.gz
gdb-7499d566bb9495cac23109f01ded20f8849d08ae.tar.bz2
Add support fpr MAXQ processor
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 7bfdc6b..63a2c63 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -1986,6 +1986,12 @@ coff_set_arch_mach_hook (abfd, filehdr)
machine = bfd_mach_m68020;
break;
#endif
+#ifdef MAXQ20MAGIC
+ case MAXQ20MAGIC:
+ arch = bfd_arch_maxq;
+ machine = 0;
+ break;
+#endif
#ifdef MC88MAGIC
case MC88MAGIC:
case MC88DMAGIC:
@@ -2919,6 +2925,13 @@ coff_set_flags (abfd, magicp, flagsp)
return TRUE;
#endif
+#ifdef MAXQ20MAGIC
+ case bfd_arch_maxq:
+ *magicp = MAXQ20MAGIC;
+ return TRUE;
+ break;
+#endif
+
default: /* Unknown architecture. */
/* Fall through to "return FALSE" below, to avoid
"statement never reached" errors on the one below. */
@@ -4063,6 +4076,11 @@ coff_write_object_contents (abfd)
internal_a.magic = NMAGIC; /* Assume separate i/d. */
#endif
+#ifdef MAXQ20MAGIC
+#define __A_MAGIC_SET__
+ internal_a.magic = MAXQ20MAGIC;
+#endif
+
#ifndef __A_MAGIC_SET__
#include "Your aouthdr magic number is not being set!"
#else