OSDN Git Service

Add support for WinCE targeted toolchains.
authornickc <nickc>
Thu, 24 Feb 2000 19:37:32 +0000 (19:37 +0000)
committernickc <nickc>
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 7cc5855..6ebe4b4 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 9c2e03d..fc17d34 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 cc5eb70..603ccd3 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 ae2b568..4189b5e 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 fe2487a..64cf572 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");