aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2011-10-20 09:50:59 +0000
committerAlan Modra <amodra@gmail.com>2011-10-20 09:50:59 +0000
commit5468810dda30d115069fc8fa41e68ed2caa34fc1 (patch)
tree9b845296b7c99582b5873ce6ee83047c896d3389 /ld/ldlang.c
parent4743b73565bcc34d3a4e41529ac4e93517465b41 (diff)
downloadgdb-5468810dda30d115069fc8fa41e68ed2caa34fc1.zip
gdb-5468810dda30d115069fc8fa41e68ed2caa34fc1.tar.gz
gdb-5468810dda30d115069fc8fa41e68ed2caa34fc1.tar.bz2
PR ld/13287
* plugin.c (plugin_should_reload): New function. * plugin.h (plugin_should_reload): Declare. * ldlang.c (open_input_bfds): Use above function.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index ae54155..2c56b56 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -3282,7 +3282,8 @@ open_input_bfds (lang_statement_union_type *s, enum open_bfd_mode mode)
&& plugin_insert == NULL
&& s->input_statement.loaded
&& s->input_statement.add_DT_NEEDED_for_regular
- && ((s->input_statement.the_bfd->flags) & DYNAMIC) != 0)
+ && ((s->input_statement.the_bfd->flags) & DYNAMIC) != 0
+ && plugin_should_reload (s->input_statement.the_bfd))
{
s->input_statement.loaded = FALSE;
s->input_statement.reload = TRUE;