From cfe86eaadc73453d32bcc64445724c0330279b82 Mon Sep 17 00:00:00 2001 From: Thiemo Seufer Date: Tue, 30 Jul 2002 23:56:28 +0000 Subject: [PATCH] * config/tc-mips.c (mips_target_format): Fix formatting. Add recognition of n32 ABI formats. --- gas/ChangeLog | 5 +++++ gas/config/tc-mips.c | 25 +++++++++++++++++-------- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index b73a2eafd93..d891d3013a4 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2002-07-31 Thiemo Seufer + + * config/tc-mips.c (mips_target_format): Fix formatting. + Add recognition of n32 ABI formats. + 2002-07-30 Maciej W. Rozycki * 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 778eec174aa..0c7286a80e7 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 (); -- 2.30.2