* configure.in (mips*-*-lnews*): New target, also make empty
authorStan Shebs <shebs@codesourcery.com>
Thu, 27 Feb 1997 02:40:44 +0000 (02:40 +0000)
committerStan Shebs <shebs@codesourcery.com>
Thu, 27 Feb 1997 02:40:44 +0000 (02:40 +0000)
emulation list for this target.
* configure: Update.
* tc-mips.c (ECOFF_LITTLE_FORMAT): Define.
(mips_target_format): Use.
* te-lnews.h: New file.

gas/ChangeLog
gas/config/tc-mips.c
gas/config/te-lnews.h [new file with mode: 0644]

index c5a3da82babc0b894d9c0ba6757edc965f54ff44..02f21d47f4355de9262af9a891402c2d209224dd 100644 (file)
@@ -1,3 +1,12 @@
+Wed Feb 26 18:19:00 1997  Stan Shebs  <shebs@andros.cygnus.com>
+
+       * configure.in (mips*-*-lnews*): New target, also make empty
+       emulation list for this target.
+       * configure: Update.
+       * tc-mips.c (ECOFF_LITTLE_FORMAT): Define.
+       (mips_target_format): Use.
+       * te-lnews.h: New file.
+
 start-sanitize-tic80
 Wed Feb 26 15:33:46 1997  Fred Fish  <fnf@cygnus.com>
 
index 5de9d9f4e9ac48add170db0ad75efceaa59cac14..862b455f2574e7a3a8b4043b627ac93df0558f87 100644 (file)
@@ -93,6 +93,12 @@ static char *mips_regmask_frag;
 
 #define ILLEGAL_REG (32)
 
+/* Allow override of standard little-endian ECOFF format.  */
+
+#ifndef ECOFF_LITTLE_FORMAT
+#define ECOFF_LITTLE_FORMAT "ecoff-littlemips"
+#endif
+
 extern int target_big_endian;
 
 /* 1 is we should use the 64 bit MIPS ELF ABI, 0 if we should use the
@@ -108,7 +114,7 @@ mips_target_format ()
     case bfd_target_aout_flavour:
       return target_big_endian ? "a.out-mips-big" : "a.out-mips-little";
     case bfd_target_ecoff_flavour:
-      return target_big_endian ? "ecoff-bigmips" : "ecoff-littlemips";
+      return target_big_endian ? "ecoff-bigmips" : ECOFF_LITTLE_FORMAT;
     case bfd_target_elf_flavour:
       return (target_big_endian
              ? (mips_64 ? "elf64-bigmips" : "elf32-bigmips")
@@ -8457,12 +8463,9 @@ MIPS options:\n\
 void
 mips_init_after_args ()
 {
-  if (itbl_have_entries)
-    {
-      /* initialize opcodes */
-      bfd_mips_num_opcodes = bfd_mips_num_builtin_opcodes;
-      mips_opcodes = (struct mips_opcode *) mips_builtin_opcodes;
-    }
+  /* initialize opcodes */
+  bfd_mips_num_opcodes = bfd_mips_num_builtin_opcodes;
+  mips_opcodes = (struct mips_opcode*) mips_builtin_opcodes;
 }
 
 long
diff --git a/gas/config/te-lnews.h b/gas/config/te-lnews.h
new file mode 100644 (file)
index 0000000..acbcc5a
--- /dev/null
@@ -0,0 +1,5 @@
+/* te-lnews.h -- little-endian NEWS emulation.  */
+
+#define ECOFF_LITTLE_FORMAT "ecoff-biglittlemips"
+
+#include "obj-format.h"