From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H . J . Lu" To: binutils@sourceware.cygnus.com Subject: Patch for elf32-mips.c Date: Wed, 06 Jun 2001 13:45:00 -0000 Message-id: <20010606134532.A26618@lucon.org> X-SW-Source: 2001-06/msg00109.html I checked in the following patch. H.J. --- 2001-06-06 H.J. Lu * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab for SGI only. Index: elf32-mips.c =================================================================== RCS file: /cvs/src/src/bfd/elf32-mips.c,v retrieving revision 1.97 diff -u -p -r1.97 elf32-mips.c --- elf32-mips.c 2001/05/23 17:26:35 1.97 +++ elf32-mips.c 2001/06/06 20:44:39 @@ -2331,7 +2331,8 @@ _bfd_mips_elf_object_p (abfd) /* Irix 5 and 6 is broken. Object file symbol tables are not always sorted correctly such that local symbols precede global symbols, and the sh_info field in the symbol table is not always right. */ - elf_bad_symtab (abfd) = true; + if (SGI_COMPAT(abfd)) + elf_bad_symtab (abfd) = true; bfd_default_set_arch_mach (abfd, bfd_arch_mips, elf_mips_mach (elf_elfheader (abfd)->e_flags));