This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Patch for elf32-mips.c
- To: binutils at sourceware dot cygnus dot com
- Subject: Patch for elf32-mips.c
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Wed, 6 Jun 2001 13:45:32 -0700
I checked in the following patch.
H.J.
---
2001-06-06 H.J. Lu <hjl@gnu.org>
* 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));