+2014-08-12 Alan Modra <amodra@gmail.com>
+
+ * 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.
+
2014-08-12 Alan Modra <amodra@gmail.com>
* ldmain.c (notice): Update args.
|| (bfd_get_format (abfd) == bfd_object
&& ((abfd->flags) & DYNAMIC) != 0
&& s->input_statement.flags.add_DT_NEEDED_for_regular
- && plugin_should_reload (abfd))))
+ && bfd_get_flavour (abfd) == bfd_target_elf_flavour
+ && (bfd_elf_get_dyn_lib_class (abfd)
+ & DYN_AS_NEEDED) != 0)))
{
s->input_statement.flags.loaded = FALSE;
s->input_statement.flags.reload = TRUE;
/* Set if the file does not exist. */
unsigned int missing_file : 1;
+ /* Set if reloading an archive or --as-needed lib. */
+ unsigned int reload : 1;
+
#ifdef ENABLE_PLUGINS
/* Set if the file was claimed by a plugin. */
unsigned int claimed : 1;
/* Set if the file was claimed from an archive. */
unsigned int claim_archive : 1;
-
- /* Set if reloading an archive or --as-needed lib. */
- unsigned int reload : 1;
#endif /* ENABLE_PLUGINS */
/* Head of list of pushed flags. */
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);
-}
add_symbols hook has been called so that it can be read when linking. */
extern bfd *plugin_get_ir_dummy_bfd (const char *name, bfd *template);
-/* Return true if ABFD, a dynamic library, should be reloaded. */
-extern bfd_boolean plugin_should_reload (bfd *);
-
#endif /* !def GLD_PLUGIN_H */