* ldlang.c (open_input_bfds): Don't use bfd_elf_get_dyn_lib_class.
+2014-08-13 Alan Modra <amodra@gmail.com>
+
+ * ldlang.c (open_input_bfds): Don't use bfd_elf_get_dyn_lib_class.
+
2014-08-12 Alan Modra <amodra@gmail.com>
* ldlang.h (struct lang_input_statement_flags): Don't make "reload"
#include "demangle.h"
#include "hashtab.h"
#include "libbfd.h"
+#include "elf-bfd.h"
#ifdef ENABLE_PLUGINS
#include "plugin.h"
#endif /* ENABLE_PLUGINS */
&& ((abfd->flags) & DYNAMIC) != 0
&& s->input_statement.flags.add_DT_NEEDED_for_regular
&& bfd_get_flavour (abfd) == bfd_target_elf_flavour
- && (bfd_elf_get_dyn_lib_class (abfd)
- & DYN_AS_NEEDED) != 0)))
+ && (elf_dyn_lib_class (abfd) & DYN_AS_NEEDED) != 0)))
{
s->input_statement.flags.loaded = FALSE;
s->input_statement.flags.reload = TRUE;