* config/tc-mips.c (mips_target_format): Fix formatting.
authorThiemo Seufer <ths@networkno.de>
Tue, 30 Jul 2002 23:56:28 +0000 (23:56 +0000)
committerThiemo Seufer <ths@networkno.de>
Tue, 30 Jul 2002 23:56:28 +0000 (23:56 +0000)
Add recognition of n32 ABI formats.

gas/ChangeLog
gas/config/tc-mips.c

index b73a2eafd938abf382500e70999110159230983f..d891d3013a49593b3da50b0253816f16c954c6f0 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * config/tc-mips.c (mips_target_format): Fix formatting.
+       Add recognition of n32 ABI formats.
+
 2002-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
 
        * tc-mips.c (load_address): Don't clobber $at when loading a
index 778eec174aaa8f60fd228e6e65cec3051e5f0891..0c7286a80e7d576ea285f09734b58e883a751a6d 100644 (file)
@@ -989,17 +989,26 @@ mips_target_format ()
       return "pe-mips";
     case bfd_target_elf_flavour:
 #ifdef TE_TMIPS
-      /* This is traditional mips */
+      /* This is traditional mips */
       return (target_big_endian
-             ? (HAVE_64BIT_OBJECTS ? "elf64-tradbigmips"
-                : "elf32-tradbigmips")
-             : (HAVE_64BIT_OBJECTS ? "elf64-tradlittlemips"
-                : "elf32-tradlittlemips"));
+             ? (HAVE_64BIT_OBJECTS
+                ? "elf64-tradbigmips"
+                : (HAVE_NEWABI
+                   ? "elf32-ntradbigmips" : "elf32-tradbigmips"))
+             : (HAVE_64BIT_OBJECTS
+                ? "elf64-tradlittlemips"
+                : (HAVE_NEWABI
+                   ? "elf32-ntradlittlemips" : "elf32-tradlittlemips")));
 #else
       return (target_big_endian
-             ? (HAVE_64BIT_OBJECTS ? "elf64-bigmips" : "elf32-bigmips")
-             : (HAVE_64BIT_OBJECTS ? "elf64-littlemips"
-                : "elf32-littlemips"));
+             ? (HAVE_64BIT_OBJECTS
+                ? "elf64-bigmips"
+                : (HAVE_NEWABI
+                   ? "elf32-nbigmips" : "elf32-bigmips"))
+             : (HAVE_64BIT_OBJECTS
+                ? "elf64-littlemips"
+                : (HAVE_NEWABI
+                   ? "elf32-nlittlemips" : "elf32-littlemips")));
 #endif
     default:
       abort ();