Fix build breakage when ld plugins disabled

* ldlang.h (struct lang_input_statement_flags): Don't make "reload"
	field conditional on ENABLE_PLUGINS.
	* ldlang.c (open_input_bfds): Expand plugin_should_reload.
	* plugin.h (plugin_should_reload): Delete.
	* plugin.c (plugin_should_reload): Delete.
This commit is contained in:
Alan Modra
2014-08-12 19:29:33 +09:30
parent 4613510308
commit e77620a58f
5 changed files with 14 additions and 16 deletions

View File

@@ -1045,12 +1045,3 @@ plugin_notice (struct bfd_link_info *info,
abfd, section, value, flags);
return TRUE;
}
/* Return true if ABFD, a dynamic library, should be reloaded. */
bfd_boolean
plugin_should_reload (bfd *abfd)
{
return (bfd_get_flavour (abfd) == bfd_target_elf_flavour
&& (elf_dyn_lib_class (abfd) & DYN_AS_NEEDED) != 0);
}