This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Fix gold error: hidden symbol '...' is not defined locally
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Wed, 18 Feb 2015 22:49:29 +1030
- Subject: Fix gold error: hidden symbol '...' is not defined locally
- Authentication-results: sourceware.org; auth=none
Found when applying relocs in .debug that reference removed functions.
PR 17954
* powerpc.cc (Global_symbol_visitor_opd::operator()): Set default
visibility.
diff --git a/gold/powerpc.cc b/gold/powerpc.cc
index ac8d05b..4deb5af 100644
--- a/gold/powerpc.cc
+++ b/gold/powerpc.cc
@@ -6551,6 +6551,7 @@ class Global_symbol_visitor_opd
&& symobj->get_opd_discard(sym->value()))
{
sym->set_undefined();
+ sym->set_visibility(elfcpp::STV_DEFAULT);
sym->set_is_defined_in_discarded_section();
sym->set_symtab_index(-1U);
}
--
Alan Modra
Australia Development Lab, IBM