This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


	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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]