[PATCH 7/8] PR ld/17878: Use bfd_maybe_object_p in ecoff.c

H.J. Lu hjl.tools@gmail.com
Thu Feb 5 13:57:00 GMT 2015


	PR ld/17878
	* ecoff.c (ecoff_link_add_archive_symbols): Replace
	bfd_check_format with bfd_maybe_object_p.
---
 bfd/ecoff.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bfd/ecoff.c b/bfd/ecoff.c
index a8ba28a..a971a82 100644
--- a/bfd/ecoff.c
+++ b/bfd/ecoff.c
@@ -3688,7 +3688,7 @@ ecoff_link_add_archive_symbols (bfd *abfd, struct bfd_link_info *info)
       if (element == NULL)
 	return FALSE;
 
-      if (! bfd_check_format (element, bfd_object))
+      if (! bfd_maybe_object_p (element, info->lto_plugin_active))
 	return FALSE;
 
       /* Unlike the generic linker, we know that this element provides
-- 
2.1.0



More information about the Binutils mailing list