* 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 8fdda3770acee477bcfde094f6c8521c12d46d90..c7f72b9f0fdc04bdb06d7d951d716c65dc68f6f6 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 baeb01fc12216da9758ea45832631b098cd42d5b..fcf4cc7dd2ab12b194f520709f318291d7d030ef 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: