From: Stan Shebs Date: Thu, 27 Feb 1997 02:40:44 +0000 (+0000) Subject: * configure.in (mips*-*-lnews*): New target, also make empty X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=af942793a8341a8840d60edc7f128bd07599e0ff;p=binutils-gdb.git * 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. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index c5a3da82bab..02f21d47f43 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,12 @@ +Wed Feb 26 18:19:00 1997 Stan Shebs + + * 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 diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 5de9d9f4e9a..862b455f257 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 00000000000..acbcc5a6416 --- /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"