From c36e006fbc8fa8824b103d83a8555c37a538696c Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 7 Jun 2001 17:31:22 +0000 Subject: 2001-06-07 H.J. Lu * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab for SGI only. * config.bfd: Remove ecoff from Linux/mips. --- bfd/ChangeLog | 7 +++++++ bfd/config.bfd | 4 ++-- bfd/elf32-mips.c | 3 ++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 4dcc14e..6323d6c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2001-06-07 H.J. Lu + + * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab + for SGI only. + + * config.bfd: Remove ecoff from Linux/mips. + 2001-06-07 Andreas Jaeger * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an diff --git a/bfd/config.bfd b/bfd/config.bfd index 2989ded..ed95238 100644 --- a/bfd/config.bfd +++ b/bfd/config.bfd @@ -675,7 +675,7 @@ case "${targ}" in ;; mips*el*-*-linux-gnu*) targ_defvec=bfd_elf32_tradlittlemips_vec - targ_selvecs="bfd_elf32_tradbigmips_vec bfd_elf64_tradlittlemips_vec bfd_elf64_tradbigmips_vec ecoff_little_vec ecoff_big_vec" + targ_selvecs="bfd_elf32_tradbigmips_vec bfd_elf64_tradlittlemips_vec bfd_elf64_tradbigmips_vec" ;; mips*-*-openbsd*) targ_defvec=bfd_elf32_bigmips_vec @@ -683,7 +683,7 @@ case "${targ}" in ;; mips*-*-linux-gnu*) targ_defvec=bfd_elf32_tradbigmips_vec - targ_selvecs="bfd_elf32_tradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec ecoff_big_vec ecoff_little_vec" + targ_selvecs="bfd_elf32_tradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec" ;; mn10200-*-*) targ_defvec=bfd_elf32_mn10200_vec diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c index 0f166a9..de0e529 100644 --- a/bfd/elf32-mips.c +++ b/bfd/elf32-mips.c @@ -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)); -- cgit v1.1