gold/
* symtab.cc (Symbol::should_add_dynsym_entry): Check for relocatable object before exporting symbol.
This commit is contained in:
parent
8d409d16dd
commit
b24fdbf5e0
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2012-05-22 Cary Coutant <ccoutant@google.com>
|
||||||
|
|
||||||
|
* symtab.cc (Symbol::should_add_dynsym_entry): Check for relocatable
|
||||||
|
object before exporting symbol.
|
||||||
|
|
||||||
2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
|
2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* testsuite/tls_test.cc: Include "config.h" first.
|
* testsuite/tls_test.cc: Include "config.h" first.
|
||||||
|
|
|
@ -365,8 +365,9 @@ Symbol::should_add_dynsym_entry(Symbol_table* symtab) const
|
||||||
|
|
||||||
// If the symbol was forced dynamic in a --dynamic-list file
|
// If the symbol was forced dynamic in a --dynamic-list file
|
||||||
// or an --export-dynamic-symbol option, add it.
|
// or an --export-dynamic-symbol option, add it.
|
||||||
if (parameters->options().in_dynamic_list(this->name())
|
if (!this->is_from_dynobj()
|
||||||
|| parameters->options().is_export_dynamic_symbol(this->name()))
|
&& (parameters->options().in_dynamic_list(this->name())
|
||||||
|
|| parameters->options().is_export_dynamic_symbol(this->name())))
|
||||||
{
|
{
|
||||||
if (!this->is_forced_local())
|
if (!this->is_forced_local())
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue