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


	PR ld/17878
	* vms-lib.c (_bfd_vms_lib_write_archive_contents): Replace
	bfd_check_format with bfd_maybe_object_p.
---
 bfd/vms-lib.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bfd/vms-lib.c b/bfd/vms-lib.c
index d649c10..4262db9 100644
--- a/bfd/vms-lib.c
+++ b/bfd/vms-lib.c
@@ -2055,7 +2055,8 @@ _bfd_vms_lib_write_archive_contents (bfd *arch)
 	 disk), not the archive entries we're writing to.  We don't
 	 actually create bfds for the archive members, we just copy
 	 them byte-wise when we write out the archive.  */
-      if (bfd_write_p (current) || !bfd_check_format (current, bfd_object))
+      if (bfd_write_p (current)
+	  || !bfd_maybe_object_p (current, plugin_active_p (current)))
 	{
 	  bfd_set_error (bfd_error_invalid_operation);
 	  goto input_err;
-- 
2.1.0


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