* ldfile.c (ldfile_try_open_bfd): Call
cmdline_check_object_only_section only if BFD_SUPPORTS_PLUGINS
is defined.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
&& bfd_check_format (entry->the_bfd, bfd_object))
plugin_maybe_claim (entry);
else
-#endif /* BFD_SUPPORTS_PLUGINS */
cmdline_check_object_only_section (entry->the_bfd, false);
+#endif /* BFD_SUPPORTS_PLUGINS */
/* It opened OK, the format checked out, and the plugins have had
their chance to claim it, so this is success. */