diff options
| author | Joseph Myers <joseph@codesourcery.com> | 2009-03-18 14:38:51 +0000 |
|---|---|---|
| committer | Joseph Myers <joseph@codesourcery.com> | 2009-03-18 14:38:51 +0000 |
| commit | d69fd0cbd2ec67b2dc4ba1e23bac6b9ed6b947c5 (patch) | |
| tree | 6a68dd4662dbf611ca64c7cd8ee8c4b92cd8e5da | |
| parent | 0262d0c47c55109b0ea10239eedc2695f57ad40e (diff) | |
| download | glibc-d69fd0cbd2ec67b2dc4ba1e23bac6b9ed6b947c5.tar.xz glibc-d69fd0cbd2ec67b2dc4ba1e23bac6b9ed6b947c5.zip | |
2009-03-18 Maciej W. Rozycki <macro@codesourcery.com>
* sysdeps/unix/sysv/linux/mips/readelflib.c (process_elf_file):
Use the Elf32_Ehdr type to check for EF_MIPS_ABI2 in the flags.
| -rw-r--r-- | ChangeLog.mips | 5 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/mips/readelflib.c | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog.mips b/ChangeLog.mips index d4a38dca52..6f4b038e78 100644 --- a/ChangeLog.mips +++ b/ChangeLog.mips @@ -1,3 +1,8 @@ +2009-03-18 Maciej W. Rozycki <macro@codesourcery.com> + + * sysdeps/unix/sysv/linux/mips/readelflib.c (process_elf_file): + Use the Elf32_Ehdr type to check for EF_MIPS_ABI2 in the flags. + 2009-03-18 Zhang Le <r0bertz@gentoo.org> [BZ #7074] diff --git a/sysdeps/unix/sysv/linux/mips/readelflib.c b/sysdeps/unix/sysv/linux/mips/readelflib.c index 99fbaaca86..547362f31f 100644 --- a/sysdeps/unix/sysv/linux/mips/readelflib.c +++ b/sysdeps/unix/sysv/linux/mips/readelflib.c @@ -1,4 +1,5 @@ -/* Copyright (C) 1999, 2001, 2002, 2003, 2005 Free Software Foundation, Inc. +/* Copyright (C) 1999, 2001, 2002, 2003, 2005, 2009 + Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Alexandre Oliva <aoliva@redhat.com> Based on work ../x86_64/readelflib.c, @@ -39,11 +40,13 @@ process_elf_file (const char *file_name, const char *lib, int *flag, if (elf_header->e_ident [EI_CLASS] == ELFCLASS32) { + Elf32_Ehdr *elf32_header = (Elf32_Ehdr *) elf_header; + ret = process_elf32_file (file_name, lib, flag, osversion, soname, file_contents, file_length); /* n32 libraries are always libc.so.6+. */ - if (!ret && (elf_header->e_flags & EF_MIPS_ABI2) != 0) + if (!ret && (elf32_header->e_flags & EF_MIPS_ABI2) != 0) *flag = FLAG_MIPS64_LIBN32|FLAG_ELF_LIBC6; } else |
