From: H.J. Lu Date: Tue, 14 Jan 2025 08:12:37 +0000 (+0800) Subject: ld: Call cmdline_check_object_only_section only if plugin is enabled X-Git-Tag: binutils-2_44~159 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6ac02727dc9fd1f4b505a4e8cca30b6c75bd4899;p=thirdparty%2Fbinutils-gdb.git ld: Call cmdline_check_object_only_section only if plugin is enabled * 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 --- diff --git a/ld/ldfile.c b/ld/ldfile.c index 530a5fef5e3..5a4c7c26590 100644 --- a/ld/ldfile.c +++ b/ld/ldfile.c @@ -533,8 +533,8 @@ ldfile_try_open_bfd (const char *attempt, && 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. */