* elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
authorThiemo Seufer <ths@networkno.de>
Sat, 25 Aug 2001 01:27:54 +0000 (01:27 +0000)
committerThiemo Seufer <ths@networkno.de>
Sat, 25 Aug 2001 01:27:54 +0000 (01:27 +0000)
E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64

bfd/ChangeLog
bfd/elf32-mips.c

index 8fdda37..c7f72b9 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-25  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
+       E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
+
 2001-08-24  H.J. Lu  <hjl@gnu.org>
 
        * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
index baeb01f..fcf4cc7 100644 (file)
@@ -1928,16 +1928,16 @@ elf_mips_abi_name (abfd)
 {
   flagword flags;
 
-  if (ABI_N32_P (abfd))
-    return "N32";
-  else if (ABI_64_P (abfd))
-    return "64";
-
   flags = elf_elfheader (abfd)->e_flags;
   switch (flags & EF_MIPS_ABI)
     {
     case 0:
-      return "none";
+      if (ABI_N32_P (abfd))
+       return "N32";
+      else if (ABI_64_P (abfd))
+       return "64";
+      else
+       return "none";
     case E_MIPS_ABI_O32:
       return "O32";
     case E_MIPS_ABI_O64: