aboutsummaryrefslogtreecommitdiff
path: root/ld/plugin.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-08-12 19:29:33 +0930
committerAlan Modra <amodra@gmail.com>2014-08-12 20:49:58 +0930
commite77620a58ff6050a8f1923062262d7811f8f0083 (patch)
tree3521724de78d7af7db65c60cd1e91c9f6ed5cb6a /ld/plugin.c
parent4613510308cea27713e8c7424b2afee9b99f6226 (diff)
downloadgdb-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/plugin.c')
-rw-r--r--ld/plugin.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/ld/plugin.c b/ld/plugin.c
index 8cca7d0..652cde1 100644
--- a/ld/plugin.c
+++ b/ld/plugin.c
@@ -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);
-}