diff options
author | Alan Modra <amodra@gmail.com> | 2014-08-12 19:29:33 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2014-08-12 20:49:58 +0930 |
commit | e77620a58ff6050a8f1923062262d7811f8f0083 (patch) | |
tree | 3521724de78d7af7db65c60cd1e91c9f6ed5cb6a /ld/ldlang.c | |
parent | 4613510308cea27713e8c7424b2afee9b99f6226 (diff) | |
download | gdb-e77620a58ff6050a8f1923062262d7811f8f0083.zip gdb-e77620a58ff6050a8f1923062262d7811f8f0083.tar.gz gdb-e77620a58ff6050a8f1923062262d7811f8f0083.tar.bz2 |
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.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index 5e10c4a..9ca086d 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -3287,7 +3287,9 @@ open_input_bfds (lang_statement_union_type *s, enum open_bfd_mode mode) || (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; |