From dd2bed3aca01316302ddbb34b530e20761265e8e Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Mon, 3 Dec 2012 16:33:13 +0000 Subject: * elf32-mips.c (mips_elf32_object_p): Return right away when the ABI is not compatible. * elfn32-mips.c (mips_elf_n32_object_p): Likewise. --- bfd/elf32-mips.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'bfd/elf32-mips.c') diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c index c2bc0da3870..18eb6436909 100644 --- a/bfd/elf32-mips.c +++ b/bfd/elf32-mips.c @@ -2145,18 +2145,17 @@ mips_elf32_object_p (bfd *abfd) { unsigned long mach; + if (ABI_N32_P (abfd)) + return FALSE; + /* Irix 5 and 6 are 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. */ if (SGI_COMPAT (abfd)) elf_bad_symtab (abfd) = TRUE; - if (ABI_N32_P (abfd)) - return FALSE; - mach = _bfd_elf_mips_mach (elf_elfheader (abfd)->e_flags); bfd_default_set_arch_mach (abfd, bfd_arch_mips, mach); - return TRUE; } -- cgit v1.2.3-65-gdbad