summaryrefslogtreecommitdiffstats
path: root/gold/resolve.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2011-10-18 00:25:53 +0000
committerCary Coutant <ccoutant@google.com>2011-10-18 00:25:53 +0000
commitf7c5b166f66958163526aa5688d8a7e3d0686694 (patch)
tree486d1a59c99520b4b72fb6d2913b3499c438d993 /gold/resolve.cc
parent6ffe910a7e62888428dfe53168a5383dd3daf689 (diff)
downloadppe42-binutils-f7c5b166f66958163526aa5688d8a7e3d0686694.tar.gz
ppe42-binutils-f7c5b166f66958163526aa5688d8a7e3d0686694.zip
PR gold/13245
* plugin.cc (is_visible_from_outside): Check for symbols referenced from dynamic objects. * resolve.cc (Symbol_table::resolve): Don't count references from dynamic objects as references from real ELF files. * testsuite/plugin_test_2.sh: Adjust expected result.
Diffstat (limited to 'gold/resolve.cc')
-rw-r--r--gold/resolve.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/resolve.cc b/gold/resolve.cc
index 03288eccf1..2a688769be 100644
--- a/gold/resolve.cc
+++ b/gold/resolve.cc
@@ -296,7 +296,7 @@ Symbol_table::resolve(Sized_symbol<size>* to,
// Record if we've seen this symbol in a real ELF object (i.e., the
// symbol is referenced from outside the world known to the plugin).
- if (object->pluginobj() == NULL)
+ if (object->pluginobj() == NULL && !object->is_dynamic())
to->set_in_real_elf();
// If we're processing replacement files, allow new symbols to override
OpenPOWER on IntegriCloud