This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 6/8] PR ld/17878: Use bfd_maybe_object_p in xcofflink.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:56 -0800
- Subject: [PATCH 6/8] PR ld/17878: Use bfd_maybe_object_p in xcofflink.c
- Authentication-results: sourceware.org; auth=none
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