aboutsummaryrefslogtreecommitdiff
path: root/gold/plugin.cc
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <respindola@mozilla.com>2011-02-08 05:03:19 +0000
committerRafael Ávila de Espíndola <respindola@mozilla.com>2011-02-08 05:03:19 +0000
commit84ced98a310603805f69d4d6616e02a196232438 (patch)
tree839a30636de08f5914c9d3875819a6a9b510c119 /gold/plugin.cc
parentdf22d2233306b68aa442f16fa13811dc35b675b5 (diff)
downloadgdb-84ced98a310603805f69d4d6616e02a196232438.zip
gdb-84ced98a310603805f69d4d6616e02a196232438.tar.gz
gdb-84ced98a310603805f69d4d6616e02a196232438.tar.bz2
2010-02-08 Rafael Ávila de Espíndola <respindola@mozilla.com>
* plugin.cc (is_visible_from_outside): Return true for symbols in the -u option.
Diffstat (limited to 'gold/plugin.cc')
-rw-r--r--gold/plugin.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gold/plugin.cc b/gold/plugin.cc
index 9c444c2..214eff3 100644
--- a/gold/plugin.cc
+++ b/gold/plugin.cc
@@ -699,6 +699,8 @@ is_visible_from_outside(Symbol* lsym)
return true;
if (parameters->options().relocatable())
return true;
+ if (parameters->options().is_undefined(lsym->name()))
+ return true;
if (parameters->options().export_dynamic() || parameters->options().shared())
return lsym->is_externally_visible();
return false;