* Fix gold error: hidden symbol '...' is not defined locally
@ 2015-02-18 12:19 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2015-02-18 12:19 UTC (permalink / raw)
To: binutils
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-02-18 12:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-18 12:19 Fix gold error: hidden symbol '...' is not defined locally Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).