aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1997-02-27 02:40:44 +0000
committerStan Shebs <shebs@codesourcery.com>1997-02-27 02:40:44 +0000
commitaf942793a8341a8840d60edc7f128bd07599e0ff (patch)
tree1213cd898af06ae1e98ef1545a72a0d8a25aa794 /gas
parent9a18fe60f78aa17cddb9ff2fe7b84eb062be3184 (diff)
downloadgdb-af942793a8341a8840d60edc7f128bd07599e0ff.zip
gdb-af942793a8341a8840d60edc7f128bd07599e0ff.tar.gz
gdb-af942793a8341a8840d60edc7f128bd07599e0ff.tar.bz2
* 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.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog9
-rw-r--r--gas/config/tc-mips.c17
-rw-r--r--gas/config/te-lnews.h5
3 files changed, 24 insertions, 7 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index c5a3da8..02f21d4 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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>
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 5de9d9f..862b455 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -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
index 0000000..acbcc5a
--- /dev/null
+++ b/gas/config/te-lnews.h
@@ -0,0 +1,5 @@
+/* te-lnews.h -- little-endian NEWS emulation. */
+
+#define ECOFF_LITTLE_FORMAT "ecoff-biglittlemips"
+
+#include "obj-format.h"