gold/
authorCary Coutant <ccoutant@google.com>
Tue, 22 May 2012 23:50:52 +0000 (23:50 +0000)
committerCary Coutant <ccoutant@google.com>
Tue, 22 May 2012 23:50:52 +0000 (23:50 +0000)
* symtab.cc (Symbol::should_add_dynsym_entry): Check for relocatable
object before exporting symbol.

gold/ChangeLog
gold/symtab.cc

index 927d83f85127f3bfd5a2a4d060166e5614381dc4..d9903ab9878cf1d6b1a8689bea612e0685995f87 100644 (file)
@@ -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>
 
        * testsuite/tls_test.cc: Include "config.h" first.
index 1edb88da4d83c0729b2285263f9d134a3245750a..ebce5ca1d74a65833df971aa08d3d01f22de17d8 100644 (file)
@@ -365,8 +365,9 @@ Symbol::should_add_dynsym_entry(Symbol_table* symtab) const
 
   // If the symbol was forced dynamic in a --dynamic-list file
   // or an --export-dynamic-symbol option, add it.
-  if (parameters->options().in_dynamic_list(this->name())
-      || parameters->options().is_export_dynamic_symbol(this->name()))
+  if (!this->is_from_dynobj()
+      && (parameters->options().in_dynamic_list(this->name())
+         || parameters->options().is_export_dynamic_symbol(this->name())))
     {
       if (!this->is_forced_local())
         return true;
This page took 0.040102 seconds and 4 git commands to generate.