aboutsummaryrefslogtreecommitdiff
path: root/binutils/rescoff.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-02-24 19:37:32 +0000
committerNick Clifton <nickc@redhat.com>2000-02-24 19:37:32 +0000
commit8a0e0f38af77d6c38cdf9a257b55b4a06ce09124 (patch)
tree4d3e81f2c3fc49ccd4f3ce7013d6cc55c04459d0 /binutils/rescoff.c
parent344a211f9995c36b116eb81c6d5a9d1839ba54b7 (diff)
downloadgdb-8a0e0f38af77d6c38cdf9a257b55b4a06ce09124.zip
gdb-8a0e0f38af77d6c38cdf9a257b55b4a06ce09124.tar.gz
gdb-8a0e0f38af77d6c38cdf9a257b55b4a06ce09124.tar.bz2
Add support for WinCE targeted toolchains.
Diffstat (limited to 'binutils/rescoff.c')
-rw-r--r--binutils/rescoff.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/binutils/rescoff.c b/binutils/rescoff.c
index fe2487a..64cf572 100644
--- a/binutils/rescoff.c
+++ b/binutils/rescoff.c
@@ -1,5 +1,5 @@
/* rescoff.c -- read and write resources in Windows COFF files.
- Copyright 1997, 1998 Free Software Foundation, Inc.
+ Copyright 1997, 1998, 2000 Free Software Foundation, Inc.
Written by Ian Lance Taylor, Cygnus Support.
This file is part of GNU Binutils.
@@ -447,14 +447,20 @@ write_coff_file (filename, target, resources)
if (! bfd_set_format (abfd, bfd_object))
bfd_fatal ("bfd_set_format");
-#ifdef DLLTOOL_ARM
+#if defined DLLTOOL_SH
+ if (! bfd_set_arch_mach (abfd, bfd_arch_sh, 0))
+ bfd_fatal ("bfd_set_arch_mach(sh)");
+#elif defined DLLTOOL_MIPS
+ if (! bfd_set_arch_mach (abfd, bfd_arch_mips, 0))
+ bfd_fatal ("bfd_set_arch_mach(mips)");
+#elif defined DLLTOOL_ARM
if (! bfd_set_arch_mach (abfd, bfd_arch_arm, 0))
bfd_fatal ("bfd_set_arch_mach(arm)");
#else
/* FIXME: This is obviously i386 specific. */
if (! bfd_set_arch_mach (abfd, bfd_arch_i386, 0))
bfd_fatal ("bfd_set_arch_mach(i386)");
-#endif /* arm */
+#endif
if (! bfd_set_file_flags (abfd, HAS_SYMS | HAS_RELOC))
bfd_fatal ("bfd_set_file_flags");