aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2002-07-30 23:56:28 +0000
committerThiemo Seufer <ths@networkno.de>2002-07-30 23:56:28 +0000
commitcfe86eaadc73453d32bcc64445724c0330279b82 (patch)
tree45137e26bf55fa6baf5fa4f5d93177049f66b87f /gas
parent7808a785c5986903ac6dd4220f185fdcf62b0190 (diff)
downloadgdb-cfe86eaadc73453d32bcc64445724c0330279b82.zip
gdb-cfe86eaadc73453d32bcc64445724c0330279b82.tar.gz
gdb-cfe86eaadc73453d32bcc64445724c0330279b82.tar.bz2
* config/tc-mips.c (mips_target_format): Fix formatting.
Add recognition of n32 ABI formats.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-mips.c25
2 files changed, 22 insertions, 8 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index b73a2ea..d891d30 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 778eec1..0c7286a 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -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 ();