Add support for WinCE targeted toolchains.
authorNick Clifton <nickc@redhat.com>
Thu, 24 Feb 2000 19:37:32 +0000 (19:37 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 24 Feb 2000 19:37:32 +0000 (19:37 +0000)
binutils/ChangeLog
binutils/configure
binutils/configure.in
binutils/dlltool.c
binutils/rescoff.c

index 7cc58555204316c92c261190dc302e8b1c4faca7..6ebe4b4eebf208fb10b2aaabce2012f5eb19c8fa 100644 (file)
@@ -1,3 +1,11 @@
+2000-02-24  Nick Clifton  <nickc@cygnus.com>
+
+       * configure.in: Add arm-wince, mips-pe and sh-pe targets.
+       * configure: Regenerate.
+
+       * dlltoolc.: Add support for sh-pe and mips-pe targets.
+       * rescoff.c: Add support for sh-pe and mips-pe targets.
+
 2000-02-23  H.J. Lu  <hjl@gnu.org>
 
        * readelf.c (get_osabi_name): Handle ELFOSABI_LINUX.
index 9c2e03d0a3857c22b7ae06e2782248faf6183f47..fc17d342f9e1af66da45333f361157a524f5705e 100755 (executable)
@@ -5176,7 +5176,7 @@ do
        *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
        esac
        case $targ in
-       arm-*pe*)
+       arm-*pe* | arm-*-wince)
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
@@ -5201,6 +5201,16 @@ do
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
          ;;
+       sh*-*-*pe)
+         BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
+         DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
+         BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
+         ;;
+       mips*-*-*pe)
+         BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
+         DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
+         BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
+         ;;
        mcore-*pe)
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
index cc5eb70d4a77dbb6d46416adf130403fe9764376..603ccd3110414d086c8e623cb505857269c02b39 100644 (file)
@@ -182,7 +182,7 @@ changequote([,])dnl
        *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
        esac
        case $targ in
-       arm-*pe*)
+       arm-*pe* | arm-*-wince)
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
@@ -209,6 +209,16 @@ changequote([,])dnl
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
          ;;
+       sh*-*-*pe)
+         BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
+         DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
+         BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
+         ;;
+       mips*-*-*pe)
+         BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
+         DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
+         BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
+         ;;
        mcore-*pe)
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
index ae2b568718fbef939009ea53b83f065890e1b9d2..4189b5e01bdffa7f3bc0250d3ff126317e4fb9ac 100644 (file)
@@ -394,6 +394,14 @@ static const char *mname = "i386";
 static const char *mname = "ppc";
 #endif
 
+#ifdef DLLTOOL_SH
+static const char *mname = "sh";
+#endif
+
+#ifdef DLLTOOL_MIPS
+static const char *mname = "mips";
+#endif
+
 #ifdef DLLTOOL_MCORE
 static const char * mname = "mcore-le";
 #endif
index fe2487a396f72548b67679ed533c996451c4f0a8..64cf572b2d86ff789f0b65e1a6526095f23c3ab0 100644 (file)
@@ -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");