forked from Imagelibrary/binutils-gdb
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user