#include "sysdep.h"
#include "libbfd.h"
+static const bfd_arch_info_type *mips_compatible
+ PARAMS ((const bfd_arch_info_type *, const bfd_arch_info_type *));
+
/* The default routine tests bits_per_word, which is wrong on mips as
mips word size doesn't correlate with reloc size. */
-const bfd_arch_info_type *
+static const bfd_arch_info_type *
mips_compatible (a, b)
const bfd_arch_info_type *a;
const bfd_arch_info_type *b;
if (a->arch != b->arch)
return NULL;
- if (a->mach > b->mach)
- return a;
-
- if (b->mach > a->mach)
- return b;
+ /* Machine compatibility is checked in
+ _bfd_mips_elf_merge_private_bfd_data. */
return a;
}
PRINT, \
3, \
DEFAULT, \
- mips_compatible, \
+ mips_compatible, \
bfd_default_scan, \
NEXT, \
}