From 212c40ed034096069f3ab0dac74ccfb79063b84c Mon Sep 17 00:00:00 2001 From: Mahesh Bodapati Date: Tue, 26 Feb 2019 17:31:41 +0530 Subject: [PATCH 26/43] [Patch,Microblaze] : changes of "PR22458, failure to choose a matching ELF target" is causing "Multiple Prevailing definition errors",added check for best_match elf. --- bfd/format.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bfd/format.c b/bfd/format.c index 97a92291a8..3a74cc49d2 100644 --- a/bfd/format.c +++ b/bfd/format.c @@ -292,7 +292,12 @@ bfd_check_format_matches (bfd *abfd, bfd_format format, char ***matching) /* Don't check the default target twice. */ if (*target == &binary_vec +#if !BFD_SUPPORTS_PLUGINS || (!abfd->target_defaulted && *target == save_targ)) +#else + || (!abfd->target_defaulted && *target == save_targ) + || (*target)->match_priority > best_match) +#endif continue; /* If we already tried a match, the bfd is modified and may -- 2.17.1