PR gold/13359
authorCary Coutant <ccoutant@google.com>
Mon, 31 Oct 2011 22:33:04 +0000 (22:33 +0000)
committerCary Coutant <ccoutant@google.com>
Mon, 31 Oct 2011 22:33:04 +0000 (22:33 +0000)
* i386.cc (Target_i386::Relocate::relocate_tls): Remove
unnecessary assertion.
* x86_64.cc (Target_x86_64::Relocate::relocate_tls): Likewise.

gold/ChangeLog
gold/i386.cc
gold/x86_64.cc

index 172982ccfd47e3ab8d1e14461e2ae18d0e09ddbb..fddf7d0700fb564b7f073033667689fbd9492376 100644 (file)
@@ -1,3 +1,10 @@
+2011-10-31  Cary Coutant  <ccoutant@google.com>
+
+       PR gold/13359
+       * i386.cc (Target_i386::Relocate::relocate_tls): Remove
+       unnecessary assertion.
+       * x86_64.cc (Target_x86_64::Relocate::relocate_tls): Likewise.
+
 2011-10-31 Sriraman Tallam  <tmsriram@google.com>
 
        * symtab.h (Symbol_table::gc_mark_symbol_for_shlib): Rename to
index 445bc68a940127bb70fc1dc9084f6d73cca9bc75..191a9151ffc371d06d86efde79d79209a09dd0c5 100644 (file)
@@ -2709,12 +2709,6 @@ Target_i386::Relocate::relocate_tls(const Relocate_info<32, false>* relinfo,
             }
           if (optimized_type == tls::TLSOPT_TO_IE)
            {
-             if (tls_segment == NULL)
-               {
-                 gold_assert(parameters->errors()->error_count() > 0
-                             || issue_undefined_symbol_error(gsym));
-                 return;
-               }
              this->tls_gd_to_ie(relinfo, relnum, tls_segment, rel, r_type,
                                  got_offset, view, view_size);
               break;
index e61d7d1bf590f8e30ea8ff07f1427a173a10bfc7..076292659cd31bcf6daf194d955899e7524b1af5 100644 (file)
@@ -3181,12 +3181,6 @@ Target_x86_64::Relocate::relocate_tls(const Relocate_info<64, false>* relinfo,
             }
           if (optimized_type == tls::TLSOPT_TO_IE)
             {
-             if (tls_segment == NULL)
-               {
-                 gold_assert(parameters->errors()->error_count() > 0
-                             || issue_undefined_symbol_error(gsym));
-                 return;
-               }
               value = target->got_plt_section()->address() + got_offset;
               this->tls_gd_to_ie(relinfo, relnum, tls_segment, rela, r_type,
                                  value, view, address, view_size);