]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Import 2002-03-11 Chris Demetriou <cgd@broadcom.com>
authorAndrew Cagney <cagney@redhat.com>
Sun, 7 Apr 2002 21:31:49 +0000 (21:31 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sun, 7 Apr 2002 21:31:49 +0000 (21:31 +0000)
* mips-dis.c (is_newabi): Fix ABI decoding.

opcodes/ChangeLog
opcodes/mips-dis.c

index a7b5e134ee0a25b20b70d48fd2d467632b0465b4..67463ca4c61c0446b99b09ed6650c6bf4d4e2360 100644 (file)
@@ -1,3 +1,8 @@
+2002-04-07  Andrew Cagney  <ac131313@redhat.com>
+
+       Import 2002-03-11 Chris Demetriou <cgd@broadcom.com>
+       * mips-dis.c (is_newabi): Fix ABI decoding.
+
 2002-02-27  Nick Clifton  <nickc@cambridge.redhat.com>
 
        * po/de.po: Updated.
index 13eb728fcdee9fb70e6203f44b1333d5c577a461..95f4e52bc440dddd947d253b833cab3a56a0ad02 100644 (file)
@@ -397,10 +397,14 @@ static int
 is_newabi (header)
      Elf_Internal_Ehdr *header;
 {
-  if ((header->e_flags
-       & (E_MIPS_ABI_EABI32 | E_MIPS_ABI_EABI64 | EF_MIPS_ABI2)) != 0
-      || (header->e_ident[EI_CLASS] == ELFCLASS64
-         && (header->e_flags & E_MIPS_ABI_O64) == 0))
+  /* There are no old-style ABIs which use 64-bit ELF.  */
+  if (header->e_ident[EI_CLASS] == ELFCLASS64)
+    return 1;
+
+  /* If a 32-bit ELF file, N32, EABI32, and EABI64 are new-style ABIs.  */
+  if ((header->e_flags & EF_MIPS_ABI2) != 0
+      || (header->e_flags & EF_MIPS_ABI) == E_MIPS_ABI_EABI32
+      || (header->e_flags & EF_MIPS_ABI) == E_MIPS_ABI_EABI64)
     return 1;
 
   return 0;