diff options
Diffstat (limited to 'ld/plugin.c')
-rw-r--r-- | ld/plugin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/plugin.c b/ld/plugin.c index c4116fb..5b8a7cf 100644 --- a/ld/plugin.c +++ b/ld/plugin.c @@ -1061,7 +1061,7 @@ plugin_maybe_claim (lang_input_statement_type *entry) einfo (_("%P%F: %s: plugin reported error claiming file\n"), plugin_error_plugin ()); - if (input->fd != -1 && bfd_check_format (ibfd, bfd_object)) + if (input->fd != -1 && ibfd->format == bfd_object) { /* FIXME: fd belongs to us, not the plugin. IR for GCC plugin, which doesn't need fd after plugin_call_claim_file, is |