forked from pool/binutils
2819f93f2f
- gold-opd-visibility.patch: Set default visibility on discarded .opd symbols OBS-URL: https://build.opensuse.org/request/show/286744 OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=179
19 lines
579 B
Diff
19 lines
579 B
Diff
2015-02-18 Alan Modra <amodra@gmail.com>
|
|
|
|
PR 17954
|
|
* powerpc.cc (Global_symbol_visitor_opd::operator()): Set default
|
|
visibility.
|
|
|
|
Index: binutils-2.25.0/gold/powerpc.cc
|
|
===================================================================
|
|
--- binutils-2.25.0.orig/gold/powerpc.cc
|
|
+++ binutils-2.25.0/gold/powerpc.cc
|
|
@@ -6466,6 +6466,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);
|
|
}
|