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 6/8] PR ld/17878: Use bfd_maybe_object_p in xcofflink.c


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

diff --git a/bfd/xcofflink.c b/bfd/xcofflink.c
index 9c7da57..4f59463 100644
--- a/bfd/xcofflink.c
+++ b/bfd/xcofflink.c
@@ -2458,7 +2458,7 @@ _bfd_xcoff_bfd_link_add_symbols (bfd *abfd, struct bfd_link_info *info)
 	member = bfd_openr_next_archived_file (abfd, NULL);
 	while (member != NULL)
 	  {
-	    if (bfd_check_format (member, bfd_object)
+	    if (bfd_maybe_object_p (member, info->lto_plugin_active)
 		&& (info->output_bfd->xvec == member->xvec)
 		&& (! bfd_has_map (abfd) || (member->flags & DYNAMIC) != 0))
 	      {
-- 
2.1.0


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