aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1993-10-13 23:08:10 +0000
committerKen Raeburn <raeburn@cygnus>1993-10-13 23:08:10 +0000
commit97eb2f0cb61a312b0a1cbdd723bb9eef9795e4cb (patch)
treee437f0de187214a8ca8ff7bfe04a89ef48aeae39 /bfd/coffcode.h
parent6327ba5dc7fa16e87d9d5d7c3b5dbec5a2443444 (diff)
downloadgdb-97eb2f0cb61a312b0a1cbdd723bb9eef9795e4cb.zip
gdb-97eb2f0cb61a312b0a1cbdd723bb9eef9795e4cb.tar.gz
gdb-97eb2f0cb61a312b0a1cbdd723bb9eef9795e4cb.tar.bz2
More "make dep" fixups.
Apollo 68k support from Troy Rollo <troy@cbme.unsw.edu.au>.
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 7ca1616..298f8c8 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -860,7 +860,12 @@ coff_set_arch_mach_hook(abfd, filehdr)
#ifdef MC68MAGIC
case MC68MAGIC:
case M68MAGIC:
+#ifdef MC68KBCSMAGIC
case MC68KBCSMAGIC:
+#endif
+#ifdef APOLLOM68KMAGIC
+ case APOLLOM68KMAGIC:
+#endif
arch = bfd_arch_m68k;
machine = 68020;
break;
@@ -1140,7 +1145,11 @@ DEFUN(coff_set_flags,(abfd, magicp, flagsp),
#endif
#ifdef MC68MAGIC
case bfd_arch_m68k:
+#ifdef APOLLOM68KMAGIC
+ *magicp = APOLLO_COFF_VERSION_NUMBER;
+#else
*magicp = MC68MAGIC;
+#endif
return true;
break;
#endif
@@ -1340,6 +1349,10 @@ coff_add_missing_symbols (abfd)
continue;
if (!strcmp (name, _TEXT))
need_text = 0;
+#ifdef APOLLO_M68
+ else if (!strcmp(name, ".wtext"))
+ need_text = 0;
+#endif
else if (!strcmp (name, _DATA))
need_data = 0;
else if (!strcmp (name, _BSS))
@@ -1633,6 +1646,11 @@ DEFUN(coff_write_object_contents,(abfd),
internal_a.magic = PAGEMAGICBCS;
#endif /* M88 */
+#if APOLLO_M68
+#define __A_MAGIC_SET__
+ internal_a.magic = APOLLO_COFF_VERSION_NUMBER;
+#endif
+
#if M68 || WE32K
#define __A_MAGIC_SET__
/* Never was anything here for the 68k */