From 84ced98a310603805f69d4d6616e02a196232438 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafael=20=C3=81vila=20de=20Esp=C3=ADndola?= Date: Tue, 8 Feb 2011 05:03:19 +0000 Subject: [PATCH] =?utf8?q?2010-02-08=20=20Rafael=20=C3=81vila=20de=20Esp?= =?utf8?q?=C3=ADndola=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * plugin.cc (is_visible_from_outside): Return true for symbols in the -u option. --- gold/ChangeLog | 5 +++++ gold/plugin.cc | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gold/ChangeLog b/gold/ChangeLog index ef5ab36..ce6cc01 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 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; -- 2.7.4