aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorJim Wilson <wilson@tuliptree.org>2000-04-18 04:03:16 +0000
committerJim Wilson <wilson@tuliptree.org>2000-04-18 04:03:16 +0000
commitfac417805a7d6be67dae8e8146edd818a308f8a3 (patch)
treedc9fc1e22e1c48383e8126a222b05cd8be9c0f1a /bfd/coffcode.h
parentb9af77f58f609c230732b9acdbf1a6f747766733 (diff)
downloadgdb-fac417805a7d6be67dae8e8146edd818a308f8a3.zip
gdb-fac417805a7d6be67dae8e8146edd818a308f8a3.tar.gz
gdb-fac417805a7d6be67dae8e8146edd818a308f8a3.tar.bz2
Bfd support for generating IA-64 EFI binaries.
* Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo. (BFD64_BACKENDS_CFILES): Mention coff-ia64.c (coff-ia64.lo): Add dependency. * Makefile.in: Regenerate. * coff-ia64.c: New file. * efi-app-ia32.c: Ditto. * efi-app-ia64.c: Ditto. ...
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index a6e8b08..9474e93 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -1787,6 +1787,12 @@ coff_set_arch_mach_hook (abfd, filehdr)
machine = 0;
break;
#endif
+#ifdef IA64MAGIC
+ case IA64MAGIC:
+ arch = bfd_arch_ia64;
+ machine = 0;
+ break;
+#endif
#ifdef A29K_MAGIC_BIG
case A29K_MAGIC_BIG:
case A29K_MAGIC_LITTLE:
@@ -2557,6 +2563,12 @@ coff_set_flags (abfd, magicp, flagsp)
return true;
break;
#endif
+#ifdef IA64MAGIC
+ case bfd_arch_ia64:
+ *magicp = IA64MAGIC;
+ return true;
+ break;
+#endif
#ifdef MC68MAGIC
case bfd_arch_m68k:
#ifdef APOLLOM68KMAGIC
@@ -3635,6 +3647,11 @@ coff_write_object_contents (abfd)
#endif /* LYNXOS */
#endif /* I386 */
+#if defined(IA64)
+#define __A_MAGIC_SET__
+ internal_a.magic = ZMAGIC;
+#endif /* IA64 */
+
#if defined(SPARC)
#define __A_MAGIC_SET__
#if defined(LYNXOS)