2009-03-18 Zhang Le <r0bertz@gentoo.org>
authorJoseph Myers <joseph@codesourcery.com>
Wed, 18 Mar 2009 14:31:30 +0000 (14:31 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 18 Mar 2009 14:31:30 +0000 (14:31 +0000)
[BZ #7074]
* sysdeps/unix/sysv/linux/mips/readelflib.c (process_elf_file):
Fix the condition used to annotate n32 objects.

ChangeLog.mips
sysdeps/unix/sysv/linux/mips/readelflib.c

index db31315..d4a38dc 100644 (file)
@@ -1,3 +1,9 @@
+2009-03-18  Zhang Le  <r0bertz@gentoo.org>
+
+       [BZ #7074]
+       * sysdeps/unix/sysv/linux/mips/readelflib.c (process_elf_file):
+       Fix the condition used to annotate n32 objects.
+
 2009-03-17  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/unix/sysv/linux/mips/getsysstats.c (GET_NPROCS_PARSER):
index baa92fe..99fbaac 100644 (file)
@@ -43,7 +43,7 @@ process_elf_file (const char *file_name, const char *lib, int *flag,
                                file_contents, file_length);
 
       /* n32 libraries are always libc.so.6+.  */
-      if (ret && (elf_header->e_flags & EF_MIPS_ABI2) != 0)
+      if (!ret && (elf_header->e_flags & EF_MIPS_ABI2) != 0)
        *flag = FLAG_MIPS64_LIBN32|FLAG_ELF_LIBC6;
     }
   else