diff options
author | Alan Modra <amodra@bigpond.net.au> | 2011-10-20 09:50:58 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2011-10-20 09:50:58 +0000 |
commit | 7f41a025abf49d120fda96d6d1e99d729d66cd6f (patch) | |
tree | d2ec5ecff75c3f7bbd73252d85698b23944aa22c /ld/ldlang.c | |
parent | 3f58664422716b8195f2e56c81449603b359afbd (diff) | |
download | binutils-redhat-7f41a025abf49d120fda96d6d1e99d729d66cd6f.tar.gz |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index ae541558ec..2c56b56455 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; |