This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 5/8] PR ld/17878: Use bfd_maybe_object_p in vms-lib.c
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: binutils at sourceware dot org
- Date: Thu, 5 Feb 2015 05:56:08 -0800
- Subject: [PATCH 5/8] PR ld/17878: Use bfd_maybe_object_p in vms-lib.c
- Authentication-results: sourceware.org; auth=none
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