From: Rafael Ávila de Espíndola Date: Tue, 8 Feb 2011 05:03:19 +0000 (+0000) Subject: 2010-02-08 Rafael Ávila de Espíndola X-Git-Tag: cgen-snapshot-20110301~55 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=84ced98a310603805f69d4d6616e02a196232438;p=thirdparty%2Fbinutils-gdb.git 2010-02-08 Rafael Ávila de Espíndola * plugin.cc (is_visible_from_outside): Return true for symbols in the -u option. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index ef5ab361c59..ce6cc0188ca 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2010-02-08 Rafael Ávila de Espíndola + + * plugin.cc (is_visible_from_outside): Return true for symbols + in the -u option. + 2011-02-04 Jeffrey Yasskin * symtab.cc (Odr_violation_compare::operator()): Sort by just the diff --git a/gold/plugin.cc b/gold/plugin.cc index 9c444c2701d..214eff30bb6 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;