aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-08-13 07:32:21 +0930
committerAlan Modra <amodra@gmail.com>2014-08-13 07:36:30 +0930
commit0fef4b9893c61ad13eb8b0a2bfc3035b63bf8888 (patch)
tree6497e4f9d795e7f4f391f56d71611ba116036f16 /ld
parent2d03dd2f8df86f7c2110e7e10039a32830f80148 (diff)
downloadgdb-0fef4b9893c61ad13eb8b0a2bfc3035b63bf8888.zip
gdb-0fef4b9893c61ad13eb8b0a2bfc3035b63bf8888.tar.gz
gdb-0fef4b9893c61ad13eb8b0a2bfc3035b63bf8888.tar.bz2
Fix non-ELF build breakage
* ldlang.c (open_input_bfds): Don't use bfd_elf_get_dyn_lib_class.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/ldlang.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index ff161da..f62813e 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+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"
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 9ca086d..419caa1 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -40,6 +40,7 @@
#include "demangle.h"
#include "hashtab.h"
#include "libbfd.h"
+#include "elf-bfd.h"
#ifdef ENABLE_PLUGINS
#include "plugin.h"
#endif /* ENABLE_PLUGINS */
@@ -3288,8 +3289,7 @@ open_input_bfds (lang_statement_union_type *s, enum open_bfd_mode mode)
&& ((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;